Skip to content

Commit d3b15ae

Browse files
fix VDM structs for reinterpret casting the CAN msgs
1 parent 1617041 commit d3b15ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Telemetry-Main/CANProtocol.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ struct TPERIPH_TIRETEMP_t {
199199
};
200200

201201
struct VDM_GPS_LAT_LONG_t {
202-
int32_t LATITUDE; // bits 7-38
203-
int32_t LONGITUDE; // bits 39-50
202+
float LATITUDE; // bits 7-38
203+
float LONGITUDE; // bits 39-50
204204
};
205205

206206
struct VDM_GPS_DATA_t {
@@ -216,6 +216,7 @@ struct VDM_DATE_TIME_t {
216216
uint8_t UTC_DATE_YEAR; // bits 15-22
217217
uint8_t UTC_DATE_MONTH; // bits 23-30
218218
uint8_t UTC_DATE_DAY; // bits 31-38
219+
uint8_t padding;
219220
uint8_t UTC_TIME_HOURS; // bits 47-54
220221
uint8_t UTC_TIME_MINUTES; // bits 55-62
221222
uint8_t UTC_TIME_SECONDS; // bits 63-70

0 commit comments

Comments
 (0)