aboutsummaryrefslogtreecommitdiff
path: root/src/modules/fw_att_pos_estimator/estimator.cpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-01-31 16:52:54 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-01-31 16:52:54 +0100
commit8e35f6727c20960c05c6e7fad38fccb80f0bdc5e (patch)
tree27351f0a47fa4e154b9c0b4718174d4d955b056e /src/modules/fw_att_pos_estimator/estimator.cpp
parentd4ccd9bc45d82dff38b19848ab88eaae35853b94 (diff)
downloadpx4-firmware-8e35f6727c20960c05c6e7fad38fccb80f0bdc5e.tar.gz
px4-firmware-8e35f6727c20960c05c6e7fad38fccb80f0bdc5e.tar.bz2
px4-firmware-8e35f6727c20960c05c6e7fad38fccb80f0bdc5e.zip
Testing missing init bit in array initialization
Diffstat (limited to 'src/modules/fw_att_pos_estimator/estimator.cpp')
-rw-r--r--src/modules/fw_att_pos_estimator/estimator.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/fw_att_pos_estimator/estimator.cpp b/src/modules/fw_att_pos_estimator/estimator.cpp
index c7c9b6476..9b57dfd55 100644
--- a/src/modules/fw_att_pos_estimator/estimator.cpp
+++ b/src/modules/fw_att_pos_estimator/estimator.cpp
@@ -1730,6 +1730,7 @@ void calcEarthRateNED(Vector3f &omega, float latitude)
void CovarianceInit()
{
// Calculate the initial covariance matrix P
+ P[0][0] = 0.25f*sq(1.0f*deg2rad);
P[1][1] = 0.25f*sq(1.0f*deg2rad);
P[2][2] = 0.25f*sq(1.0f*deg2rad);
P[3][3] = 0.25f*sq(10.0f*deg2rad);