aboutsummaryrefslogtreecommitdiff
path: root/src/modules/ekf_att_pos_estimator
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-10-09 09:23:00 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-10-09 09:23:00 +0200
commitaca9b138b7e92bd2a32e8673c81f3fe2d088a427 (patch)
tree60d3acd17cc4183c21416f4a2a7164a0eac5f0c9 /src/modules/ekf_att_pos_estimator
parentcfc6c234b83a457e4288c39f778341f6c8489e85 (diff)
downloadpx4-firmware-aca9b138b7e92bd2a32e8673c81f3fe2d088a427.tar.gz
px4-firmware-aca9b138b7e92bd2a32e8673c81f3fe2d088a427.tar.bz2
px4-firmware-aca9b138b7e92bd2a32e8673c81f3fe2d088a427.zip
att pos estimator: Use float constant where it should be float.
Diffstat (limited to 'src/modules/ekf_att_pos_estimator')
-rw-r--r--src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp b/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp
index 03ae1d847..a61346c2e 100644
--- a/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp
+++ b/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp
@@ -1085,7 +1085,7 @@ FixedwingEstimator::task_main()
float baro_elapsed = (_baro.timestamp - baro_last) / 1e6f;
- _ekf->updateDtHgtFilt(math::constrain(baro_elapsed, 0.001f, 0.1));
+ _ekf->updateDtHgtFilt(math::constrain(baro_elapsed, 0.001f, 0.1f));
_ekf->baroHgt = _baro.altitude;