Merge pull request #6877 from etracer65/headfree_osd_flightmode_display
Add HEADFREE indicator to the OSD flight mode and warnings display elements
This commit is contained in:
commit
1c5568cd8d
|
@ -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…
Reference in New Issue