comparison 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
comparison
equal deleted inserted replaced
930:25948e805406 931:5a9bc2e6112d
39 UART_GNSS_WARMUP = 10, 39 UART_GNSS_WARMUP = 10,
40 UART_GNSS_LOADCONF_0, 40 UART_GNSS_LOADCONF_0,
41 UART_GNSS_LOADCONF_1, 41 UART_GNSS_LOADCONF_1,
42 UART_GNSS_LOADCONF_2, 42 UART_GNSS_LOADCONF_2,
43 UART_GNSS_GET_PVT, 43 UART_GNSS_GET_PVT,
44 UART_GNSS_GET_SAT
44 } uartGnssStatus_t; 45 } uartGnssStatus_t;
45 46
46 typedef enum 47 typedef enum
47 { 48 {
48 GNSSRX_READY = 0, /* Initial state */ 49 GNSSRX_READY = 0, /* Initial state */
49 GNSSRX_DETECT_HEADER_0, 50 GNSSRX_DETECT_HEADER_0,
50 GNSSRX_DETECT_HEADER_1, 51 GNSSRX_DETECT_HEADER_1,
51 GNSSRX_DETECT_HEADER_2, 52 GNSSRX_DETECT_HEADER_2,
52 GNSSRX_DETECT_HEADER_3, 53 GNSSRX_DETECT_HEADER_3,
54 GNSSRX_DETECT_LENGTH_0,
55 GNSSRX_DETECT_LENGTH_1,
53 GNSSRX_DETECT_ACK_0, 56 GNSSRX_DETECT_ACK_0,
54 GNSSRX_DETECT_ACK_1, 57 GNSSRX_DETECT_ACK_1,
55 GNSSRX_DETECT_ACK_2, 58 GNSSRX_DETECT_ACK_2,
56 GNSSRX_DETECT_ACK_3, 59 GNSSRX_DETECT_ACK_3,
57 GNSSRX_READ_NAV_DATA, 60 GNSSRX_READ_DATA,
58 GNSSRX_READ_PVT_DATA, 61 GNSSRX_READ_CK_A,
59 GNSSRX_READ_POSLLH_DATA 62 GNSSRX_READ_CK_B,
60 } receiveStateGnss_t; 63 } receiveStateGnss_t;
61 64
62 65
63 typedef enum 66 typedef enum
64 { 67 {
65 GNSSCMD_LOADCONF_0 = 0, 68 GNSSCMD_LOADCONF_0 = 0,
66 GNSSCMD_LOADCONF_1, 69 GNSSCMD_LOADCONF_1,
67 GNSSCMD_LOADCONF_2, 70 GNSSCMD_LOADCONF_2,
68 GNSSCMD_GET_NAV_DATA, 71 GNSSCMD_GET_NAV_DATA,
69 GNSSCMD_GET_PVT_DATA, 72 GNSSCMD_GET_PVT_DATA,
70 GNSSCMD_GET_POSLLH_DATA 73 GNSSCMD_GET_POSLLH_DATA,
74 GNSSCMD_GET_NAVSAT_DATA
71 } gnssSensorCmd_t; 75 } gnssSensorCmd_t;
76
77 typedef struct
78 {
79 uint8_t class;
80 uint8_t id;
81 } gnssRequest_s;
72 82
73 83
74 void uartGnss_Control(void); 84 void uartGnss_Control(void);
75 void uartGnss_ProcessData(uint8_t data); 85 void uartGnss_ProcessData(uint8_t data);
76 uint8_t uartGnss_isSensorConnected(); 86 uint8_t uartGnss_isSensorConnected();