Skip to content

Commit 29f531a

Browse files
committed
Allow for negative values of antennaHeight and ARP
1 parent 26f1d9d commit 29f531a

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Firmware/RTK_Surveyor/AP-Config/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ <h2>
10811081
<label for="antennaHeight"
10821082
class="box-margin40 col-sm-3 col-5 col-form-label">Antenna Height(mm):
10831083
<span class="tt" data-bs-placement="right"
1084-
title="Distance from the base of the antenna to the mark on the ground. This is usually the total length of the prism pole and any extensions.">
1084+
title="Distance from the base of the antenna to the mark on the ground. This is usually the total length of the prism pole and any extensions. Amount is subtracted from HAE before starting fixed base.">
10851085
<span class="icon-info-circle text-primary ms-2"></span>
10861086
</span>
10871087
</label>
@@ -1096,7 +1096,7 @@ <h2>
10961096
<label for="antennaReferencePoint"
10971097
class="box-margin40 col-5 col-form-label">Antenna Reference Point(mm):
10981098
<span class="tt" data-bs-placement="right"
1099-
title="ARP is the distance from the base of the antenna to the antenna phase center. This is usually printed on the side of the antenna and is calculated during antenna calibration.">
1099+
title="ARP is the distance from the base of the antenna to the antenna phase center. This is usually printed on the side of the antenna and is calculated during antenna calibration. Amount is subtracted from HAE before starting fixed base.">
11001100
<span class="icon-info-circle text-primary ms-2"></span>
11011101
</span>
11021102
</label>

Firmware/RTK_Surveyor/AP-Config/src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ function validateFields() {
419419
checkElementValue("fixedLong", -180, 180, "Must be -180 to 180", "collapseBaseConfig");
420420
checkElementValue("fixedAltitude", -11034, 8849, "Must be -11034 to 8849", "collapseBaseConfig");
421421

422-
checkElementValue("antennaHeight", 0, 15000, "Must be 0 to 15000", "collapseBaseConfig");
423-
checkElementValue("antennaReferencePoint", 0.0, 200.0, "Must be 0.0 to 200.0", "collapseBaseConfig");
422+
checkElementValue("antennaHeight", -15000, 15000, "Must be -15000 to 15000", "collapseBaseConfig");
423+
checkElementValue("antennaReferencePoint", -200.0, 200.0, "Must be -200.0 to 200.0", "collapseBaseConfig");
424424
}
425425
}
426426

Firmware/RTK_Surveyor/form.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,8 @@ function validateFields() {
442442
checkElementValue("fixedLong", -180, 180, "Must be -180 to 180", "collapseBaseConfig");
443443
checkElementValue("fixedAltitude", -11034, 8849, "Must be -11034 to 8849", "collapseBaseConfig");
444444

445-
checkElementValue("antennaHeight", 0, 15000, "Must be 0 to 15000", "collapseBaseConfig");
446-
checkElementValue("antennaReferencePoint", 0.0, 200.0, "Must be 0.0 to 200.0", "collapseBaseConfig");
445+
checkElementValue("antennaHeight", -15000, 15000, "Must be -15000 to 15000", "collapseBaseConfig");
446+
checkElementValue("antennaReferencePoint", -200.0, 200.0, "Must be -200.0 to 200.0", "collapseBaseConfig");
447447
}
448448
}
449449

@@ -2019,7 +2019,7 @@ static const char *index_html = R"=====(
20192019
<label for="antennaHeight"
20202020
class="box-margin40 col-sm-3 col-5 col-form-label">Antenna Height(mm):
20212021
<span class="tt" data-bs-placement="right"
2022-
title="Distance from the base of the antenna to the mark on the ground. This is usually the total length of the prism pole and any extensions.">
2022+
title="Distance from the base of the antenna to the mark on the ground. This is usually the total length of the prism pole and any extensions. Amount is subtracted from HAE before starting fixed base.">
20232023
<span class="icon-info-circle text-primary ms-2"></span>
20242024
</span>
20252025
</label>
@@ -2034,7 +2034,7 @@ static const char *index_html = R"=====(
20342034
<label for="antennaReferencePoint"
20352035
class="box-margin40 col-5 col-form-label">Antenna Reference Point(mm):
20362036
<span class="tt" data-bs-placement="right"
2037-
title="ARP is the distance from the base of the antenna to the antenna phase center. This is usually printed on the side of the antenna and is calculated during antenna calibration.">
2037+
title="ARP is the distance from the base of the antenna to the antenna phase center. This is usually printed on the side of the antenna and is calculated during antenna calibration. Amount is subtracted from HAE before starting fixed base.">
20382038
<span class="icon-info-circle text-primary ms-2"></span>
20392039
</span>
20402040
</label>

Firmware/RTK_Surveyor/menuBase.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,18 +156,18 @@ void menuBase()
156156
}
157157
else if (settings.fixedBase == true && settings.fixedBaseCoordinateType == COORD_TYPE_GEODETIC && incoming == 4)
158158
{
159-
Serial.print("Enter the antenna height (a.k.a. pole length) in millimeters (0 to 15000mm): ");
159+
Serial.print("Enter the antenna height (a.k.a. pole length) in millimeters (-15000 to 15000mm): ");
160160
int antennaHeight = getDouble(menuTimeout); //Timeout after x seconds
161-
if (antennaHeight < 0 || antennaHeight > 15000) //Arbitrary 15m max
161+
if (antennaHeight < -15000 || antennaHeight > 15000) //Arbitrary 15m max
162162
Serial.println("Error: Antenna Height out of range");
163163
else
164164
settings.antennaHeight = antennaHeight; //Recorded to NVM and file at main menu exit
165165
}
166166
else if (settings.fixedBase == true && settings.fixedBaseCoordinateType == COORD_TYPE_GEODETIC && incoming == 5)
167167
{
168-
Serial.print("Enter the antenna reference point (a.k.a. ARP) in millimeters (0.0 to 200.0mm): ");
168+
Serial.print("Enter the antenna reference point (a.k.a. ARP) in millimeters (-200.0 to 200.0mm): ");
169169
int antennaReferencePoint = getDouble(menuTimeout); //Timeout after x seconds
170-
if (antennaReferencePoint < 0 || antennaReferencePoint > 200) //Arbitrary 200mm max
170+
if (antennaReferencePoint < -200 || antennaReferencePoint > 200) //Arbitrary 200mm max
171171
Serial.println("Error: Antenna Reference Point out of range");
172172
else
173173
settings.antennaReferencePoint = antennaReferencePoint; //Recorded to NVM and file at main menu exit

0 commit comments

Comments
 (0)