diff Small_CPU/Inc/uartProtocol_GNSS.h @ 931:5a9bc2e6112d Evo_2_23 tip

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 c0553dd70608
children
line wrap: on
line diff
--- a/Small_CPU/Inc/uartProtocol_GNSS.h	Tue Dec 03 20:24:06 2024 +0100
+++ b/Small_CPU/Inc/uartProtocol_GNSS.h	Tue Dec 03 20:32:51 2024 +0100
@@ -41,6 +41,7 @@
 		UART_GNSS_LOADCONF_1,
 		UART_GNSS_LOADCONF_2,
 		UART_GNSS_GET_PVT,
+		UART_GNSS_GET_SAT
   } uartGnssStatus_t;
 
   typedef enum
@@ -50,13 +51,15 @@
 	GNSSRX_DETECT_HEADER_1,
 	GNSSRX_DETECT_HEADER_2,
 	GNSSRX_DETECT_HEADER_3,
+	GNSSRX_DETECT_LENGTH_0,
+	GNSSRX_DETECT_LENGTH_1,
 	GNSSRX_DETECT_ACK_0,
 	GNSSRX_DETECT_ACK_1,
 	GNSSRX_DETECT_ACK_2,
 	GNSSRX_DETECT_ACK_3,
-	GNSSRX_READ_NAV_DATA,
-	GNSSRX_READ_PVT_DATA,
-	GNSSRX_READ_POSLLH_DATA
+	GNSSRX_READ_DATA,
+	GNSSRX_READ_CK_A,
+	GNSSRX_READ_CK_B,
   } receiveStateGnss_t;
 
 
@@ -67,9 +70,16 @@
 	GNSSCMD_LOADCONF_2,
 	GNSSCMD_GET_NAV_DATA,
 	GNSSCMD_GET_PVT_DATA,
-	GNSSCMD_GET_POSLLH_DATA
+	GNSSCMD_GET_POSLLH_DATA,
+	GNSSCMD_GET_NAVSAT_DATA
   } gnssSensorCmd_t;
 
+  typedef struct
+  {
+    uint8_t class;
+    uint8_t id;
+  } gnssRequest_s;
+
 
 void uartGnss_Control(void);
 void uartGnss_ProcessData(uint8_t data);