Skip to content

Commit

Permalink
Plane: Fix SLT_Transition::active_frwd() check
Browse files Browse the repository at this point in the history
  • Loading branch information
Georacer authored and tridge committed Oct 9, 2024
1 parent ecf11f2 commit 4352129
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ArduPlane/quadplane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4374,7 +4374,9 @@ bool SLT_Transition::allow_update_throttle_mix() 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.
}

/*
Expand Down

0 comments on commit 4352129

Please sign in to comment.