use new method for instant transition in tiltrotor

This commit is contained in:
Andreas Antener
2016-05-11 17:29:50 +02:00
committed by Lorenz Meier
parent 1a66155d8a
commit 6ebb2079e0
+1 -1
View File
@@ -208,7 +208,7 @@ void Tiltrotor::update_vtol_state()
// check if we have reached airspeed to switch to fw mode
// also allow switch if we are not armed for the sake of bench testing
if (_airspeed->indicated_airspeed_m_s >= _params_tiltrotor.airspeed_trans || !_armed->armed) {
if (_airspeed->indicated_airspeed_m_s >= _params_tiltrotor.airspeed_trans || can_transition_on_ground()) {
_vtol_schedule.flight_mode = TRANSITION_FRONT_P2;
_vtol_schedule.transition_start = hrt_absolute_time();
}