mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_OSD: increased lat/lon field
Lattitude integer part could be 4 char wide like -171.123
This commit is contained in:
parent
8dd4108f3c
commit
dc454881df
@ -526,7 +526,7 @@ void AP_OSD_Screen::draw_gps_latitude(uint8_t x, uint8_t y)
|
||||
dec_portion = loc.lat / 10000000L;
|
||||
frac_portion = abs_lat - labs(dec_portion)*10000000UL;
|
||||
|
||||
backend->write(x, y, false, "%c%3ld.%07ld", SYM_GPS_LAT, (long)dec_portion,(long)frac_portion);
|
||||
backend->write(x, y, false, "%c%4ld.%07ld", SYM_GPS_LAT, (long)dec_portion,(long)frac_portion);
|
||||
}
|
||||
|
||||
void AP_OSD_Screen::draw_gps_longitude(uint8_t x, uint8_t y)
|
||||
@ -539,7 +539,7 @@ void AP_OSD_Screen::draw_gps_longitude(uint8_t x, uint8_t y)
|
||||
dec_portion = loc.lng / 10000000L;
|
||||
frac_portion = abs_lon - labs(dec_portion)*10000000UL;
|
||||
|
||||
backend->write(x, y, false, "%c%3ld.%07ld", SYM_GPS_LONG, (long)dec_portion,(long)frac_portion);
|
||||
backend->write(x, y, false, "%c%4ld.%07ld", SYM_GPS_LONG, (long)dec_portion,(long)frac_portion);
|
||||
}
|
||||
|
||||
#define DRAW_SETTING(n) if (n.enabled) draw_ ## n(n.xpos, n.ypos)
|
||||
|
Loading…
Reference in New Issue
Block a user