aboutsummaryrefslogtreecommitdiff
path: root/src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-04-21 01:20:35 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-04-21 01:20:35 +0200
commitc08544721a0ac4293786ce410dcd0084e1f7cfe6 (patch)
tree1c3a00fb7e8825ff11af9ac600d8bdadceb6ffb8 /src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp
parent14fb653d8c71a62778f191fd038f0c1b96264ced (diff)
downloadpx4-firmware-c08544721a0ac4293786ce410dcd0084e1f7cfe6.tar.gz
px4-firmware-c08544721a0ac4293786ce410dcd0084e1f7cfe6.tar.bz2
px4-firmware-c08544721a0ac4293786ce410dcd0084e1f7cfe6.zip
att_pos_estimator_ekf: Update filter to new filter API
Diffstat (limited to 'src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp')
-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;
}