mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-02 01:00:35 +08:00
fix bug if speed reach minium during ramp
This commit is contained in:
@@ -78,7 +78,8 @@ 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) {
|
||||
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) {
|
||||
_state = RunwayTakeoffState::CLAMPED_TO_RUNWAY;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user