1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Add new symbols to max7456_symbols.h

Fixes the crosshair
Also changed GPS LAT and LON elements to use new symbols
This commit is contained in:
root 2019-05-01 00:12:45 +00:00
parent ddf051fb35
commit a8a997fb59
2 changed files with 14 additions and 8 deletions

View file

@ -25,6 +25,14 @@
#define SYM_END_OF_FONT 0xFF
#define SYM_BLANK 0x20
#define SYM_COLON 0x2D
#define SYM_BBLOG 0x10
#define SYM_HOMEFLAG 0x11
#define SYM_RPM 0x12
#define SYM_ROLL 0x14
#define SYM_PITCH 0x15
#define SYM_TEMPERATURE 0x7A
#define SYM_LAT 0x89
#define SYM_LON 0x98
// RSSI
#define SYM_RSSI 0x01
@ -54,8 +62,8 @@
#define SYM_HEADING_LINE 0x1D
// AH Center screen Graphics
#define SYM_AH_CENTER_LINE 0x26
#define SYM_AH_CENTER_LINE_RIGHT 0x27
#define SYM_AH_CENTER_LINE 0x7B
#define SYM_AH_CENTER_LINE_RIGHT 0x7D
#define SYM_AH_CENTER 0x7E
#define SYM_AH_RIGHT 0x02
#define SYM_AH_LEFT 0x03
@ -125,8 +133,8 @@
#define SYM_FLY_M 0x9C
// Speed
#define SYM_KPH 0x4B // we don't have a KPH symbol so use 'K'
#define SYM_MPH 0x4D // we don't have a MPH symbol so use 'M'
#define SYM_KPH 0x9E
#define SYM_MPH 0x9D
// Menu cursor
#define SYM_CURSOR SYM_AH_LEFT

View file

@ -754,14 +754,12 @@ static void osdElementGpsHomeDistance(osdElementParms_t *element)
static void osdElementGpsLatitude(osdElementParms_t *element)
{
// The SYM_LAT symbol in the actual font contains only blank, so we use the SYM_ARROW_NORTH
osdFormatCoordinate(element->buff, SYM_ARROW_NORTH, gpsSol.llh.lat);
osdFormatCoordinate(element->buff, SYM_LAT, gpsSol.llh.lat);
}
static void osdElementGpsLongitude(osdElementParms_t *element)
{
// The SYM_LON symbol in the actual font contains only blank, so we use the SYM_ARROW_EAST
osdFormatCoordinate(element->buff, SYM_ARROW_EAST, gpsSol.llh.lon);
osdFormatCoordinate(element->buff, SYM_LON, gpsSol.llh.lon);
}
static void osdElementGpsSats(osdElementParms_t *element)