Skip to content

Commit 36422e7

Browse files
authored
Merge pull request #719 from LeeLeahy2/accuracy-10m
Base: Increase maximum accuracy from 5 to 10 meters
2 parents 5e13aab + df81036 commit 36422e7

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

Firmware/RTK_Surveyor/menuBase.ino

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*------------------------------------------------------------------------------
2+
menuBase.ino
3+
------------------------------------------------------------------------------*/
4+
5+
//----------------------------------------
6+
// Constants
7+
//----------------------------------------
8+
9+
static const float maxObservationPositionAccuracy = 10.0;
10+
static const float maxSurveyInStartingAccuracy = 10.0;
11+
12+
//----------------------------------------
13+
// Menus
14+
//----------------------------------------
15+
116
// Configure the survey in settings (time and 3D dev max)
217
// Set the ECEF coordinates for a known location
318
void menuBase()
@@ -249,13 +264,9 @@ void menuBase()
249264
}
250265
else if (settings.fixedBase == false && incoming == 3)
251266
{
252-
systemPrint("Enter the number of meters for survey-in required position accuracy (1.0 to 5.0m): ");
267+
systemPrintf("Enter the number of meters for survey-in required position accuracy (1.0 to %.1fm): ", maxObservationPositionAccuracy);
253268
float observationPositionAccuracy = getDouble();
254269

255-
float maxObservationPositionAccuracy = 5.0;
256-
if (ENABLE_DEVELOPER)
257-
maxObservationPositionAccuracy = 10.0;
258-
259270
if (observationPositionAccuracy < 1.0 ||
260271
observationPositionAccuracy > maxObservationPositionAccuracy) // Arbitrary 1m minimum
261272
systemPrintln("Error: Observation positional accuracy requirement out of range");
@@ -265,9 +276,10 @@ void menuBase()
265276
}
266277
else if (settings.fixedBase == false && incoming == 4)
267278
{
268-
systemPrint("Enter the positional accuracy required before Survey-In begins (0.1 to 5.0m): ");
279+
systemPrintf("Enter the positional accuracy required before Survey-In begins (0.1 to %.1fm): ", maxSurveyInStartingAccuracy);
269280
float surveyInStartingAccuracy = getDouble();
270-
if (surveyInStartingAccuracy < 0.1 || surveyInStartingAccuracy > 5.0) // Arbitrary 0.1m minimum
281+
if (surveyInStartingAccuracy < 0.1 ||
282+
surveyInStartingAccuracy > maxSurveyInStartingAccuracy) // Arbitrary 0.1m minimum
271283
systemPrintln("Error: Starting accuracy out of range");
272284
else
273285
settings.surveyInStartingAccuracy =
@@ -577,6 +589,10 @@ void menuSensorFusion()
577589
clearBuffer(); // Empty buffer of any newline chars
578590
}
579591

592+
//----------------------------------------
593+
// Support functions
594+
//----------------------------------------
595+
580596
// Enable or disable sensor fusion using keys
581597
void setSensorFusion(bool enable)
582598
{

0 commit comments

Comments
 (0)