Mercurial > public > ostc4
diff Discovery/Src/t7.c @ 931:5a9bc2e6112d Evo_2_23
Added Sat Status Overview:
In addition to the navigation data now information regarding the satelliete and signal status are visualized. To enable the a new command has been added to the communication protocol and the position view has been extended.
author | Ideenmodellierer |
---|---|
date | Tue, 03 Dec 2024 20:32:51 +0100 |
parents | 908d9a8e8c84 |
children | 406d498786e7 |
line wrap: on
line diff
--- a/Discovery/Src/t7.c Tue Dec 03 20:24:06 2024 +0100 +++ b/Discovery/Src/t7.c Tue Dec 03 20:32:51 2024 +0100 @@ -4040,16 +4040,20 @@ t7cY0free.WindowY0 = t7cH.WindowY0 - 5 - 2 * t7cY0free.WindowLineSpacing; t7cY0free.WindowNumberOfTextLines = 3; + textpointer += snprintf(&text[textpointer],50,"\001Satellites\n\r"); textpointer += snprintf(&text[textpointer],50,"\001Longitude\n\r"); textpointer += snprintf(&text[textpointer],50,"\001Latitude\n\r"); GFX_write_string(&FontT24, &t7cY0free, text, 1); t7cY0free.WindowY0 -= 52; snprintf(text,60, + "\001%d - %d %d %d %d %d\n\r" "\001%0.5f\n\r" "\001%0.5f\n\r" - ,stateUsed->lifeData.gnssPosition.Longitude - ,stateUsed->lifeData.gnssPosition.Latitude ); + ,stateUsed->lifeData.gnssData.numSat, stateUsed->lifeData.gnssData.fixType + ,stateUsed->lifeData.gnssData.signalQual[0],stateUsed->lifeData.gnssData.signalQual[1],stateUsed->lifeData.gnssData.signalQual[2],stateUsed->lifeData.gnssData.signalQual[3] + ,stateUsed->lifeData.gnssData.fLat + ,stateUsed->lifeData.gnssData.fLon ); GFX_write_string(&FontT42, &t7cY0free, text, 1); }