Mercurial > public > ostc4
comparison Small_CPU/Inc/GNSS.h @ 1004:efb7d18cc564 GasConsumption
DevelopmentOption: added the possibility to provide a fixed position info to the gnss module. Code is deactivated at the moment.
| author | Ideenmodellierer |
|---|---|
| date | Sat, 03 May 2025 17:45:32 +0200 |
| parents | c386ae6635e4 |
| children |
comparison
equal
deleted
inserted
replaced
| 1001:21142f4fa968 | 1004:efb7d18cc564 |
|---|---|
| 120 uint8_t flags; | 120 uint8_t flags; |
| 121 uint32_t nanoseconds; | 121 uint32_t nanoseconds; |
| 122 uint16_t accuracy_seconds; | 122 uint16_t accuracy_seconds; |
| 123 uint16_t reserved; | 123 uint16_t reserved; |
| 124 uint32_t accuracy_nano; | 124 uint32_t accuracy_nano; |
| 125 } __attribute__((packed)) UBX_MGA_INI_TIME_UTC_t; | |
| 125 | 126 |
| 126 } __attribute__((packed)) UBX_MGA_INI_TIME_UTC_t; | 127 typedef struct { |
| 128 uint8_t header1; | |
| 129 uint8_t header2; | |
| 130 uint8_t class_id; | |
| 131 uint8_t msg_id; | |
| 132 uint16_t length; | |
| 133 uint8_t type; | |
| 134 uint8_t version; | |
| 135 uint16_t reserved; | |
| 136 int32_t latitude; | |
| 137 int32_t longitude; | |
| 138 int32_t altitude; | |
| 139 uint32_t accuracy; | |
| 140 } __attribute__((packed)) UBX_MGA_INI_POS_LLH_t; | |
| 127 | 141 |
| 128 | 142 |
| 129 enum GNSSMode{Portable=0, Stationary=1, Pedestrian=2, Automotiv=3, Airbone1G=5, Airbone2G=6,Airbone4G=7,Wirst=8,Bike=9}; | 143 enum GNSSMode{Portable=0, Stationary=1, Pedestrian=2, Automotiv=3, Airbone1G=5, Airbone2G=6,Airbone4G=7,Wirst=8,Bike=9}; |
| 130 | 144 |
| 131 static const uint8_t configUBX[]={0xB5,0x62,0x06,0x00,0x14,0x00,0x01,0x00,0x00,0x00,0xD0,0x08,0x00,0x00,0x80,0x25,0x00,0x00,0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00}; | 145 static const uint8_t configUBX[]={0xB5,0x62,0x06,0x00,0x14,0x00,0x01,0x00,0x00,0x00,0xD0,0x08,0x00,0x00,0x80,0x25,0x00,0x00,0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00}; |
