1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-19 14:25:16 +03:00

FW: Require turn assistant for nav modes using NAV_CTL_ALT

This commit is contained in:
Michel Pastor 2018-06-03 05:04:25 +02:00
parent 46ef27db85
commit 68acbcb12d

View file

@ -2775,7 +2775,7 @@ bool navigationRequiresTurnAssistance(void)
const navigationFSMStateFlags_t currentState = navGetStateFlags(posControl.navState);
if (STATE(FIXED_WING)) {
// For airplanes turn assistant is always required when controlling position
return (currentState & NAV_CTL_POS);
return (currentState & (NAV_CTL_POS | NAV_CTL_ALT));
}
else {
return false;