mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 16:33:34 +08:00
use new method for instant transition in tiltrotor
This commit is contained in:
committed by
Lorenz Meier
parent
1a66155d8a
commit
6ebb2079e0
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user