Skip to content

Commit af5491e

Browse files
committed
Hide correct sections depending on platform on AP Config.
1 parent c3ee202 commit af5491e

File tree

6 files changed

+43
-7
lines changed

6 files changed

+43
-7
lines changed
1.75 MB
Binary file not shown.
1.81 MB
Binary file not shown.

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

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,30 @@ function parseIncoming(msg) {
3434
platformPrefix = val;
3535
document.title = "RTK " + platformPrefix + " Setup";
3636

37-
if (platformPrefix == "Surveyor") hide("dataPortChannelDropdown");
38-
if (platformPrefix == "Express Plus") {
37+
if (platformPrefix == "Surveyor") {
38+
hide("dataPortChannelDropdown");
39+
40+
hide("sensorConfig"); //Hide Sensor Config section
41+
42+
hide("msgUBX_ESF_MEAS"); //Hide unsupported messages
43+
hide("msgUBX_ESF_RAW");
44+
hide("msgUBX_ESF_STATUS");
45+
hide("msgUBX_ESF_ALG");
46+
hide("msgUBX_ESF_INS");
47+
}
48+
else if (platformPrefix == "Express") {
49+
hide("sensorConfig"); //Hide Sensor Config section
50+
51+
hide("msgUBX_ESF_MEAS"); //Hide unsupported messages
52+
hide("msgUBX_ESF_RAW");
53+
hide("msgUBX_ESF_STATUS");
54+
hide("msgUBX_ESF_ALG");
55+
hide("msgUBX_ESF_INS");
56+
}
57+
else if (platformPrefix == "Express Plus") {
3958
ge("muxChannel2").innerHTML = "Wheel/Dir Encoder";
4059

4160
hide("baseConfig"); //Hide Base Config section
42-
show("sensorConfig"); //Show Sensor Config section
4361

4462
hide("msgUBX_NAV_SVIN"); //Hide unsupported messages
4563
hide("msgUBX_RTCM_1005");

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const int FIRMWARE_VERSION_MINOR = 7;
4646

4747
#define COMPILE_WIFI //Comment out to remove all WiFi functionality
4848
#define COMPILE_BT //Comment out to disable all Bluetooth
49-
#define ENABLE_DEVELOPER //Uncomment this line to enable special developer modes (don't check power button at startup)
49+
//#define ENABLE_DEVELOPER //Uncomment this line to enable special developer modes (don't check power button at startup)
5050

5151
//Define the RTK board identifier:
5252
// This is an int which is unique to this variant of the RTK Surveyor hardware which allows us
1.75 MB
Binary file not shown.

Firmware/RTK_Surveyor/form.h

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,30 @@ function parseIncoming(msg) {
5757
platformPrefix = val;
5858
document.title = "RTK " + platformPrefix + " Setup";
5959

60-
if (platformPrefix == "Surveyor") hide("dataPortChannelDropdown");
61-
if (platformPrefix == "Express Plus") {
60+
if (platformPrefix == "Surveyor") {
61+
hide("dataPortChannelDropdown");
62+
63+
hide("sensorConfig"); //Hide Sensor Config section
64+
65+
hide("msgUBX_ESF_MEAS"); //Hide unsupported messages
66+
hide("msgUBX_ESF_RAW");
67+
hide("msgUBX_ESF_STATUS");
68+
hide("msgUBX_ESF_ALG");
69+
hide("msgUBX_ESF_INS");
70+
}
71+
else if (platformPrefix == "Express") {
72+
hide("sensorConfig"); //Hide Sensor Config section
73+
74+
hide("msgUBX_ESF_MEAS"); //Hide unsupported messages
75+
hide("msgUBX_ESF_RAW");
76+
hide("msgUBX_ESF_STATUS");
77+
hide("msgUBX_ESF_ALG");
78+
hide("msgUBX_ESF_INS");
79+
}
80+
else if (platformPrefix == "Express Plus") {
6281
ge("muxChannel2").innerHTML = "Wheel/Dir Encoder";
6382

6483
hide("baseConfig"); //Hide Base Config section
65-
show("sensorConfig"); //Show Sensor Config section
6684

6785
hide("msgUBX_NAV_SVIN"); //Hide unsupported messages
6886
hide("msgUBX_RTCM_1005");

0 commit comments

Comments
 (0)