Notify: Update for GPS types

This commit is contained in:
Michael du Breuil 2016-10-16 17:54:46 -07:00 committed by Francisco Ferreira
parent d05b0d5885
commit 9346117c01
1 changed files with 5 additions and 2 deletions

View File

@ -423,7 +423,7 @@ void Display::update_prearm(uint8_t r)
void Display::update_gps(uint8_t r) void Display::update_gps(uint8_t r)
{ {
static const char * gpsfixname[] = {"Other", "NoGPS","NoFix","2D ","3D ","DGPS " ,"RTK "}; static const char * gpsfixname[] = {"Other", "NoGPS","NoFix","2D ","3D ","DGPS ", "RTK f", "RTK F"};
char msg [DISPLAY_MESSAGE_SIZE]; char msg [DISPLAY_MESSAGE_SIZE];
const char * fixname; const char * fixname;
switch (AP_Notify::flags.gps_status) { switch (AP_Notify::flags.gps_status) {
@ -442,9 +442,12 @@ void Display::update_gps(uint8_t r)
case AP_GPS::GPS_OK_FIX_3D_DGPS: case AP_GPS::GPS_OK_FIX_3D_DGPS:
fixname = gpsfixname[5]; fixname = gpsfixname[5];
break; break;
case AP_GPS::GPS_OK_FIX_3D_RTK: case AP_GPS::GPS_OK_FIX_3D_RTK_FLOAT:
fixname = gpsfixname[6]; fixname = gpsfixname[6];
break; break;
case AP_GPS::GPS_OK_FIX_3D_RTK_FIXED:
fixname = gpsfixname[7];
break;
default: default:
fixname = gpsfixname[0]; fixname = gpsfixname[0];
break; break;