comparison Small_CPU/Src/baseCPU2.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 e7f87ade3037
children
comparison
equal deleted inserted replaced
954:4e4fbd73e329 955:9b29995d6619
381 381
382 ADCx_Init(); 382 ADCx_Init();
383 GPIO_Power_MainCPU_Init(); 383 GPIO_Power_MainCPU_Init();
384 global.mode = MODE_TEST; 384 global.mode = MODE_TEST;
385 #endif 385 #endif
386
387 GNSS_Handle.alive = 0; /* only init at startup (outside init function) */
388 GNSS_Handle.last_fLat = 0.0;
389 GNSS_Handle.last_fLon = 0.0;
390 GNSS_Handle.last_hour = 0;
391
386 while (1) { 392 while (1) {
387 /* printf("Global mode = %d\n", global.mode); */ 393 /* printf("Global mode = %d\n", global.mode); */
388 394
389 switch (global.mode) { 395 switch (global.mode) {
390 case MODE_POWERUP: 396 case MODE_POWERUP: