wait until back transition time has passed

This commit is contained in:
Andreas Antener
2015-08-17 15:35:05 +02:00
parent b56eaeaf8d
commit f1ab7cc880
+5 -2
View File
@@ -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