From d17a5f9f0363c3d9702e6bd81ddb3d2472d74a0a Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 17 Oct 2022 09:34:16 +0100 Subject: [PATCH] Ensure COM_TYPE_RTCM3 is enabled in RTCM examples --- .../NEO-M8P-2/Example1_EnableRTCM/Example1_EnableRTCM.ino | 2 +- .../Example2_StartRTCMBase/Example2_StartRTCMBase.ino | 2 +- .../NEO-M8P-2/Example3_BaseWithLCD/Example3_BaseWithLCD.ino | 3 +++ .../Example16_NTRIPClient_WithGGA.ino | 5 ++--- .../ZED-F9P/Example4_BaseWithLCD/Example4_BaseWithLCD.ino | 3 +-- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/examples/NEO-M8P-2/Example1_EnableRTCM/Example1_EnableRTCM.ino b/examples/NEO-M8P-2/Example1_EnableRTCM/Example1_EnableRTCM.ino index 83bb8cc..2e48386 100644 --- a/examples/NEO-M8P-2/Example1_EnableRTCM/Example1_EnableRTCM.ino +++ b/examples/NEO-M8P-2/Example1_EnableRTCM/Example1_EnableRTCM.ino @@ -46,7 +46,7 @@ void setup() Serial.println(F("Press any key to send commands to enable RTCM 3.x")); while(Serial.available() == 0) ; //Wait for user to press a key - myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX only (turn off NMEA noise) + myGNSS.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA | COM_TYPE_RTCM3); // Ensure RTCM3 is enabled myGNSS.saveConfiguration(); //Save the current settings to flash and BBR bool response = true; diff --git a/examples/NEO-M8P-2/Example2_StartRTCMBase/Example2_StartRTCMBase.ino b/examples/NEO-M8P-2/Example2_StartRTCMBase/Example2_StartRTCMBase.ino index f375ade..a3ea14d 100644 --- a/examples/NEO-M8P-2/Example2_StartRTCMBase/Example2_StartRTCMBase.ino +++ b/examples/NEO-M8P-2/Example2_StartRTCMBase/Example2_StartRTCMBase.ino @@ -46,7 +46,7 @@ void setup() while (1); } - myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX only (turn off NMEA noise) + myGNSS.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA | COM_TYPE_RTCM3); // Ensure RTCM3 is enabled myGNSS.saveConfiguration(); //Save the current settings to flash and BBR while (Serial.available()) Serial.read(); //Clear any latent chars in serial buffer diff --git a/examples/NEO-M8P-2/Example3_BaseWithLCD/Example3_BaseWithLCD.ino b/examples/NEO-M8P-2/Example3_BaseWithLCD/Example3_BaseWithLCD.ino index e945a32..15ab70f 100644 --- a/examples/NEO-M8P-2/Example3_BaseWithLCD/Example3_BaseWithLCD.ino +++ b/examples/NEO-M8P-2/Example3_BaseWithLCD/Example3_BaseWithLCD.ino @@ -67,6 +67,9 @@ void setup() lcd.setCursor(0, 1); lcd.print("GNSS Detected"); + myGNSS.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA | COM_TYPE_RTCM3); // Ensure RTCM3 is enabled + myGNSS.saveConfiguration(); //Save the current settings to flash and BBR + //Check if Survey is in Progress before initiating one // From v2.0, the data from getSurveyStatus (UBX-NAV-SVIN) is returned in UBX_NAV_SVIN_t packetUBXNAVSVIN // Please see u-blox_structs.h for the full definition of UBX_NAV_SVIN_t diff --git a/examples/ZED-F9P/Example16_NTRIPClient_WithGGA/Example16_NTRIPClient_WithGGA.ino b/examples/ZED-F9P/Example16_NTRIPClient_WithGGA/Example16_NTRIPClient_WithGGA.ino index b2506eb..f75ade9 100644 --- a/examples/ZED-F9P/Example16_NTRIPClient_WithGGA/Example16_NTRIPClient_WithGGA.ino +++ b/examples/ZED-F9P/Example16_NTRIPClient_WithGGA/Example16_NTRIPClient_WithGGA.ino @@ -78,9 +78,8 @@ void setup() while (myGNSS.begin() == false) //Connect to the Ublox module using Wire port { - Serial.println(F("u-blox GPS not detected at default I2C address. Please check wiring. Freezing.")); + Serial.println(F("u-blox GPS not detected at default I2C address. Please check wiring.")); delay(2000); - //while (1); } Serial.println(F("u-blox module connected")); @@ -400,4 +399,4 @@ void SFE_UBLOX_GNSS::processNMEA(char incoming) ggaSentenceStarted = false; } } -} \ No newline at end of file +} diff --git a/examples/ZED-F9P/Example4_BaseWithLCD/Example4_BaseWithLCD.ino b/examples/ZED-F9P/Example4_BaseWithLCD/Example4_BaseWithLCD.ino index 14a78a1..c8d62ef 100644 --- a/examples/ZED-F9P/Example4_BaseWithLCD/Example4_BaseWithLCD.ino +++ b/examples/ZED-F9P/Example4_BaseWithLCD/Example4_BaseWithLCD.ino @@ -69,8 +69,7 @@ void setup() lcd.setCursor(0, 1); lcd.print("GNSS Detected"); - //myGNSS.setI2COutput(COM_TYPE_RTCM3); //Set the I2C port to output RTCM3 sentences (turn off NMEA noise) - myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX sentences (turn off NMEA noise) + myGNSS.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA | COM_TYPE_RTCM3); // Ensure RTCM3 is enabled myGNSS.saveConfigSelective(VAL_CFG_SUBSEC_IOPORT); //Save the communications port settings to flash and BBR bool response = true;