Skip to content

Commit 293a4ff

Browse files
committed
Change default ZED state to output NMEA, to support NTRIP Client GGA.
1 parent 11135e0 commit 293a4ff

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Firmware/RTK_Surveyor/Rover.ino

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ bool configureUbloxModuleRover()
4545

4646
#define OUTPUT_SETTING 14
4747

48-
//Turn off all traffic except UBX to reduce I2C bus errors and ESP32 resets as much as possible
4948
getPortSettings(COM_PORT_I2C); //Load the settingPayload with this port's settings
5049
if (settingPayload[OUTPUT_SETTING] != (COM_TYPE_UBX))
51-
response &= i2cGNSS.setPortOutput(COM_PORT_I2C, COM_TYPE_UBX); //Set the I2C port to output UBX (config)
52-
//response &= i2cGNSS.setPortOutput(COM_PORT_I2C, COM_TYPE_UBX | COM_TYPE_RTCM3); //Not a valid state. Goes to UBX+I2C+ RTCM3 - Set the I2C port to output UBX (config), and RTCM3 (casting)
50+
//response &= i2cGNSS.setPortOutput(COM_PORT_I2C, COM_TYPE_UBX); //Turn off all traffic except UBX to reduce I2C bus errors and ESP32 resets as much as possible
51+
response &= i2cGNSS.setPortOutput(COM_PORT_I2C, COM_TYPE_NMEA | COM_TYPE_UBX | COM_TYPE_RTCM3); //We need NMEA GGA output for NTRIP Client.
5352

5453
//RTCM is only available on ZED-F9P modules
5554
if (zedModuleType == PLATFORM_F9P)
@@ -354,14 +353,17 @@ void storeHPdata(UBX_NAV_HPPOSLLH_data_t *ubxDataStruct)
354353
void pushGPGGA(NMEA_GGA_data_t *nmeaData)
355354
{
356355
#ifdef COMPILE_WIFI
356+
log_d("GGA called");
357+
357358
//Provide the caster with our current position as needed
358359
if ((ntripClient.connected() == true) && (settings.ntripClient_TransmitGGA == true))
359360
{
360-
log_d("Pushing GGA to server: %s", nmeaData->nmea); //nmea is printable (NULL-terminated) and already has \r\n on the end
361+
Serial.printf("Pushing GGA to server: %s\n\r", nmeaData->nmea); //nmea is printable (NULL-terminated) and already has \r\n on the end
362+
//log_d("Pushing GGA to server: %s", nmeaData->nmea); //nmea is printable (NULL-terminated) and already has \r\n on the end
361363

362364
ntripClient.print((const char *)nmeaData->nmea); //Push our current GGA sentence to caster
363365
}
364-
#endif
366+
#endif
365367
}
366368

367369
//Check for the arrival of any correction data. Push it to the GNSS.

0 commit comments

Comments
 (0)