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

GPS Rescue procedure can be aborted by moving sticks, with a configurable delay after recovering rx

This commit is contained in:
Tony Cabello 2019-04-09 06:30:35 +02:00
parent b4286c6ac9
commit d829563179
7 changed files with 36 additions and 12 deletions

View file

@ -67,6 +67,11 @@ void updateArmingStatus(void);
void taskMainPidLoop(timeUs_t currentTimeUs);
#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);
#endif
bool isFlipOverAfterCrashActive(void);
int8_t calculateThrottlePercent(void);
uint8_t calculateThrottlePercentAbs(void);