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
//Turn on RTCM so that we can harvest RTCM over I2C and send out over WiFi
40
+
//This is easier than parsing over UART because the library handles the frame detection
41
+
getPortSettings(COM_PORT_I2C); //Load the settingPayload with this port's settings
42
+
if (settingPayload[OUTPUT_SETTING] != (COM_TYPE_UBX | COM_TYPE_NMEA | COM_TYPE_RTCM3))
43
+
response &= i2cGNSS.setPortOutput(COM_PORT_I2C, COM_TYPE_UBX | COM_TYPE_NMEA | COM_TYPE_RTCM3); //Set the I2C port to output UBX (config), and RTCM3 (casting)
44
+
//response &= i2cGNSS.setPortOutput(COM_PORT_I2C, COM_TYPE_UBX | COM_TYPE_RTCM3); //Not a valid state. Goes to UBX+NMEA+RTCM3 -
45
+
37
46
//In base mode the Surveyor should output RTCM over UART2 and I2C ports:
38
47
//(Primary) UART2 in case the Surveyor is connected via radio to rover
39
48
//(Optional) I2C in case user wants base to connect to WiFi and NTRIP Serve to Caster
//Turn off all traffic except UBX to reduce I2C bus errors and ESP32 resets as much as possible
30
+
getPortSettings(COM_PORT_I2C); //Load the settingPayload with this port's settings
31
+
if (settingPayload[OUTPUT_SETTING] != (COM_TYPE_UBX))
32
+
response &= i2cGNSS.setPortOutput(COM_PORT_I2C, COM_TYPE_UBX); //Set the I2C port to output UBX (config)
33
+
//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)
Copy file name to clipboardExpand all lines: Firmware/RTK_Surveyor/System.ino
-7Lines changed: 0 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -196,13 +196,6 @@ bool configureUbloxModule()
196
196
if (settingPayload[INPUT_SETTING] != COM_TYPE_RTCM3)
197
197
response &= i2cGNSS.setPortInput(COM_PORT_UART2, COM_TYPE_RTCM3); //Set the UART2 to input RTCM
198
198
199
-
//Turn on RTCM over I2C port so that we can harvest RTCM over I2C and send out over WiFi
200
-
//This is easier than parsing over UART because the library handles the frame detection
201
-
getPortSettings(COM_PORT_I2C); //Load the settingPayload with this port's settings
202
-
if (settingPayload[OUTPUT_SETTING] != (COM_TYPE_UBX))
203
-
response &= i2cGNSS.setPortOutput(COM_PORT_I2C, COM_TYPE_UBX); //Set the I2C port to output UBX (config)
204
-
//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)
205
-
206
199
if (settingPayload[INPUT_SETTING] != COM_TYPE_UBX)
207
200
response &= i2cGNSS.setPortInput(COM_PORT_I2C, COM_TYPE_UBX); //Set the I2C port to input UBX only
0 commit comments