File tree Expand file tree Collapse file tree 6 files changed +375
-111
lines changed Expand file tree Collapse file tree 6 files changed +375
-111
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,9 @@ bool configureUbloxModuleBase()
2121 const int baseNavigationFrequency = 1 ;
2222
2323 // In Base mode we force 1Hz
24- if (i2cGNSS.getNavigationFrequency (maxWait) != baseNavigationFrequency)
25- response &= i2cGNSS.setNavigationFrequency (baseNavigationFrequency, maxWait);
24+ response &= setRate (1 );
2625 if (response == false )
27- Serial.println (" setNavigationFrequency failed" );
26+ Serial.println (" Set rate failed" );
2827
2928 i2cGNSS.checkUblox (); // Regularly poll to get latest data and any RTCM
3029
Original file line number Diff line number Diff line change 2525const int FIRMWARE_VERSION_MAJOR = 2 ;
2626const int FIRMWARE_VERSION_MINOR = 6 ;
2727
28- #define COMPILE_WIFI // Comment out to remove WiFi functionality
29- #define COMPILE_AP // Requires WiFi. Comment out to remove Access Point functionality
30- #define COMPILE_ESPNOW // Requires WiFi. Comment out to remove ESP-Now functionality.
31- #define COMPILE_BT // Comment out to remove Bluetooth functionality
32- #define COMPILE_L_BAND // Comment out to remove L-Band functionality
28+ // #define COMPILE_WIFI //Comment out to remove WiFi functionality
29+ // #define COMPILE_AP //Requires WiFi. Comment out to remove Access Point functionality
30+ // #define COMPILE_ESPNOW //Requires WiFi. Comment out to remove ESP-Now functionality.
31+ // #define COMPILE_BT //Comment out to remove Bluetooth functionality
32+ // #define COMPILE_L_BAND //Comment out to remove L-Band functionality
3333#define ENABLE_DEVELOPER // Uncomment this line to enable special developer modes (don't check power button at startup)
3434
3535// Define the RTK board identifier:
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ bool configureUbloxModuleRover()
1919 i2cGNSS.checkUblox (); // Regularly poll to get latest data and any RTCM
2020
2121 // The first thing we do is go to 1Hz to lighten any I2C traffic from a previous configuration
22- if (i2cGNSS.getNavigationFrequency (maxWait) != 1 )
23- response &= i2cGNSS.setNavigationFrequency (1 , maxWait);
22+ response &= setRate (1 , false ); // Don't record to settings, this is just a temporary rate change
2423 if (response == false )
2524 Serial.println (" Set rate failed" );
2625
@@ -81,11 +80,8 @@ bool configureUbloxModuleRover()
8180 // The last thing we do is set output rate.
8281 response = true ; // Reset
8382
84- if (i2cGNSS.getMeasurementRate () != settings.measurementRate || i2cGNSS.getNavigationRate () != settings.navigationRate )
85- {
86- float secondsBetweenSolutions = (settings.measurementRate * settings.navigationRate ) / 1000.0 ;
87- setMeasurementRates (secondsBetweenSolutions); // This will set settings.measurementRate, settings.navigationRate, and GSV message
88- }
83+ float secondsBetweenSolutions = (settings.measurementRate * settings.navigationRate ) / 1000.0 ;
84+ setRate (secondsBetweenSolutions); // This will set settings.measurementRate, settings.navigationRate, and GSV message
8985
9086 response &= i2cGNSS.saveConfiguration (); // Save the current settings to flash and BBR
9187 if (response == false )
You can’t perform that action at this time.
0 commit comments