From 46e3900462380cce0e25e932b6c746f5960f6a4c Mon Sep 17 00:00:00 2001 From: vk7js <58905135+vk7js@users.noreply.github.com> Date: Thu, 19 May 2022 19:15:15 +1000 Subject: [PATCH] corrected gps summary to use a stingized float for the compass bearing. Also fixed another warning. --- openrtx/src/core/voicePromptUtils.c | 6 +++++- openrtx/src/ui/UIStrings.c | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/openrtx/src/core/voicePromptUtils.c b/openrtx/src/core/voicePromptUtils.c index 263ca66a..5ae1c0aa 100644 --- a/openrtx/src/core/voicePromptUtils.c +++ b/openrtx/src/core/voicePromptUtils.c @@ -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)); diff --git a/openrtx/src/ui/UIStrings.c b/openrtx/src/ui/UIStrings.c index e91a5fb9..c78fbbca 100644 --- a/openrtx/src/ui/UIStrings.c +++ b/openrtx/src/ui/UIStrings.c @@ -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 #include "ui/UIStrings.h" #include "ui/EnglishStrings.h" #include