mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 17:55:30 +03:00
Refactor of OSD fonts
This commit is contained in:
parent
e3c8b1b46a
commit
240975f736
2 changed files with 7 additions and 9 deletions
|
@ -31,10 +31,13 @@
|
||||||
#define SYM_ROLL 0x14
|
#define SYM_ROLL 0x14
|
||||||
#define SYM_PITCH 0x15
|
#define SYM_PITCH 0x15
|
||||||
#define SYM_TEMPERATURE 0x7A
|
#define SYM_TEMPERATURE 0x7A
|
||||||
|
|
||||||
|
// GPS and navigation
|
||||||
#define SYM_LAT 0x89
|
#define SYM_LAT 0x89
|
||||||
#define SYM_LON 0x98
|
#define SYM_LON 0x98
|
||||||
#define SYM_ALTITUDE 0x7F
|
#define SYM_ALTITUDE 0x7F
|
||||||
#define SYM_TOTAL_DISTANCE 0x71
|
#define SYM_TOTAL_DISTANCE 0x71
|
||||||
|
#define SYM_OVER_HOME 0x05
|
||||||
|
|
||||||
// RSSI
|
// RSSI
|
||||||
#define SYM_RSSI 0x01
|
#define SYM_RSSI 0x01
|
||||||
|
@ -42,10 +45,6 @@
|
||||||
// Throttle Position (%)
|
// Throttle Position (%)
|
||||||
#define SYM_THR 0x04
|
#define SYM_THR 0x04
|
||||||
|
|
||||||
// Map mode
|
|
||||||
#define SYM_HOME 0x04
|
|
||||||
#define SYM_AIRCRAFT 0x05
|
|
||||||
|
|
||||||
// Unit Icons (Metric)
|
// Unit Icons (Metric)
|
||||||
#define SYM_M 0x0C
|
#define SYM_M 0x0C
|
||||||
#define SYM_C 0x0E
|
#define SYM_C 0x0E
|
||||||
|
@ -63,9 +62,9 @@
|
||||||
#define SYM_HEADING_LINE 0x1D
|
#define SYM_HEADING_LINE 0x1D
|
||||||
|
|
||||||
// AH Center screen Graphics
|
// AH Center screen Graphics
|
||||||
#define SYM_AH_CENTER_LINE 0x7B
|
#define SYM_AH_CENTER_LINE 0x72
|
||||||
#define SYM_AH_CENTER_LINE_RIGHT 0x7D
|
#define SYM_AH_CENTER 0x73
|
||||||
#define SYM_AH_CENTER 0x7E
|
#define SYM_AH_CENTER_LINE_RIGHT 0x74
|
||||||
#define SYM_AH_RIGHT 0x02
|
#define SYM_AH_RIGHT 0x02
|
||||||
#define SYM_AH_LEFT 0x03
|
#define SYM_AH_LEFT 0x03
|
||||||
#define SYM_AH_DECORATION 0x13
|
#define SYM_AH_DECORATION 0x13
|
||||||
|
|
|
@ -787,8 +787,7 @@ 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 use this symbol when we are at HOME position
|
element->buff[0] = SYM_OVER_HOME;
|
||||||
element->buff[0] = '#';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue