Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
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
3 changes: 2 additions & 1 deletion src/SparkFun_Ublox_Arduino_Library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,14 +512,15 @@ void SFE_UBLOX_GPS::processUBXpacket(ubxPacket *msg)

fixType = extractByte(20 - startingSpot);
carrierSolution = extractByte(21 - startingSpot) >> 6; //Get 6th&7th bits of this byte
gnssFixOK = extractByte(21 - startingSpot) & 0x01;
SIV = extractByte(23 - startingSpot);
longitude = extractLong(24 - startingSpot);
latitude = extractLong(28 - startingSpot);
altitude = extractLong(32 - startingSpot);
altitudeMSL = extractLong(36 - startingSpot);
groundSpeed = extractLong(60 - startingSpot);
headingOfMotion = extractLong(64 - startingSpot);
pDOP = extractLong(76 - startingSpot);
pDOP = extractInt(76 - startingSpot);

//Mark all datums as fresh (not read before)
moduleQueried.gpsYear = true;
Expand Down
1 change: 1 addition & 0 deletions src/SparkFun_Ublox_Arduino_Library.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ class SFE_UBLOX_GPS
uint8_t SIV; //Number of satellites used in position solution
uint8_t fixType; //Tells us when we have a solution aka lock
uint8_t carrierSolution; //Tells us when we have an RTK float/fixed solution
bool gnssFixOK; // valid fix (i.e within DOP & accuracy masks)
int32_t groundSpeed; //mm/s
int32_t headingOfMotion; //degrees * 10^-5
uint16_t pDOP; //Positional dilution of precision
Expand Down