corrected gps summary to use a stingized float for the compass bearing.

Also fixed another warning.
md1702
vk7js 2022-05-19 19:15:15 +10:00 zatwierdzone przez Silvano Seva
rodzic c24af62000
commit 46e3900462
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -507,12 +507,16 @@ void announceGPSInfo(VoicePromptQueueFlags_T flags)
vpQueuePrompt(PROMPT_SPEED);
snprintf(buffer, 16, "%4.1fkm/h", state.gps_data.speed);
vpQueueString(buffer, vpAnnounceCommonSymbols);
vpQueuePrompt(PROMPT_ALTITUDE);
snprintf(buffer, 16, "%4.1fm", state.gps_data.altitude);
vpQueueString(buffer, vpAnnounceCommonSymbols);
vpQueuePrompt(PROMPT_COMPASS);
vpQueueInteger(state.gps_data.tmg_true);
snprintf(buffer, 16, "%3.1f", state.gps_data.tmg_true);
vpQueueString(buffer, vpAnnounceCommonSymbols);
vpQueuePrompt(PROMPT_DEGREES);
vpQueuePrompt(PROMPT_SATELLITES);
vpQueueInteger(__builtin_popcount(state.gps_data.active_sats));

Wyświetl plik

@ -20,6 +20,7 @@
/*
This string table's order must not be altered as voice prompts will be indexed in the same order as these strings.
*/
#include <string.h>
#include "ui/UIStrings.h"
#include "ui/EnglishStrings.h"
#include <stdint.h>