Mercurial > public > ostc4
diff Small_CPU/Src/scheduler.c @ 919:c0553dd70608 Evo_2_23
GNSS support for external UART interface:
An ubox gps module may now be connected to the external UART. Per default the functionality is disabled using the compile switch ENABLE_GNSS_SUPPORT
author | Ideenmodellierer |
---|---|
date | Sun, 03 Nov 2024 15:43:04 +0100 |
parents | 5736b2641cb0 |
children | 7c996354b8ac |
line wrap: on
line diff
--- a/Small_CPU/Src/scheduler.c Sun Nov 03 15:40:55 2024 +0100 +++ b/Small_CPU/Src/scheduler.c Sun Nov 03 15:43:04 2024 +0100 @@ -882,7 +882,9 @@ uartGnss_ProcessData(); uartGnss_Control(); #endif +#ifdef ENABLE_GNSS_SUPPORT copyGNSSdata(); +#endif Scheduler.counterAmbientLight100msec++; } @@ -1745,19 +1747,8 @@ void copyGNSSdata(void) { -#ifdef ENABLE_GNSS global.dataSendToMaster.data[0].fLat = GNSS_Handle.fLat; global.dataSendToMaster.data[0].fLon = GNSS_Handle.fLon; -#else - static float tmpLon = 0.0; - static float tmpLat= 100.0; - global.dataSendToMaster.data[0].fLat = tmpLat; - global.dataSendToMaster.data[0].fLon = tmpLon; - tmpLon += 0.15; - if(tmpLon > 360.0) tmpLon = 0.0; - tmpLat += 0.33; - if(tmpLat > 360.0) tmpLat = 0.0; -#endif }