Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
930:25948e805406 | 931:5a9bc2e6112d |
---|---|
58 typedef struct | 58 typedef struct |
59 { | 59 { |
60 UART_HandleTypeDef *huart; | 60 UART_HandleTypeDef *huart; |
61 | 61 |
62 uint8_t uniqueID[4]; | 62 uint8_t uniqueID[4]; |
63 uint8_t uartWorkingBuffer[101]; | 63 uint8_t uartWorkingBuffer[255]; |
64 | 64 |
65 unsigned short year; | 65 unsigned short year; |
66 uint8_t yearBytes[2]; | 66 uint8_t yearBytes[2]; |
67 uint8_t month; | 67 uint8_t month; |
68 uint8_t day; | 68 uint8_t day; |
86 | 86 |
87 signed long gSpeed; | 87 signed long gSpeed; |
88 uint8_t gSpeedBytes[4]; | 88 uint8_t gSpeedBytes[4]; |
89 signed long headMot; | 89 signed long headMot; |
90 | 90 |
91 uint8_t numSat; | |
92 uint8_t statSat[4]; | |
93 | |
91 }GNSS_StateHandle; | 94 }GNSS_StateHandle; |
92 | 95 |
93 GNSS_StateHandle GNSS_Handle; | 96 GNSS_StateHandle GNSS_Handle; |
94 | 97 |
95 | 98 |
107 static const uint8_t getNavigatorData[]={0xB5,0x62,0x01,0x21,0x00,0x00,0x22,0x67}; | 110 static const uint8_t getNavigatorData[]={0xB5,0x62,0x01,0x21,0x00,0x00,0x22,0x67}; |
108 | 111 |
109 static const uint8_t getPOSLLHData[]={0xB5,0x62,0x01,0x02,0x00,0x00,0x03,0x0A}; | 112 static const uint8_t getPOSLLHData[]={0xB5,0x62,0x01,0x02,0x00,0x00,0x03,0x0A}; |
110 | 113 |
111 static const uint8_t getPVTData[]={0xB5,0x62,0x01,0x07,0x00,0x00,0x08,0x19}; | 114 static const uint8_t getPVTData[]={0xB5,0x62,0x01,0x07,0x00,0x00,0x08,0x19}; |
115 | |
116 static const uint8_t getNavSat[]={0xB5,0x62,0x01,0x35,0x00,0x00,0x36,0xA3}; | |
112 | 117 |
113 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}; | 118 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}; |
114 | 119 |
115 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}; | 120 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}; |
116 | 121 |
138 void GNSS_GetUniqID(GNSS_StateHandle *GNSS); | 143 void GNSS_GetUniqID(GNSS_StateHandle *GNSS); |
139 void GNSS_ParseUniqID(GNSS_StateHandle *GNSS); | 144 void GNSS_ParseUniqID(GNSS_StateHandle *GNSS); |
140 | 145 |
141 void GNSS_GetNavigatorData(GNSS_StateHandle *GNSS); | 146 void GNSS_GetNavigatorData(GNSS_StateHandle *GNSS); |
142 void GNSS_ParseNavigatorData(GNSS_StateHandle *GNSS); | 147 void GNSS_ParseNavigatorData(GNSS_StateHandle *GNSS); |
148 void GNSS_ParseNavSatData(GNSS_StateHandle *GNSS); | |
143 | 149 |
144 void GNSS_GetPOSLLHData(GNSS_StateHandle *GNSS); | 150 void GNSS_GetPOSLLHData(GNSS_StateHandle *GNSS); |
145 void GNSS_ParsePOSLLHData(GNSS_StateHandle *GNSS); | 151 void GNSS_ParsePOSLLHData(GNSS_StateHandle *GNSS); |
146 | 152 |
147 void GNSS_GetPVTData(GNSS_StateHandle *GNSS); | 153 void GNSS_GetPVTData(GNSS_StateHandle *GNSS); |