You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: src/SparkFun_Ublox_Arduino_Library.h
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,7 @@ const uint8_t UBX_NAV_HPPOSLLH = 0x14; //Used for obtaining lat/long/alt in high
110
110
constuint8_t UBX_NAV_SVIN = 0x3B; //Used for checking Survey In status
111
111
112
112
constuint8_t UBX_MON_VER = 0x04; //Used for obtaining Protocol Version
113
+
constuint8_t UBX_MON_TXBUF = 0x08; //Used for query tx buffer size/state
113
114
114
115
//The following are used to enable RTCM messages
115
116
constuint8_t UBX_CFG_MSG = 0x01;
@@ -200,7 +201,7 @@ class SFE_UBLOX_GPS
200
201
voidprocessNMEA(char incoming) __attribute__((weak)); //Given a NMEA character, do something with it. User can overwrite if desired to use something like tinyGPS or MicroNMEA libraries
201
202
202
203
voidcalcChecksum(ubxPacket *msg); //Sets the checksumA and checksumB of a given messages
203
-
boolean sendCommand(ubxPacket outgoingUBX, uint16_t maxWait = 250); //Given a packet and payload, send everything including CRC bytes
204
+
boolean sendCommand(ubxPacket outgoingUBX, uint16_t maxWait = 250); //Given a packet and payload, send everything including CRC bytes, return true if we got a response
boolean waitForResponse(uint8_t requestedClass, uint8_t requestedID, uint16_t maxTime = 250); //Poll the module until and ack is received
222
223
223
-
boolean getPVT(uint16_t maxWait = 1000); //Query module for latest group of datums and load global vars: lat, long, alt, speed, SIV, accuracies, etc.
224
+
boolean setAutoPVT(boolean enabled, uint16_t maxWait = 250); //Enable/disable automatic PVT reports at the navigation frequency
225
+
boolean getPVT(uint16_t maxWait = 1000); //Query module for latest group of datums and load global vars: lat, long, alt, speed, SIV, accuracies, etc. If autoPVT is disabled, performs an explicit poll and waits, if enabled does not block. Retruns true if new PVT is available.
226
+
224
227
int32_tgetLatitude(uint16_t maxWait = 250); //Returns the current latitude in degrees * 10^-7. Auto selects between HighPrecision and Regular depending on ability of module.
225
228
int32_tgetLongitude(uint16_t maxWait = 250); //Returns the current longitude in degrees * 10-7. Auto selects between HighPrecision and Regular depending on ability of module.
226
229
int32_tgetAltitude(uint16_t maxWait = 250); //Returns the current altitude in mm above ellipsoid
@@ -336,6 +339,7 @@ class SFE_UBLOX_GPS
336
339
337
340
constuint8_t I2C_POLLING_WAIT_MS = 25; //Limit checking of new characters to every X ms
338
341
unsignedlong lastCheck = 0;
342
+
boolean autoPVT = false; //Whether autoPVT is enabled or not
339
343
boolean commandAck = false; //This goes true after we send a command and it's ack'd
340
344
uint8_t ubxFrameCounter;
341
345
@@ -347,6 +351,7 @@ class SFE_UBLOX_GPS
347
351
//This reduces the number of times we have to call getPVT as this can take up to ~1s per read
0 commit comments