1
0
Fork 0
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:
Dan Nixon 2017-09-09 16:47:06 +01:00
parent a4040caebd
commit 3aeef39b5a
5 changed files with 29 additions and 17 deletions

View file

@ -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;