mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
Notify: Display: pad GPS status/sat count to fix stray chars
This commit is contained in:
parent
f972fed70b
commit
da03cf29d6
@ -423,7 +423,7 @@ void Display::update_prearm(uint8_t r)
|
||||
|
||||
void Display::update_gps(uint8_t r)
|
||||
{
|
||||
static const char * gpsfixname[] = {"Other", "NoGPS","NoFix","2D ","3D ","DGPS ", "RTK f", "RTK F"};
|
||||
static const char * gpsfixname[] = {"Other", "NoGPS","NoFix","2D","3D","DGPS", "RTK f", "RTK F"};
|
||||
char msg [DISPLAY_MESSAGE_SIZE];
|
||||
const char * fixname;
|
||||
switch (AP_Notify::flags.gps_status) {
|
||||
@ -452,7 +452,7 @@ void Display::update_gps(uint8_t r)
|
||||
fixname = gpsfixname[0];
|
||||
break;
|
||||
}
|
||||
snprintf(msg, DISPLAY_MESSAGE_SIZE, "GPS:%s Sats:%u", fixname, AP_Notify::flags.gps_num_sats) ;
|
||||
snprintf(msg, DISPLAY_MESSAGE_SIZE, "GPS:%-5s Sats:%2u", fixname, AP_Notify::flags.gps_num_sats) ;
|
||||
draw_text(COLUMN(0), ROW(r), msg);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user