fix compile error

This commit is contained in:
Jin Chengde 2020-01-03 06:21:38 +00:00 committed by Daniel Agar
parent 57f3be3a69
commit 91e4da8885

View File

@ -79,7 +79,7 @@ void RunwayTakeoff::update(float airspeed, float alt_agl,
switch (_state) {
case RunwayTakeoffState::THROTTLE_RAMP:
if (hrt_elapsed_time(&_initialized_time) > _param_rwto_ramp_time.get() * 1e6f
|| airspeed > _param_fw_airspd_min.get() * _param_rwto_airspd_scl.get() * 0.9) {
|| airspeed > _param_fw_airspd_min.get() * _param_rwto_airspd_scl.get() * 0.9f) {
_state = RunwayTakeoffState::CLAMPED_TO_RUNWAY;
}