Skip to content

Add support for MAX-7 series #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/SparkFun_u-blox_GNSS_Arduino_Library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,8 @@ void SFE_UBLOX_GNSS::processUBXpacket(ubxPacket *msg)
}
}
}
else if (msg->id == UBX_NAV_PVT && msg->len == UBX_NAV_PVT_LEN)
else if (msg->id == UBX_NAV_PVT
&& (msg->len == UBX_NAV_PVT_LEN || msg->len == UBX_7_NAV_PVT_LEN))
{
//Parse various byte fields into storage - but only if we have memory allocated for it
if (packetUBXNAVPVT != NULL)
Expand Down Expand Up @@ -2048,9 +2049,11 @@ void SFE_UBLOX_GNSS::processUBXpacket(ubxPacket *msg)
packetUBXNAVPVT->data.headAcc = extractLong(msg, 72);
packetUBXNAVPVT->data.pDOP = extractInt(msg, 76);
packetUBXNAVPVT->data.flags3.all = extractByte(msg, 78);
packetUBXNAVPVT->data.headVeh = extractSignedLong(msg, 84);
packetUBXNAVPVT->data.magDec = extractSignedInt(msg, 88);
packetUBXNAVPVT->data.magAcc = extractInt(msg, 90);
if(msg->len == UBX_NAV_PVT_LEN) {
packetUBXNAVPVT->data.headVeh = extractSignedLong(msg, 84);
packetUBXNAVPVT->data.magDec = extractSignedInt(msg, 88);
packetUBXNAVPVT->data.magAcc = extractInt(msg, 90);
}

//Mark all datums as fresh (not read before)
packetUBXNAVPVT->moduleQueried.moduleQueried1.all = 0xFFFFFFFF;
Expand Down
1 change: 1 addition & 0 deletions src/u-blox_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ typedef struct

// UBX-NAV-PVT (0x01 0x07): Navigation position velocity time solution
const uint16_t UBX_NAV_PVT_LEN = 92;
const uint16_t UBX_7_NAV_PVT_LEN = 84;

typedef struct
{
Expand Down