mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Add HEADFREE indicator to the OSD flight mode and warnings display elements
Provide multiple mechanisms to alert the pilot that he is attempting to fly in HEADFREE mode while in FPV - which will likely result in disorientation and loss of control.
This commit is contained in:
parent
f34af48dcd
commit
a3fb5cc156
1 changed files with 8 additions and 0 deletions
|
@ -627,6 +627,8 @@ static bool osdDrawSingleElement(uint8_t item)
|
|||
strcpy(buff, "!FS!");
|
||||
} else if (FLIGHT_MODE(GPS_RESCUE_MODE)) {
|
||||
strcpy(buff, "RESC");
|
||||
} else if (FLIGHT_MODE(HEADFREE_MODE)) {
|
||||
strcpy(buff, "HEAD");
|
||||
} else if (FLIGHT_MODE(ANGLE_MODE)) {
|
||||
strcpy(buff, "STAB");
|
||||
} else if (FLIGHT_MODE(HORIZON_MODE)) {
|
||||
|
@ -797,6 +799,12 @@ static bool osdDrawSingleElement(uint8_t item)
|
|||
break;
|
||||
}
|
||||
|
||||
// Show warning if in HEADFREE flight mode
|
||||
if (FLIGHT_MODE(HEADFREE_MODE)) {
|
||||
osdFormatMessage(buff, OSD_FORMAT_MESSAGE_BUFFER_SIZE, "HEADFREE");
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef USE_ADC_INTERNAL
|
||||
uint8_t coreTemperature = getCoreTemperatureCelsius();
|
||||
if (osdWarnGetState(OSD_WARNING_CORE_TEMPERATURE) && coreTemperature >= osdConfig()->core_temp_alarm) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue