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:
commit
b9fc77db3b
8 changed files with 45 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue