mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
GPS RESCUE has display precedence over other modes except FS
This commit is contained in:
parent
98616d4690
commit
00d3f2217a
1 changed files with 9 additions and 2 deletions
|
@ -589,14 +589,21 @@ static bool osdDrawSingleElement(uint8_t item)
|
||||||
|
|
||||||
case OSD_FLYMODE:
|
case OSD_FLYMODE:
|
||||||
{
|
{
|
||||||
|
// Note that flight mode display has precedence in what to display.
|
||||||
|
// 1. FS
|
||||||
|
// 2. GPS RESCUE
|
||||||
|
// 3. ANGLE, HORIZON, ACRO TRAINER
|
||||||
|
// 4. AIR
|
||||||
|
// 5. ACRO
|
||||||
|
|
||||||
if (FLIGHT_MODE(FAILSAFE_MODE)) {
|
if (FLIGHT_MODE(FAILSAFE_MODE)) {
|
||||||
strcpy(buff, "!FS!");
|
strcpy(buff, "!FS!");
|
||||||
|
} else if (FLIGHT_MODE(GPS_RESCUE_MODE)) {
|
||||||
|
strcpy(buff, "RESC");
|
||||||
} else if (FLIGHT_MODE(ANGLE_MODE)) {
|
} else if (FLIGHT_MODE(ANGLE_MODE)) {
|
||||||
strcpy(buff, "STAB");
|
strcpy(buff, "STAB");
|
||||||
} else if (FLIGHT_MODE(HORIZON_MODE)) {
|
} else if (FLIGHT_MODE(HORIZON_MODE)) {
|
||||||
strcpy(buff, "HOR ");
|
strcpy(buff, "HOR ");
|
||||||
} else if (FLIGHT_MODE(GPS_RESCUE_MODE)) {
|
|
||||||
strcpy(buff, "RESC");
|
|
||||||
} else if (IS_RC_MODE_ACTIVE(BOXACROTRAINER)) {
|
} else if (IS_RC_MODE_ACTIVE(BOXACROTRAINER)) {
|
||||||
strcpy(buff, "ATRN");
|
strcpy(buff, "ATRN");
|
||||||
} else if (isAirmodeActive()) {
|
} else if (isAirmodeActive()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue