Skip to content

Commit d17a5f9

Browse files
committed
Ensure COM_TYPE_RTCM3 is enabled in RTCM examples
1 parent 4fc374a commit d17a5f9

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

examples/NEO-M8P-2/Example1_EnableRTCM/Example1_EnableRTCM.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void setup()
4646
Serial.println(F("Press any key to send commands to enable RTCM 3.x"));
4747
while(Serial.available() == 0) ; //Wait for user to press a key
4848

49-
myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX only (turn off NMEA noise)
49+
myGNSS.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA | COM_TYPE_RTCM3); // Ensure RTCM3 is enabled
5050
myGNSS.saveConfiguration(); //Save the current settings to flash and BBR
5151

5252
bool response = true;

examples/NEO-M8P-2/Example2_StartRTCMBase/Example2_StartRTCMBase.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void setup()
4646
while (1);
4747
}
4848

49-
myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX only (turn off NMEA noise)
49+
myGNSS.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA | COM_TYPE_RTCM3); // Ensure RTCM3 is enabled
5050
myGNSS.saveConfiguration(); //Save the current settings to flash and BBR
5151

5252
while (Serial.available()) Serial.read(); //Clear any latent chars in serial buffer

examples/NEO-M8P-2/Example3_BaseWithLCD/Example3_BaseWithLCD.ino

+3
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ void setup()
6767
lcd.setCursor(0, 1);
6868
lcd.print("GNSS Detected");
6969

70+
myGNSS.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA | COM_TYPE_RTCM3); // Ensure RTCM3 is enabled
71+
myGNSS.saveConfiguration(); //Save the current settings to flash and BBR
72+
7073
//Check if Survey is in Progress before initiating one
7174
// From v2.0, the data from getSurveyStatus (UBX-NAV-SVIN) is returned in UBX_NAV_SVIN_t packetUBXNAVSVIN
7275
// Please see u-blox_structs.h for the full definition of UBX_NAV_SVIN_t

examples/ZED-F9P/Example16_NTRIPClient_WithGGA/Example16_NTRIPClient_WithGGA.ino

+2-3
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ void setup()
7878

7979
while (myGNSS.begin() == false) //Connect to the Ublox module using Wire port
8080
{
81-
Serial.println(F("u-blox GPS not detected at default I2C address. Please check wiring. Freezing."));
81+
Serial.println(F("u-blox GPS not detected at default I2C address. Please check wiring."));
8282
delay(2000);
83-
//while (1);
8483
}
8584
Serial.println(F("u-blox module connected"));
8685

@@ -400,4 +399,4 @@ void SFE_UBLOX_GNSS::processNMEA(char incoming)
400399
ggaSentenceStarted = false;
401400
}
402401
}
403-
}
402+
}

examples/ZED-F9P/Example4_BaseWithLCD/Example4_BaseWithLCD.ino

+1-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ void setup()
6969
lcd.setCursor(0, 1);
7070
lcd.print("GNSS Detected");
7171

72-
//myGNSS.setI2COutput(COM_TYPE_RTCM3); //Set the I2C port to output RTCM3 sentences (turn off NMEA noise)
73-
myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX sentences (turn off NMEA noise)
72+
myGNSS.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA | COM_TYPE_RTCM3); // Ensure RTCM3 is enabled
7473
myGNSS.saveConfigSelective(VAL_CFG_SUBSEC_IOPORT); //Save the communications port settings to flash and BBR
7574

7675
bool response = true;

0 commit comments

Comments
 (0)