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
+9-5
Original file line number
Diff line number
Diff line change
@@ -462,12 +462,15 @@ class SFE_UBLOX_GPS
462
462
//maxWait is only used for Serial
463
463
boolean isConnected(uint16_t maxWait = 1100);
464
464
465
-
boolean checkUblox(ubxPacket *incomingUBX, uint8_t requestedClass = 255, uint8_t requestedID = 255); //Checks module with user selected commType
466
-
boolean checkUbloxI2C(ubxPacket *incomingUBX, uint8_t requestedClass = 255, uint8_t requestedID = 255); //Method for I2C polling of data, passing any new bytes to process()
467
-
boolean checkUbloxSerial(ubxPacket *incomingUBX, uint8_t requestedClass = 255, uint8_t requestedID = 255); //Method for serial polling of data, passing any new bytes to process()
465
+
//Changed in V1.8.1: provides backward compatibility for the examples that call checkUblox directly
466
+
//Will default to using packetCfg to look for explicit autoPVT packets so they get processed correctly by processUBX
467
+
boolean checkUblox(uint8_t requestedClass = UBX_CLASS_NAV, uint8_t requestedID = UBX_NAV_PVT); //Checks module with user selected commType
468
468
469
-
voidprocess(uint8_t incoming, ubxPacket *incomingUBX, uint8_t requestedClass = 255, uint8_t requestedID = 255); //Processes NMEA and UBX binary sentences one byte at a time
470
-
voidprocessUBX(uint8_t incoming, ubxPacket *incomingUBX, uint8_t requestedClass = 255, uint8_t requestedID = 255); //Given a character, file it away into the uxb packet structure
469
+
boolean checkUbloxI2C(ubxPacket *incomingUBX, uint8_t requestedClass, uint8_t requestedID); //Method for I2C polling of data, passing any new bytes to process()
470
+
boolean checkUbloxSerial(ubxPacket *incomingUBX, uint8_t requestedClass, uint8_t requestedID); //Method for serial polling of data, passing any new bytes to process()
471
+
472
+
voidprocess(uint8_t incoming, ubxPacket *incomingUBX, uint8_t requestedClass, uint8_t requestedID); //Processes NMEA and UBX binary sentences one byte at a time
473
+
voidprocessUBX(uint8_t incoming, ubxPacket *incomingUBX, uint8_t requestedClass, uint8_t requestedID); //Given a character, file it away into the uxb packet structure
471
474
voidprocessRTCMframe(uint8_t incoming); //Monitor the incoming bytes for start and length bytes
472
475
voidprocessRTCM(uint8_t incoming) __attribute__((weak)); //Given rtcm byte, do something with it. User can overwrite if desired to pipe bytes to radio, internet, etc.
473
476
@@ -723,6 +726,7 @@ class SFE_UBLOX_GPS
723
726
} commType = COMM_TYPE_I2C; //Controls which port we look to for incoming bytes
724
727
725
728
//Functions
729
+
boolean checkUbloxInternal(ubxPacket *incomingUBX, uint8_t requestedClass = 255, uint8_t requestedID = 255); //Checks module with user selected commType
726
730
uint32_textractLong(uint8_t spotToStart); //Combine four bytes from payload into long
727
731
uint16_textractInt(uint8_t spotToStart); //Combine two bytes from payload into int
728
732
uint8_textractByte(uint8_t spotToStart); //Get byte from payload
0 commit comments