diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-10-09 09:23:00 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-10-09 09:23:00 +0200 |
commit | aca9b138b7e92bd2a32e8673c81f3fe2d088a427 (patch) | |
tree | 60d3acd17cc4183c21416f4a2a7164a0eac5f0c9 /src/modules | |
parent | cfc6c234b83a457e4288c39f778341f6c8489e85 (diff) | |
download | px4-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')
-rw-r--r-- | src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp | 2 |
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; |