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
Copy file name to clipboardExpand all lines: src/SparkFun_u-blox_GNSS_Arduino_Library.h
+11-13Lines changed: 11 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -646,6 +646,15 @@ class SFE_UBLOX_GNSS
646
646
SFE_UBLOX_GNSS(void);
647
647
~SFE_UBLOX_GNSS(void);
648
648
649
+
// Depending on the sentence type the processor will load characters into different arrays
650
+
enum SentenceTypes
651
+
{
652
+
NONE = 0,
653
+
NMEA,
654
+
UBX,
655
+
RTCM
656
+
} currentSentence = NONE;
657
+
649
658
// A default of 250ms for maxWait seems fine for I2C but is not enough for SerialUSB.
650
659
// If you know you are only going to be using I2C / Qwiic communication, you can
651
660
// safely reduce defaultMaxWait to 250.
@@ -738,7 +747,7 @@ class SFE_UBLOX_GNSS
738
747
739
748
voidprocess(uint8_t incoming, ubxPacket *incomingUBX, uint8_t requestedClass, uint8_t requestedID); // Processes NMEA and UBX binary sentences one byte at a time
740
749
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
741
-
voidprocessRTCMframe(uint8_t incoming); // Monitor the incoming bytes for start and length bytes
750
+
SentenceTypesprocessRTCMframe(uint8_t incoming, uint16_t * rtcmFrameCounter) __attribute__((weak));// Monitor the incoming bytes for start and length bytes
742
751
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.
743
752
voidprocessUBX(uint8_t incoming, ubxPacket *incomingUBX, uint8_t requestedClass, uint8_t requestedID); // Given a character, file it away into the uxb packet structure
744
753
voidprocessUBXpacket(ubxPacket *msg); // Once a packet has been received and validated, identify this packet's class/id and update internal flags
@@ -1187,7 +1196,7 @@ class SFE_UBLOX_GNSS
1187
1196
// You can disable them by calling (e.g.) setVal8(UBLOX_CFG_MSGOUT_UBX_RXM_QZSSL6_I2C, 0)
1188
1197
// The NEO-D9C does not support UBX-CFG-MSG
1189
1198
boolsetRXMQZSSL6messageCallbackPtr(void (*callbackPointerPtr)(UBX_RXM_QZSSL6_message_data_t *)); // Use this if you want all of the QZSSL6 message (including sync chars, checksum, etc.) to push to a GNSS
0 commit comments