diff Small_CPU/Inc/GNSS.h @ 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 2225c467f1e9
children 43055e069bd1
line wrap: on
line diff
--- a/Small_CPU/Inc/GNSS.h	Tue Dec 03 20:24:06 2024 +0100
+++ b/Small_CPU/Inc/GNSS.h	Tue Dec 03 20:32:51 2024 +0100
@@ -60,7 +60,7 @@
 	UART_HandleTypeDef *huart;
 
 	uint8_t uniqueID[4];
-	uint8_t uartWorkingBuffer[101];
+	uint8_t uartWorkingBuffer[255];
 
 	unsigned short year;
 	uint8_t yearBytes[2];
@@ -88,6 +88,9 @@
 	uint8_t gSpeedBytes[4];
 	signed long headMot;
 
+	uint8_t numSat;
+	uint8_t statSat[4];
+
 }GNSS_StateHandle;
 
 GNSS_StateHandle GNSS_Handle;
@@ -110,6 +113,8 @@
 
 static const uint8_t getPVTData[]={0xB5,0x62,0x01,0x07,0x00,0x00,0x08,0x19};
 
+static const uint8_t getNavSat[]={0xB5,0x62,0x01,0x35,0x00,0x00,0x36,0xA3};
+
 static const uint8_t setPortableMode[]={0xB5,0x62,0x06,0x24,0x24,0x00,0xFF,0xFF,0x00,0x03,0x00,0x00,0x00,0x00,0x10,0x27,0x00,0x00,0x05,0x00,0xFA,0x00,0xFA,0x00,0x64,0x00,0x5E,0x01,0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x3C};
 
 static const uint8_t setStationaryMode[]={0xB5,0x62,0x06,0x24,0x24,0x00,0xFF,0xFF,0x02,0x03,0x00,0x00,0x00,0x00,0x10,0x27,0x00,0x00,0x05,0x00,0xFA,0x00,0xFA,0x00,0x64,0x00,0x5E,0x01,0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80};
@@ -140,6 +145,7 @@
 
 void GNSS_GetNavigatorData(GNSS_StateHandle *GNSS);
 void GNSS_ParseNavigatorData(GNSS_StateHandle *GNSS);
+void GNSS_ParseNavSatData(GNSS_StateHandle *GNSS);
 
 void GNSS_GetPOSLLHData(GNSS_StateHandle *GNSS);
 void GNSS_ParsePOSLLHData(GNSS_StateHandle *GNSS);