1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-20 14:55:18 +03:00

Merge pull request #3379 from shellixyz/require_turn_assistant_for_NAV_CTL_ALT

FW: Require turn assistant for nav modes using NAV_CTL_ALT
This commit is contained in:
Alberto García Hierro 2018-06-27 19:13:40 +01:00 committed by GitHub
commit 53110d0b18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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