mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +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
|
@ -584,7 +584,13 @@ static void osdDrawSingleElement(uint8_t item)
|
|||
}
|
||||
|
||||
case OSD_WARNINGS:
|
||||
/* Show common reason for arming being disabled */
|
||||
/* Warn when in flip over after crash mode */
|
||||
if ((isModeActivationConditionPresent(BOXFLIPOVERAFTERCRASH)) && IS_RC_MODE_ACTIVE(BOXFLIPOVERAFTERCRASH)) {
|
||||
tfp_sprintf(buff, "CRASH FLIP");
|
||||
break;
|
||||
}
|
||||
|
||||
/* Show most severe reason for arming being disabled */
|
||||
if (IS_RC_MODE_ACTIVE(BOXARM) && isArmingDisabled()) {
|
||||
const armingDisableFlags_e flags = getArmingDisableFlags();
|
||||
for (int i = 0; i < NUM_ARMING_DISABLE_FLAGS; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue