mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Remove second symbol in the Throttle OSD element (#8372)
Remove second symbol in the Throttle OSD element
This commit is contained in:
commit
c57d858774
2 changed files with 3 additions and 6 deletions
|
@ -41,7 +41,6 @@
|
||||||
|
|
||||||
// Throttle Position (%)
|
// Throttle Position (%)
|
||||||
#define SYM_THR 0x04
|
#define SYM_THR 0x04
|
||||||
#define SYM_THR1 0x05
|
|
||||||
|
|
||||||
// Map mode
|
// Map mode
|
||||||
#define SYM_HOME 0x04
|
#define SYM_HOME 0x04
|
||||||
|
|
|
@ -787,8 +787,8 @@ static void osdElementGpsHomeDirection(osdElementParms_t *element)
|
||||||
const int h = GPS_directionToHome - DECIDEGREES_TO_DEGREES(attitude.values.yaw);
|
const int h = GPS_directionToHome - DECIDEGREES_TO_DEGREES(attitude.values.yaw);
|
||||||
element->buff[0] = osdGetDirectionSymbolFromHeading(h);
|
element->buff[0] = osdGetDirectionSymbolFromHeading(h);
|
||||||
} else {
|
} else {
|
||||||
// We don't have a HOME symbol in the font, by now we use this
|
// We use this symbol when we are at HOME position
|
||||||
element->buff[0] = SYM_THR1;
|
element->buff[0] = '#';
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -1073,9 +1073,7 @@ static void osdElementStickOverlay(osdElementParms_t *element)
|
||||||
|
|
||||||
static void osdElementThrottlePosition(osdElementParms_t *element)
|
static void osdElementThrottlePosition(osdElementParms_t *element)
|
||||||
{
|
{
|
||||||
element->buff[0] = SYM_THR;
|
tfp_sprintf(element->buff, "%c%3d", SYM_THR, calculateThrottlePercent());
|
||||||
element->buff[1] = SYM_THR1;
|
|
||||||
tfp_sprintf(element->buff + 2, "%3d", calculateThrottlePercent());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void osdElementTimer(osdElementParms_t *element)
|
static void osdElementTimer(osdElementParms_t *element)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue