aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp b/src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp
index 59ce45e16..828775719 100644
--- a/src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp
+++ b/src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp
@@ -978,8 +978,8 @@ FixedwingEstimator::task_main()
// or the time limit will be exceeded at the next IMU update
if ((dt >= (_ekf->covTimeStepMax - _ekf->dtIMU)) || (_ekf->summedDelAng.length() > _ekf->covDelAngMax)) {
_ekf->CovariancePrediction(dt);
- _ekf->summedDelAng = _ekf->summedDelAng.zero();
- _ekf->summedDelVel = _ekf->summedDelVel.zero();
+ _ekf->summedDelAng.zero();
+ _ekf->summedDelVel.zero();
dt = 0.0f;
}