Skip to content

Commit 3d5fb25

Browse files
committed
Increase max rate to 20Hz
1 parent e4f3e45 commit 3d5fb25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Firmware/RTK_Surveyor/menuGNSS.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void menuGNSS()
3232
{
3333
Serial.print(F("Enter GNSS measurement rate in Hz: "));
3434
double rate = getDouble(menuTimeout); //Timeout after x seconds
35-
if (rate < 0.0 || rate > 10.0) //Arbitrary 10Hz limit. We need to limit based on enabled constellations.
35+
if (rate < 0.0 || rate > 20.0) //20Hz limit with all constellations enabled.
3636
{
3737
Serial.println(F("Error: measurement rate out of range"));
3838
}
@@ -122,7 +122,7 @@ void setMeasurementRates(float secondsBetweenSolutions)
122122
navRate = secondsBetweenSolutions * 1000.0 / measRate; //Set navRate to nearest int value
123123
measRate = secondsBetweenSolutions * 1000.0 / navRate; //Adjust measurement rate to match actual navRate
124124

125-
//Serial.printf("measurementRate / navRate: %d / %d\n", measRate, navRate);
125+
//Serial.printf("measurementRate / navRate: %d / %d\n\r", measRate, navRate);
126126

127127
//If we successfully set rates, only then record to settings
128128
if (i2cGNSS.setMeasurementRate(measRate) == true && i2cGNSS.setNavigationRate(navRate) == true)
@@ -147,7 +147,7 @@ float getMeasurementFrequency()
147147
//The ZED-F9P will report an incorrect nav rate if we have rececently changed it.
148148
//Reading a second time insures a correct read.
149149

150-
//Serial.printf("currentMeasurementRate / currentNavigationRate: %d / %d\n", currentMeasurementRate, currentNavigationRate);
150+
//Serial.printf("currentMeasurementRate / currentNavigationRate: %d / %d\n\r", currentMeasurementRate, currentNavigationRate);
151151

152152
float measurementFrequency = (1000.0 / currentMeasurementRate) / currentNavigationRate;
153153
return (measurementFrequency);

0 commit comments

Comments
 (0)