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()
21
21
const int baseNavigationFrequency = 1 ;
22
22
23
23
// In Base mode we force 1Hz
24
- if (i2cGNSS.getNavigationFrequency (maxWait) != baseNavigationFrequency)
25
- response &= i2cGNSS.setNavigationFrequency (baseNavigationFrequency, maxWait);
24
+ response &= setRate (1 );
26
25
if (response == false )
27
- Serial.println (" setNavigationFrequency failed" );
26
+ Serial.println (" Set rate failed" );
28
27
29
28
i2cGNSS.checkUblox (); // Regularly poll to get latest data and any RTCM
30
29
Original file line number Diff line number Diff line change 25
25
const int FIRMWARE_VERSION_MAJOR = 2 ;
26
26
const int FIRMWARE_VERSION_MINOR = 6 ;
27
27
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
33
33
#define ENABLE_DEVELOPER // Uncomment this line to enable special developer modes (don't check power button at startup)
34
34
35
35
// Define the RTK board identifier:
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ bool configureUbloxModuleRover()
19
19
i2cGNSS.checkUblox (); // Regularly poll to get latest data and any RTCM
20
20
21
21
// 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
24
23
if (response == false )
25
24
Serial.println (" Set rate failed" );
26
25
@@ -81,11 +80,8 @@ bool configureUbloxModuleRover()
81
80
// The last thing we do is set output rate.
82
81
response = true ; // Reset
83
82
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
89
85
90
86
response &= i2cGNSS.saveConfiguration (); // Save the current settings to flash and BBR
91
87
if (response == false )
You can’t perform that action at this time.
0 commit comments