Skip to content

Commit 6989547

Browse files
committed
Add web config tiltCompensation and poleLength
1 parent 42e043b commit 6989547

File tree

3 files changed

+42
-3
lines changed

3 files changed

+42
-3
lines changed

Firmware/RTK_Everywhere/AP-Config/index.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,31 @@
320320
</div>
321321
</div>
322322

323+
<div class="form-check mt-3" id="tiltCompensationSettings">
324+
<label class="form-check-label" for="enableTiltCompensation">Enable Tilt Compensation</label>
325+
<input class="form-check-input" type="checkbox" value="" id="enableTiltCompensation" onClick="tiltCompensationBoxes()">
326+
<span class="tt" data-bs-placement="right"
327+
title="Use tilt compensation. Default: Enabled.">
328+
<span class="icon-info-circle text-primary ms-2"></span>
329+
</span>
330+
</div>
331+
332+
<div id="poleLengthConfig">
333+
<div class="form-group row">
334+
<label for="tiltPoleLength"
335+
class="col-sm-4 col-6 col-form-label">Pole Length (m):
336+
<span class="tt" data-bs-placement="right"
337+
title="Pole length for tilt compensation. Default: 1.8m">
338+
<span class="icon-info-circle text-primary ms-2"></span>
339+
</span>
340+
</label>
341+
<div class="col-sm-4 col-6">
342+
<input type="number" class="form-control" id="tiltPoleLength">
343+
<p id="tiltPoleLengthError" class="inlineError"></p>
344+
</div>
345+
</div>
346+
</div>
347+
323348
<div class="form-check mt-3">
324349
<label class="form-check-label" for="enableNtripClient">Enable NTRIP Client</label>
325350
<input class="form-check-input" type="checkbox" value="" id="enableNtripClient">

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,24 +103,28 @@ function parseIncoming(msg) {
103103
show("ppConfig");
104104
show("ethernetConfig");
105105
show("ntpConfig");
106+
hide("tiltCompensationSettings");
106107
}
107108
else if (platformPrefix == "Facet v2") {
108109
show("baseConfig");
109110
show("ppConfig");
110111
hide("ethernetConfig");
111112
hide("ntpConfig");
113+
hide("tiltCompensationSettings");
112114
}
113115
else if (platformPrefix == "Facet mosaic") {
114116
show("baseConfig");
115117
show("ppConfig");
116118
hide("ethernetConfig");
117119
hide("ntpConfig");
120+
hide("tiltCompensationSettings");
118121
}
119122
else if (platformPrefix == "Torch") {
120123
show("baseConfig");
121124
show("ppConfig");
122125
hide("ethernetConfig");
123126
hide("ntpConfig");
127+
show("tiltCompensationSettings");
124128

125129
select = ge("dynamicModel");
126130
let newOption = new Option('Survey', '0');
@@ -443,7 +447,8 @@ function parseIncoming(msg) {
443447
udpBoxes();
444448
dhcpEthernet();
445449
updateLatLong();
446-
updateCorrectionsPriorities();
450+
updateCorrectionsPriorities();
451+
tiltCompensationBoxes();
447452
}
448453
}
449454

@@ -1860,6 +1865,15 @@ function udpBoxes() {
18601865
}
18611866
}
18621867

1868+
function tiltCompensationBoxes() {
1869+
if (ge("enableTiltCompensation").checked == true) {
1870+
show("poleLengthConfig");
1871+
}
1872+
else {
1873+
hide("poleLengthConfig");
1874+
}
1875+
}
1876+
18631877
function dhcpEthernet() {
18641878
if (ge("ethernetDHCP").checked == true) {
18651879
hide("fixedIPSettingsConfigEthernet");

Firmware/RTK_Everywhere/RTK_Everywhere.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,8 @@ unsigned long beepQuietLengthMs; // Number of ms to make reset between multiple
747747
unsigned long beepNextEventMs; // Time at which to move the beeper to the next state
748748
unsigned long beepCount; // Number of beeps to do
749749

750-
unsigned long lastMqttToPpl;
751-
unsigned long lastGnssToPpl;
750+
unsigned long lastMqttToPpl = 0;
751+
unsigned long lastGnssToPpl = 0;
752752
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
753753

754754
// Display boot times

0 commit comments

Comments
 (0)