aboutsummaryrefslogtreecommitdiff
path: root/src/modules/ekf_att_pos_estimator
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-04-29 21:42:58 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-04-29 21:42:58 +0200
commit848c1c2552996281685d2691c1b394f25a4391b3 (patch)
treef0e006181fc58defda309e596bd419eac701b9e6 /src/modules/ekf_att_pos_estimator
parent7c88fbff903c6e17434e7e77e29fb9bd223c39c0 (diff)
downloadpx4-firmware-848c1c2552996281685d2691c1b394f25a4391b3.tar.gz
px4-firmware-848c1c2552996281685d2691c1b394f25a4391b3.tar.bz2
px4-firmware-848c1c2552996281685d2691c1b394f25a4391b3.zip
ekf: More complete re-initialization
Diffstat (limited to 'src/modules/ekf_att_pos_estimator')
-rw-r--r--src/modules/ekf_att_pos_estimator/estimator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/ekf_att_pos_estimator/estimator.cpp b/src/modules/ekf_att_pos_estimator/estimator.cpp
index 1ca34ec30..e1ffc15d3 100644
--- a/src/modules/ekf_att_pos_estimator/estimator.cpp
+++ b/src/modules/ekf_att_pos_estimator/estimator.cpp
@@ -2536,6 +2536,8 @@ void AttPosEKF::ZeroVariables()
correctedDelAng.zero();
summedDelAng.zero();
summedDelVel.zero();
+ magBias.zero();
+ magState.zero();
for (unsigned i = 0; i < data_buffer_size; i++) {