Skip to content

Commit e069399

Browse files
authored
Merge pull request #727 from sparkfun/AddTorchX2
Add Torch X2
2 parents 1cae242 + a301c33 commit e069399

22 files changed

+2929
-2705
lines changed

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

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,47 @@ function parseIncoming(msg) {
308308
newOption = new Option('921600', '921600');
309309
select.add(newOption, undefined);
310310
}
311+
else if (platformPrefix == "Torch X2") {
312+
show("baseConfig");
313+
show("ppConfig");
314+
hide("ethernetConfig");
315+
hide("ntpConfig");
316+
show("portsConfig");
317+
318+
// No RADIO port on Torch X2
319+
// No DATA port on Torch X2
320+
hide("externalPortOptions");
321+
322+
hide("logToSDCard"); //No SD card on Torch
323+
324+
hide("constellationSbas"); //Not supported on LG290P
325+
show("constellationNavic");
326+
hide("galileoHasSetting"); //Not supported on LG290P
327+
hide("tiltConfig"); //Not supported on Torch X2
328+
329+
show("measurementRateInput");
330+
331+
hide("mosaicNMEAStreamDropdowns");
332+
show("surveyInSettings");
333+
334+
hide("useEnableExtCorrRadio"); //No External Radio connector on Torch X2
335+
hide("extCorrRadioSPARTNSourceDropdown");
336+
hide("enableNmeaOnRadio");
337+
338+
hide("dynamicModelDropdown"); //Not supported on LG290P
339+
hide("minElevConfig"); //Not supported on LG290P
340+
hide("minCNOConfig"); //Not supported on LG290P
341+
342+
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.');
343+
344+
select = ge("pointPerfectService");
345+
newOption = new Option('Disabled', '0');
346+
select.add(newOption, undefined);
347+
newOption = new Option('Flex NTRIP/RTCM', '1');
348+
select.add(newOption, undefined);
349+
newOption = new Option('Flex MQTT (Deprecated)', '5');
350+
select.add(newOption, undefined);
351+
}
311352
}
312353
else if (id.includes("gnssFirmwareVersionInt")) {
313354
//Modify settings due to firmware limitations

0 commit comments

Comments
 (0)