Skip to content

Commit 976d42f

Browse files
committed
Add new NAV-PVT flags3 bits
1 parent d1a8c5f commit 976d42f

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

src/u-blox_GNSS.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3474,7 +3474,7 @@ void DevUBLOXGNSS::processUBXpacket(ubxPacket *msg)
34743474
packetUBXNAVPVT->data.sAcc = extractLong(msg, 68);
34753475
packetUBXNAVPVT->data.headAcc = extractLong(msg, 72);
34763476
packetUBXNAVPVT->data.pDOP = extractInt(msg, 76);
3477-
packetUBXNAVPVT->data.flags3.all = extractByte(msg, 78);
3477+
packetUBXNAVPVT->data.flags3.all = extractInt(msg, 78);
34783478
packetUBXNAVPVT->data.headVeh = extractSignedLong(msg, 84);
34793479
packetUBXNAVPVT->data.magDec = extractSignedInt(msg, 88);
34803480
packetUBXNAVPVT->data.magAcc = extractInt(msg, 90);

src/u-blox_structs.h

+14-4
Original file line numberDiff line numberDiff line change
@@ -428,11 +428,11 @@ typedef struct
428428
uint16_t pDOP; // Position DOP * 0.01
429429
union
430430
{
431-
uint8_t all;
431+
uint16_t all;
432432
struct
433433
{
434-
uint8_t invalidLlh : 1; // 1 = Invalid lon, lat, height and hMSL
435-
uint8_t lastCorrectionAge : 4; // Age of the most recently received differential correction:
434+
uint16_t invalidLlh : 1; // 1 = Invalid lon, lat, height and hMSL
435+
uint16_t lastCorrectionAge : 4; // Age of the most recently received differential correction:
436436
// 0: Not available
437437
// 1: Age between 0 and 1 second
438438
// 2: Age between 1 (inclusive) and 2 seconds
@@ -446,9 +446,16 @@ typedef struct
446446
// 10: Age between 60 (inclusive) and 90 seconds
447447
// 11: Age between 90 (inclusive) and 120 seconds
448448
// >=12: Age greater or equal than 120 seconds
449+
uint16_t reserved : 8;
450+
uint16_t authTime : 1; // Flag that indicates if the output time has been validated
451+
// against an external trusted time source
452+
uint16_t nmaFixStatus : 1; // Flag assigned to a fix that has been computed
453+
// mixing satellites with data authenticated through
454+
// Navigation Message Authentication (NMA) methods
455+
// and satellites using unauthenticated data.
449456
} bits;
450457
} flags3;
451-
uint8_t reserved1[5];
458+
uint8_t reserved0[4];
452459
int32_t headVeh; // Heading of vehicle (2-D): deg * 1e-5
453460
int16_t magDec; // Magnetic declination: deg * 1e-2
454461
uint16_t magAcc; // Magnetic declination accuracy: deg * 1e-2
@@ -513,6 +520,9 @@ typedef struct
513520
uint32_t pDOP : 1;
514521

515522
uint32_t invalidLlh : 1;
523+
uint32_t lastCorrectionAge : 1;
524+
uint32_t authTime : 1;
525+
uint32_t nmaFixStatus : 1;
516526

517527
uint32_t headVeh : 1;
518528
uint32_t magDec : 1;

0 commit comments

Comments
 (0)