1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

When GPS Rescue is engaged after a Failsafe, pilot has to manually sw… (#7936)

When GPS Rescue is engaged after a Failsafe, pilot has to manually sw…
This commit is contained in:
Michael Keller 2019-04-30 08:24:59 +12:00 committed by GitHub
commit b9fc77db3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 45 additions and 11 deletions

View file

@ -579,7 +579,7 @@ static bool canUpdateVTX(void)
}
#endif
#ifdef USE_RUNAWAY_TAKEOFF
#if defined(USE_RUNAWAY_TAKEOFF) || defined(USE_GPS_RESCUE)
// determine if the R/P/Y stick deflection exceeds the specified limit - integer math is good enough here.
bool areSticksActive(uint8_t stickPercentLimit)
{
@ -601,8 +601,9 @@ bool areSticksActive(uint8_t stickPercentLimit)
}
return false;
}
#endif
#ifdef USE_RUNAWAY_TAKEOFF
// allow temporarily disabling runaway takeoff prevention if we are connected
// to the configurator and the ARMING_DISABLED_MSP flag is cleared.
void runawayTakeoffTemporaryDisable(uint8_t disableFlag)