Skip to content

Commit 157b9d5

Browse files
committed
Add web config support for localised distribution and AssistNow
1 parent 55daec6 commit 157b9d5

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

Firmware/RTK_Everywhere/AP-Config/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,45 @@
11681168
<p id="pointPerfectDeviceProfileTokenError" class="inlineError"></p>
11691169
</div>
11701170
</div>
1171+
1172+
<div id="useAssistNowCheckbox">
1173+
<div class="form-check mt-3">
1174+
<label class="form-check-label" for="useAssistNow">AssistNow </label>
1175+
<input class="form-check-input" type="checkbox" value="" id="useAssistNow">
1176+
<span class="tt" data-bs-placement="right"
1177+
title="When enabled, AssistNow MGA data will be requested to improve GNSS acquisition performance. Default: Disabled">
1178+
<span class="icon-info-circle text-primary ms-2"></span>
1179+
</span>
1180+
</div>
1181+
</div>
1182+
1183+
<div class="form-check mt-3">
1184+
<label class="form-check-label" for="useLocalisedDistribution">Localised Distribution </label>
1185+
<input class="form-check-input" type="checkbox" value="" id="useLocalisedDistribution">
1186+
<span class="tt" data-bs-placement="right"
1187+
title="When enabled, localised corrections for your location will be used instead of the continental corrections. Default: Disabled">
1188+
<span class="icon-info-circle text-primary ms-2"></span>
1189+
</span>
1190+
</div>
1191+
1192+
<div id="localisedDistributionTileLevelDropdown">
1193+
<label for="localisedDistributionTileLevel">Localised Distribution Tile Level:</label>
1194+
<select name="localisedDistributionTileLevel" id="localisedDistributionTileLevel" class="form-dropdown mb-2">
1195+
<option value="0">1000 x 1000km Sparse</option>
1196+
<option value="1">500 x 500km Sparse</option>
1197+
<option value="2">250 x 250km Sparse</option>
1198+
<option value="3">1000 x 1000km High Density</option>
1199+
<option value="4">500 x 500km High Density</option>
1200+
<option value="5">250 x 250km High Density</option>
1201+
</select>
1202+
<span class="tt" data-bs-placement="right"
1203+
title="Select the localised distribution tile level. High Density is recommended. Sparse may be deprecated. Default: 250 x 250km High Density">
1204+
<span class="icon-info-circle text-primary ms-2"></span>
1205+
</span>
1206+
<br>
1207+
</div>
1208+
1209+
11711210
</div>
11721211
</div>
11731212
</div>

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ function parseIncoming(msg) {
108108
hide("galileoHasSetting");
109109
hide("tiltConfig");
110110
hide("beeperControl");
111+
show("useAssistNowCheckbox");
111112
}
112113
else if (platformPrefix == "Facet v2") {
113114
show("baseConfig");
@@ -120,6 +121,7 @@ function parseIncoming(msg) {
120121
hide("galileoHasSetting");
121122
hide("tiltConfig");
122123
hide("beeperControl");
124+
show("useAssistNowCheckbox");
123125
}
124126
else if (platformPrefix == "Facet mosaic") {
125127
show("baseConfig");
@@ -131,6 +133,7 @@ function parseIncoming(msg) {
131133
show("logToSDCard");
132134
hide("tiltConfig");
133135
hide("beeperControl");
136+
hide("useAssistNowCheckbox");
134137
}
135138
else if (platformPrefix == "Torch") {
136139
show("baseConfig");
@@ -146,6 +149,8 @@ function parseIncoming(msg) {
146149

147150
hide("constellationSbas"); //Not supported on UM980
148151

152+
show("useAssistNowCheckbox"); //Does the PPL use MGA? Not sure...
153+
149154
select = ge("dynamicModel");
150155
let newOption = new Option('Survey', '0');
151156
select.add(newOption, undefined);
@@ -435,6 +440,7 @@ function parseIncoming(msg) {
435440
ge("enableARPLogging").dispatchEvent(new CustomEvent('change'));
436441
ge("enableAutoFirmwareUpdate").dispatchEvent(new CustomEvent('change'));
437442
ge("enableAutoReset").dispatchEvent(new CustomEvent('change'));
443+
ge("useLocalisedDistribution").dispatchEvent(new CustomEvent('change'));
438444

439445
updateECEFList();
440446
updateGeodeticList();
@@ -1384,6 +1390,15 @@ document.addEventListener("DOMContentLoaded", (event) => {
13841390
}
13851391
});
13861392

1393+
ge("useLocalisedDistribution").addEventListener("change", function () {
1394+
if (ge("useLocalisedDistribution").checked) {
1395+
show("localisedDistributionTileLevelDropdown");
1396+
}
1397+
else {
1398+
hide("localisedDistributionTileLevelDropdown");
1399+
}
1400+
});
1401+
13871402
ge("enableExternalPulse").addEventListener("change", function () {
13881403
if (ge("enableExternalPulse").checked == true) {
13891404
show("externalPulseConfigDetails");

0 commit comments

Comments
 (0)