comparison Discovery/Src/t7.c @ 955:9b29995d6619 Evo_2_23 tip

GNSS backup position: In the previous implementation a position had to be provided by the module in order to be stored in the log. This may cause a wrong position entry (default) in the log, for example if signal is lost while preparing for the dive in the water. To avoid this the last received position will be used for ~2 hours => Diver may take the dive side position before starting with the dive preparation. The last known position will be display in the GNSS position search window as well.
author Ideenmodellierer
date Wed, 01 Jan 2025 20:37:17 +0100
parents 4e4fbd73e329
children
comparison
equal deleted inserted replaced
954:4e4fbd73e329 955:9b29995d6619
4047 t7cY0free.WindowNumberOfTextLines = 3; 4047 t7cY0free.WindowNumberOfTextLines = 3;
4048 t7cY0free.WindowY0 -= 20; 4048 t7cY0free.WindowY0 -= 20;
4049 if(stateUsed->lifeData.gnssData.fixType < 2) 4049 if(stateUsed->lifeData.gnssData.fixType < 2)
4050 { 4050 {
4051 textpointer += snprintf(&text[textpointer],50,"\001Satellites\n\r"); 4051 textpointer += snprintf(&text[textpointer],50,"\001Satellites\n\r");
4052 if(stateUsed->lifeData.gnssData.alive & GNSS_ALIVE_STATE_TIME) 4052 if(stateUsed->lifeData.gnssData.alive & GNSS_ALIVE_STATE_ALIVE)
4053 { 4053 {
4054 textpointer += snprintf(&text[textpointer],50,"\001\020Status\n\r"); 4054 textpointer += snprintf(&text[textpointer],50,"\001\020Status\n\r");
4055 } 4055 }
4056 else 4056 else
4057 { 4057 {
4093 GFX_draw_thick_line(20, &t7screen, start, stop, color); 4093 GFX_draw_thick_line(20, &t7screen, start, stop, color);
4094 start.x += 40; 4094 start.x += 40;
4095 stop.x += 40; 4095 stop.x += 40;
4096 4096
4097 index++; 4097 index++;
4098 }
4099 if(stateUsed->lifeData.gnssData.alive & GNSS_ALIVE_BACKUP_POS)
4100 {
4101 snprintf(text,50,"\001%2.2f %2.2f", stateUsed->lifeData.gnssData.coord.fLat,stateUsed->lifeData.gnssData.coord.fLon);
4102 GFX_write_string(&FontT24, &t7cY0free, text, 3);
4098 } 4103 }
4099 } 4104 }
4100 4105
4101 4106
4102 } 4107 }