mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Merge pull request #4112 from DanNixon/anti_turtle_mode_warnings
Anti turtle mode warnings
This commit is contained in:
commit
7d671cc998
5 changed files with 29 additions and 17 deletions
|
@ -464,6 +464,13 @@ void processRx(timeUs_t currentTimeUs)
|
|||
|
||||
updateActivatedModes();
|
||||
|
||||
#ifdef USE_DSHOT
|
||||
/* Enable beep warning when the crash flip mode is active */
|
||||
if (isMotorProtocolDshot() && isModeActivationConditionPresent(BOXFLIPOVERAFTERCRASH) && IS_RC_MODE_ACTIVE(BOXFLIPOVERAFTERCRASH)) {
|
||||
beeper(BEEPER_CRASH_FLIP_MODE);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!cliMode) {
|
||||
updateAdjustmentStates();
|
||||
processRcAdjustments(currentControlRateProfile);
|
||||
|
@ -733,6 +740,7 @@ bool isMotorsReversed(void)
|
|||
{
|
||||
return reverseMotors;
|
||||
}
|
||||
|
||||
bool isFlipOverAfterCrashMode(void)
|
||||
{
|
||||
return flipOverAfterCrashMode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue