Skip to content
Snippets Groups Projects
Commit 6ebb2079 authored by Andreas Antener's avatar Andreas Antener Committed by Lorenz Meier
Browse files

use new method for instant transition in tiltrotor

parent 1a66155d
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment