mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 15:13:34 +08:00
att pos estimator: Use float constant where it should be float.
This commit is contained in:
@@ -1085,7 +1085,7 @@ FixedwingEstimator::task_main()
|
|||||||
|
|
||||||
float baro_elapsed = (_baro.timestamp - baro_last) / 1e6f;
|
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;
|
_ekf->baroHgt = _baro.altitude;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user