You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Firmware/RTK_Everywhere/AP-Config/src/main.js
+21-11Lines changed: 21 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ function parseIncoming(msg) {
112
112
hide("externalPortOptions");
113
113
show("logToSDCard");
114
114
hide("galileoHasSetting");
115
-
hide("useMSM7Setting");
115
+
hide("lg290pGnssSettings");
116
116
hide("tiltConfig");
117
117
hide("beeperControl");
118
118
show("measurementRateInput");
@@ -146,7 +146,7 @@ function parseIncoming(msg) {
146
146
show("externalPortOptions");
147
147
show("logToSDCard");
148
148
hide("galileoHasSetting");
149
-
hide("useMSM7Setting");
149
+
hide("lg290pGnssSettings");
150
150
hide("tiltConfig");
151
151
hide("beeperControl");
152
152
show("measurementRateInput");
@@ -167,7 +167,7 @@ function parseIncoming(msg) {
167
167
show("externalPortOptions");
168
168
show("logToSDCard");
169
169
hide("galileoHasSetting");
170
-
hide("useMSM7Setting");
170
+
hide("lg290pGnssSettings");
171
171
hide("tiltConfig");
172
172
hide("beeperControl");
173
173
hide("measurementRateInput");
@@ -257,8 +257,8 @@ function parseIncoming(msg) {
257
257
show("externalPortOptions");
258
258
show("logToSDCard");
259
259
260
-
hide("galileoHasSetting");
261
-
show("useMSM7Setting");
260
+
show("galileoHasSetting");
261
+
show("lg290pGnssSettings");
262
262
hide("tiltConfig");
263
263
hide("beeperControl");
264
264
@@ -273,8 +273,8 @@ function parseIncoming(msg) {
273
273
show("constellationNavic");
274
274
275
275
hide("dynamicModelDropdown");//Not supported on LG290P
276
-
hide("minElevConfig");//Not supported on LG290P
277
-
hide("minCNOConfig");//Not supported on LG290P
276
+
show("minElevConfig");
277
+
show("minCNOConfig");
278
278
279
279
ge("rtcmRateInfoText").setAttribute('data-bs-original-title','RTCM is transmitted by the base at a default of 1Hz for messages 1005, 1074, 1084, 1094, 1114, 1124, 1134. This can be lowered for radios with low bandwidth or tailored to transmit any/all RTCM messages. Limits: 0 to 20. Note: The measurement rate is overridden to 1Hz when in Base mode.');
280
280
@@ -327,8 +327,8 @@ function parseIncoming(msg) {
327
327
328
328
hide("constellationSbas");//Not supported on LG290P
329
329
show("constellationNavic");
330
-
hide("galileoHasSetting");//Not supported on LG290P
331
-
show("useMSM7Setting");
330
+
show("galileoHasSetting");
331
+
show("lg290pGnssSettings");
332
332
hide("tiltConfig");//Not supported on Torch X2
333
333
334
334
show("measurementRateInput");
@@ -341,8 +341,8 @@ function parseIncoming(msg) {
341
341
hide("enableNmeaOnRadio");
342
342
343
343
hide("dynamicModelDropdown");//Not supported on LG290P
344
-
hide("minElevConfig");//Not supported on LG290P
345
-
hide("minCNOConfig");//Not supported on LG290P
344
+
show("minElevConfig");
345
+
show("minCNOConfig");
346
346
347
347
ge("rtcmRateInfoText").setAttribute('data-bs-original-title','RTCM is transmitted by the base at a default of 1Hz for messages 1005, 1074, 1084, 1094, 1124, and 0.1Hz for 1033. This can be lowered for radios with low bandwidth or tailored to transmit any/all RTCM messages. Limits: 0 to 20. Note: The measurement rate is overridden to 1Hz when in Base mode.');
348
348
@@ -714,6 +714,13 @@ function show(id) {
714
714
ge(id).style.display="block";
715
715
}
716
716
717
+
functionisElementShown(id){
718
+
if(ge(id).style.display=="block"){
719
+
return(true);
720
+
}
721
+
return(false);
722
+
}
723
+
717
724
//Create CSV of all setting data
718
725
functionsendData(){
719
726
varsettingCSV="";
@@ -841,6 +848,9 @@ function validateFields() {
841
848
842
849
checkElementValue("minElev",0,90,"Must be between 0 and 90","collapseGNSSConfig");
843
850
checkElementValue("minCNO",0,90,"Must be between 0 and 90","collapseGNSSConfig");
851
+
if(isElementShown("lg290pGnssSettings")==true){
852
+
checkElementValue("rtcmMinElev",-90,90,"Must be between -90 and 90","collapseGNSSConfig");
853
+
}
844
854
845
855
if(ge("enableNtripClient").checked==true){
846
856
checkElementString("ntripClientCasterHost",1,45,"Must be 1 to 45 characters","collapseGNSSConfig");
0 commit comments