mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 20:28:37 +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;
|
_mc_yaw_weight = 1.0f;
|
||||||
|
|
||||||
} else if (_vtol_schedule.flight_mode == TRANSITION_TO_MC) {
|
} else if (_vtol_schedule.flight_mode == TRANSITION_TO_MC) {
|
||||||
// keep transitioning to mc mode
|
// transition to MC mode if transition time has passed
|
||||||
_vtol_schedule.flight_mode = MC_MODE;
|
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
|
// the pusher motor should never be powered when in or transitioning to mc mode
|
||||||
|
|||||||
Reference in New Issue
Block a user