mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Add OSD and beeper warnings for anti turtle mode
This commit is contained in:
parent
a4040caebd
commit
3aeef39b5a
5 changed files with 29 additions and 17 deletions
|
@ -465,6 +465,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);
|
||||
|
@ -732,6 +739,7 @@ bool isMotorsReversed(void)
|
|||
{
|
||||
return reverseMotors;
|
||||
}
|
||||
|
||||
bool isFlipOverAfterCrashMode(void)
|
||||
{
|
||||
return flipOverAfterCrashMode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue