added more to GPS summary and fixed a couple of warnings.

md1702
vk7js 2022-05-19 18:38:16 +10:00 zatwierdzone przez Silvano Seva
rodzic 4b604e255f
commit c24af62000
3 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -132,6 +132,9 @@ PROMPT_LATITUDE, // latitude
PROMPT_LONGITUDE, // longitude
PROMPT_SPEED, // speed
PROMPT_ALTITUDE, // altitude
PROMPT_SATELLITES, // satellites
PROMPT_COMPASS, // compass
PROMPT_DEGREES, // degrees
PROMPT_CHARACTER, // character
PROMPT_SPACE, // space
PROMPT_PERCENT, // Percent

Wyświetl plik

@ -510,6 +510,11 @@ void announceGPSInfo(VoicePromptQueueFlags_T flags)
vpQueuePrompt(PROMPT_ALTITUDE);
snprintf(buffer, 16, "%4.1fm", state.gps_data.altitude);
vpQueueString(buffer, vpAnnounceCommonSymbols);
vpQueuePrompt(PROMPT_COMPASS);
vpQueueInteger(state.gps_data.tmg_true);
vpQueuePrompt(PROMPT_DEGREES);
vpQueuePrompt(PROMPT_SATELLITES);
vpQueueInteger(__builtin_popcount(state.gps_data.active_sats));
vpPlayIfNeeded(flags);
}

Wyświetl plik

@ -471,7 +471,7 @@ void _ui_drawMenuGPS()
fix_buf = "PPS";
break;
default:
fix_buf = currentLanguage->error;
fix_buf = (char*)currentLanguage->error;
break;
}
@ -487,7 +487,7 @@ void _ui_drawMenuGPS()
type_buf = "3D";
break;
default:
type_buf = currentLanguage->error;
type_buf = (char*)currentLanguage->error;
break;
}
gfx_print(layout.line1_pos, layout.top_font, TEXT_ALIGN_LEFT,