mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-02 22:18:28 -04:00
Plane: Fix SLT_Transition::active_frwd() check
This commit is contained in:
parent
ecf11f2208
commit
4352129c4d
@ -4374,7 +4374,9 @@ bool SLT_Transition::allow_update_throttle_mix() const
|
|||||||
|
|
||||||
bool SLT_Transition::active_frwd() const
|
bool SLT_Transition::active_frwd() const
|
||||||
{
|
{
|
||||||
return quadplane.assisted_flight && ((transition_state == TRANSITION_AIRSPEED_WAIT) || (transition_state == TRANSITION_TIMER));
|
return quadplane.assisted_flight && // We need to be in assisted flight...
|
||||||
|
((transition_state == TRANSITION_AIRSPEED_WAIT) || (transition_state == TRANSITION_TIMER)) // ... and a transition must be active...
|
||||||
|
&& !quadplane.in_vtol_airbrake(); // ... but not executing an QPOS_AIRBRAKE maneuver during an automated landing.
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user