comparison 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
comparison
equal deleted inserted replaced
918:f72613a152dd 919:c0553dd70608
880 copyAmbientLightData(); 880 copyAmbientLightData();
881 #ifdef ENABLE_GNSS 881 #ifdef ENABLE_GNSS
882 uartGnss_ProcessData(); 882 uartGnss_ProcessData();
883 uartGnss_Control(); 883 uartGnss_Control();
884 #endif 884 #endif
885 #ifdef ENABLE_GNSS_SUPPORT
885 copyGNSSdata(); 886 copyGNSSdata();
887 #endif
886 Scheduler.counterAmbientLight100msec++; 888 Scheduler.counterAmbientLight100msec++;
887 } 889 }
888 890
889 891
890 892
1743 global.dataSendToMaster.boolADCO2Data |= boolCO2Buffer; 1745 global.dataSendToMaster.boolADCO2Data |= boolCO2Buffer;
1744 } 1746 }
1745 1747
1746 void copyGNSSdata(void) 1748 void copyGNSSdata(void)
1747 { 1749 {
1748 #ifdef ENABLE_GNSS
1749 global.dataSendToMaster.data[0].fLat = GNSS_Handle.fLat; 1750 global.dataSendToMaster.data[0].fLat = GNSS_Handle.fLat;
1750 global.dataSendToMaster.data[0].fLon = GNSS_Handle.fLon; 1751 global.dataSendToMaster.data[0].fLon = GNSS_Handle.fLon;
1751 #else
1752 static float tmpLon = 0.0;
1753 static float tmpLat= 100.0;
1754 global.dataSendToMaster.data[0].fLat = tmpLat;
1755 global.dataSendToMaster.data[0].fLon = tmpLon;
1756 tmpLon += 0.15;
1757 if(tmpLon > 360.0) tmpLon = 0.0;
1758 tmpLat += 0.33;
1759 if(tmpLat > 360.0) tmpLat = 0.0;
1760 #endif
1761 } 1752 }
1762 1753
1763 1754
1764 typedef enum 1755 typedef enum
1765 { 1756 {