mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 21:55:34 +08:00
wait until back transition time has passed
This commit is contained in:
@@ -128,8 +128,11 @@ void Standard::update_vtol_state()
|
||||
_mc_yaw_weight = 1.0f;
|
||||
|
||||
} else if (_vtol_schedule.flight_mode == TRANSITION_TO_MC) {
|
||||
// keep transitioning to mc mode
|
||||
_vtol_schedule.flight_mode = MC_MODE;
|
||||
// transition to MC mode if transition time has passed
|
||||
if (hrt_elapsed_time(&_vtol_schedule.transition_start) >
|
||||
(_params_standard.back_trans_dur * 1000000.0f)) {
|
||||
_vtol_schedule.flight_mode = MC_MODE;
|
||||
}
|
||||
}
|
||||
|
||||
// the pusher motor should never be powered when in or transitioning to mc mode
|
||||
|
||||
Reference in New Issue
Block a user