Skip to content

Commit 2422bb9

Browse files
committed
Merge v1.10
2 parents b44be96 + 2df4070 commit 2422bb9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1198
-535
lines changed
-980 KB
Binary file not shown.
-1.4 MB
Binary file not shown.
-1.42 MB
Binary file not shown.
-1.49 MB
Binary file not shown.
-1.47 MB
Binary file not shown.
-1.8 MB
Binary file not shown.
-1.8 MB
Binary file not shown.
-1.81 MB
Binary file not shown.
-1.81 MB
Binary file not shown.

Binaries/batch_program.bat

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ if [%1]==[] goto usage
99
@echo -
1010
@echo Programming binary: %1 on %2
1111

12-
rem @esptool.exe --chip esp32 --port COM6 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0 RTK_Surveyor_Firmware_v13_combined.bin
13-
@esptool.exe --chip esp32 --port %2 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0 %1
12+
esptool.exe --chip esp32 --port COM26 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect ^
13+
0x1000 ./bin/RTK_Surveyor.ino.bootloader.bin ^
14+
0x8000 ./bin/RTK_Surveyor.ino.partitions.bin ^
15+
0xe000 ./bin/boot_app0.bin ^
16+
0x10000 ./%1
1417

1518
@echo Done programming! Ready for next board.
1619
@pause
1720

1821
goto loop
1922

2023
:usage
21-
@echo Missing the binary file and com port arguments. Ex: batch_program.bat RTK_Surveyor_Firmware_v11_combined.bin COM6
24+
@echo Missing the binary file and com port arguments. Ex: batch_program.bat RTK_Surveyor_Firmware_v1_10.bin COM6
17.6 KB
Binary file not shown.
Binary file not shown.

Binaries/bin/boot_app0.bin

8 KB
Binary file not shown.

Binaries/esptool.exe

3.96 MB
Binary file not shown.

Firmware/RTK_Surveyor/AP-Config/index.html

Lines changed: 16 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@
7171
<body>
7272

7373
<div class="container" style="display:none; margin-top:20px;max-width:600px;" id="exitPage">
74-
<b>Done</b><br><br>RTK device is now in Rover mode.
74+
<b>Done</b><br><br>RTK device is now rebooting.
75+
</div>
76+
77+
<div class="container" style="display:none; margin-top:20px;max-width:600px;" id="firmwareUploadComplete">
78+
<b>Done</b><br><br>Firmware update complete. RTK device is now rebooting.
7579
</div>
7680

7781
<div class="container" style="margin-top:20px;max-width:600px;" id="mainPage">
@@ -864,7 +868,7 @@ <h2>
864868
<label class="form-check-label" for="enableNtripServer">Enable NTRIP Server</label>
865869
<input class="form-check-input" type="checkbox" value="" id="enableNtripServer">
866870
<span class="tt" data-bs-placement="right"
867-
title="Once a base station is outputting correction data it can be pushed to an NTRIP caster via local Wifi. Other devices can access the correction stream using an NTRIP client. Default: Disabled.">
871+
title="Use this NTRIP server to upload the base's correction data to a casting service. Other devices can then access the correction data using an NTRIP client. Default: Disabled.">
868872
<span class="icon-info-circle text-primary ms-2"></span>
869873
</span>
870874
</div>
@@ -905,20 +909,20 @@ <h2>
905909
</div>
906910

907911
<div class="form-group row">
908-
<label for="mountPoint" class="box-margin20 col-sm-3 col-5 col-form-label">Mount
912+
<label for="mountPointUpload" class="box-margin20 col-sm-3 col-5 col-form-label">Mount
909913
Point:</label>
910914
<div class="col-sm-8 col-6">
911-
<input type="text" class="form-control" id="mountPoint">
912-
<p id="mountPointError" class="inlineError"></p>
915+
<input type="text" class="form-control" id="mountPointUpload">
916+
<p id="mountPointUploadError" class="inlineError"></p>
913917
</div>
914918
</div>
915919

916920
<div class="form-group row">
917-
<label for="mountPointPW" class="box-margin20 col-sm-4 col-6 col-form-label">Mount Point
921+
<label for="mountPointUploadPW" class="box-margin20 col-sm-4 col-6 col-form-label">Mount Point
918922
PW:</label>
919923
<div class="col-sm-7 col-5">
920-
<input type="text" class="form-control" id="mountPointPW">
921-
<p id="mountPointPWError" class="inlineError"></p>
924+
<input type="text" class="form-control" id="mountPointUploadPW">
925+
<p id="mountPointUploadPWError" class="inlineError"></p>
922926
</div>
923927
</div>
924928
</div>
@@ -1080,58 +1084,11 @@ <h2>
10801084
<br>
10811085
Used: <p id="sdUsedSpaceMB" style="display:inline;">0</p>MB
10821086
</div>
1083-
1084-
<div class="form-check" id="firmwareAvailable" style="display:none;">
1085-
Available Firmware:
1086-
<div class="form-check">
1087-
<div style="display:none;" id="firmwareFile0">
1088-
<input type="radio" id="file0" name="firmwareFiles">
1089-
<label for="file0" id="firmwareFileName0">file0</label><br>
1090-
</div>
1091-
<div style="display:none;" id="firmwareFile1">
1092-
<input type="radio" id="file1" name="firmwareFiles">
1093-
<label for="file1" id="firmwareFileName1">file 1</label><br>
1094-
</div>
1095-
<div style="display:none;" id="firmwareFile2">
1096-
<input type="radio" id="file2" name="firmwareFiles">
1097-
<label for="file2" id="firmwareFileName2">file2</label><br>
1098-
</div>
1099-
<div style="display:none;" id="firmwareFile3">
1100-
<input type="radio" id="file3" name="firmwareFiles">
1101-
<label for="file3" id="firmwareFileName3">file3</label><br>
1102-
</div>
1103-
<div style="display:none;" id="firmwareFile4">
1104-
<input type="radio" id="file4" name="firmwareFiles">
1105-
<label for="file4" id="firmwareFileName4">file4</label><br>
1106-
</div>
1107-
<div style="display:none;" id="firmwareFile5">
1108-
<input type="radio" id="file5" name="firmwareFiles">
1109-
<label for="file5" id="firmwareFileName5">file5</label><br>
1110-
</div>
1111-
1112-
<div class="form-check">
1113-
<label class="form-check-label" for="enableFirmwareUpdate">Enable Firmware
1114-
Update:</label><span class="tt" data-bs-placement="right"
1115-
title="Select the firmware file, then check ‘Enable Firmware Update’ to begin update process.">
1116-
<span class="icon-info-circle text-primary ms-2"></span>
1117-
</span>
1118-
<input class="form-check-input" type="checkbox" value="" id="enableFirmwareUpdate"
1119-
unchecked disabled>
1120-
</div>
1121-
1122-
<div id="firmwareUpdateButton">
1123-
<button type="button" id="firmwareUpdate" class="btn btn-primary"
1124-
onClick="sendFirmwareFile()" disabled>Update Firmware</button>
1125-
<p id="firmwareUpdateMsg" class="inlineSuccess"></p>
1126-
</div>
1127-
</div>
1128-
</div>
11291087
</div>
11301088
<div class="col-sm-7 col-6 mt-2">
11311089
<div id="uploadNewFirmwareDiv" class="mb-2">
1132-
<label class="form-check-label" for="uploadNewFirmware">Add Firmware:</label>
1133-
<span class="tt" data-bs-placement="right"
1134-
title="New firmware may be uploaded via WiFi to the SD card. Firmware is only loaded to the SD card and must then be loaded to the unit.">
1090+
<label class="form-check-label" for="uploadNewFirmware">Update Firmware:</label>
1091+
<span class="tt" data-bs-placement="right" title="Update the unit's firmware over WiFi.">
11351092
<span class="icon-info-circle text-primary ms-2"></span>
11361093
</span>
11371094
<form id="uploadNewFirmware" enctype="multipart/form-data" method="post" action="/upload">
@@ -1160,8 +1117,8 @@ <h2>
11601117
<p id="saveBtnSuccess" class="inlineSuccess"></p>
11611118
</div>
11621119
<div align="center" class="col-sm-5 col-12">
1163-
<button type="button" id="exitBtn" class="btn btn-outline-secondary" onclick="exitConfig()">Exit to
1164-
Rover Mode <span class="icon-remove text-secondary ms-1"></span></button>
1120+
<button type="button" id="exitBtn" class="btn btn-outline-secondary" onclick="exitConfig()">Exit and
1121+
Reset<span class="icon-remove text-secondary ms-1"></span></button>
11651122
<p id="exitBtnError" class="inlineSuccess"></p>
11661123
<p>&nbsp;</p>
11671124
</div>

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

Lines changed: 39 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function ge(e) {
1212
var platformPrefix = "Surveyor";
1313

1414
function parseIncoming(msg) {
15-
console.log("incoming message: " + msg);
15+
//console.log("incoming message: " + msg);
1616

1717
var data = msg.split(',');
1818
for (let x = 0; x < data.length - 1; x += 2) {
@@ -83,24 +83,27 @@ function parseIncoming(msg) {
8383
) {
8484
ge(id).innerHTML = val;
8585
}
86-
else if (id.includes("firmwareFileName")) {
87-
show("firmwareAvailable"); //Turn on firmware area
88-
89-
ge(id).innerHTML = val;
90-
if (id.includes("0")) show("firmwareFile0");
91-
if (id.includes("1")) show("firmwareFile1");
92-
if (id.includes("2")) show("firmwareFile2");
93-
if (id.includes("3")) show("firmwareFile3");
94-
if (id.includes("4")) show("firmwareFile4");
95-
if (id.includes("5")) show("firmwareFile5");
86+
else if (id.includes("firmwareUploadComplete")) {
87+
firmwareUploadComplete();
88+
}
89+
else if (id.includes("firmwareUploadStatus")) {
90+
firmwareUploadStatus(val);
9691
}
9792

9893
//Check boxes / radio buttons
9994
else if (val == "true") {
100-
ge(id).checked = true;
95+
try {
96+
ge(id).checked = true;
97+
} catch (error) {
98+
console.log("Issue with ID: " + id)
99+
}
101100
}
102101
else if (val == "false") {
103-
ge(id).checked = false;
102+
try {
103+
ge(id).checked = false;
104+
} catch (error) {
105+
console.log("Issue with ID: " + id)
106+
}
104107
}
105108

106109
//All regular input boxes and values
@@ -153,22 +156,6 @@ function sendData() {
153156
ws.send(settingCSV);
154157
}
155158

156-
function sendFirmwareFile() {
157-
var firmwareFileName = "firmwareFileName,";
158-
159-
//ID the firmware file radio
160-
if (ge("file0").checked) firmwareFileName += ge("firmwareFileName0").innerHTML;
161-
else if (ge("file1").checked) firmwareFileName += ge("firmwareFileName1").innerHTML;
162-
else if (ge("file2").checked) firmwareFileName += ge("firmwareFileName2").innerHTML;
163-
else if (ge("file3").checked) firmwareFileName += ge("firmwareFileName3").innerHTML;
164-
else if (ge("file4").checked) firmwareFileName += ge("firmwareFileName4").innerHTML;
165-
else if (ge("file5").checked) firmwareFileName += ge("firmwareFileName5").innerHTML;
166-
167-
firmwareFileName += ","
168-
ws.send(firmwareFileName);
169-
ge("firmwareUpdateMsg").innerHTML = 'Updating, please wait for system reset...';
170-
}
171-
172159
function showError(id, errorText) {
173160
ge(id + 'Error').innerHTML = '<br>Error: ' + errorText;
174161
}
@@ -310,8 +297,8 @@ function validateFields() {
310297
checkElementString("wifiPW", 0, 30, "Must be 0 to 30 characters", "collapseBaseConfig");
311298
checkElementString("casterHost", 1, 30, "Must be 1 to 30 characters", "collapseBaseConfig");
312299
checkElementValue("casterPort", 1, 99999, "Must be 1 to 99999", "collapseBaseConfig");
313-
checkElementString("mountPoint", 1, 30, "Must be 1 to 30 characters", "collapseBaseConfig");
314-
checkElementString("mountPointPW", 1, 30, "Must be 1 to 30 characters", "collapseBaseConfig");
300+
checkElementString("mountPointUpload", 1, 30, "Must be 1 to 30 characters", "collapseBaseConfig");
301+
checkElementString("mountPointUploadPW", 1, 30, "Must be 1 to 30 characters", "collapseBaseConfig");
315302

316303
//System Config
317304
checkElementValue("maxLogTime_minutes", 1, 2880, "Must be 1 to 2880", "collapseSystemConfig");
@@ -491,11 +478,20 @@ function resetToLoggingDefaults() {
491478
function exitConfig() {
492479
show("exitPage");
493480
hide("mainPage");
494-
ws.send("exitToRoverMode,1,");
481+
ws.send("exitAndReset,1,");
495482
}
496483

497484
function firmwareUploadWait() {
498-
ge("firmwareUploadMsg").innerHTML = "<br>Uploading, please wait....";
485+
ge("firmwareUploadMsg").innerHTML = "<br>Uploading, please wait...";
486+
}
487+
488+
function firmwareUploadStatus(val) {
489+
ge("firmwareUploadMsg").innerHTML = val;
490+
}
491+
492+
function firmwareUploadComplete() {
493+
show("firmwareUploadComplete");
494+
hide("mainPage");
499495
}
500496

501497
document.addEventListener("DOMContentLoaded", (event) => {
@@ -544,7 +540,7 @@ document.addEventListener("DOMContentLoaded", (event) => {
544540
ge("fixedEcefX").disabled = false;
545541
ge("fixedEcefY").disabled = false;
546542
ge("fixedEcefZ").disabled = false;
547-
//Disable Geographic inputs
543+
//Disable Geodetic inputs
548544
ge("fixedLat").disabled = true;
549545
ge("fixedLong").disabled = true;
550546
ge("fixedAltitude").disabled = true;
@@ -554,7 +550,7 @@ document.addEventListener("DOMContentLoaded", (event) => {
554550
ge("fixedEcefX").disabled = true;
555551
ge("fixedEcefY").disabled = true;
556552
ge("fixedEcefZ").disabled = true;
557-
//Disable Geographic inputs
553+
//Disable Geodetic inputs
558554
ge("fixedLat").disabled = false;
559555
ge("fixedLong").disabled = false;
560556
ge("fixedAltitude").disabled = false;
@@ -569,7 +565,7 @@ document.addEventListener("DOMContentLoaded", (event) => {
569565
ge("fixedEcefX").disabled = false;
570566
ge("fixedEcefY").disabled = false;
571567
ge("fixedEcefZ").disabled = false;
572-
//Disable Geographic inputs
568+
//Disable Geodetic inputs
573569
ge("fixedLat").disabled = true;
574570
ge("fixedLong").disabled = true;
575571
ge("fixedAltitude").disabled = true;
@@ -579,7 +575,7 @@ document.addEventListener("DOMContentLoaded", (event) => {
579575
ge("fixedEcefX").disabled = true;
580576
ge("fixedEcefY").disabled = true;
581577
ge("fixedEcefZ").disabled = true;
582-
//Disable Geographic inputs
578+
//Enable Geodetic inputs
583579
ge("fixedLat").disabled = false;
584580
ge("fixedLong").disabled = false;
585581
ge("fixedAltitude").disabled = false;
@@ -593,7 +589,7 @@ document.addEventListener("DOMContentLoaded", (event) => {
593589
ge("fixedEcefX").disabled = true;
594590
ge("fixedEcefY").disabled = true;
595591
ge("fixedEcefZ").disabled = true;
596-
//Disable Geographic inputs
592+
//Enable Geodetic inputs
597593
ge("fixedLat").disabled = false;
598594
ge("fixedLong").disabled = false;
599595
ge("fixedAltitude").disabled = false;
@@ -603,7 +599,7 @@ document.addEventListener("DOMContentLoaded", (event) => {
603599
ge("fixedEcefX").disabled = false;
604600
ge("fixedEcefY").disabled = false;
605601
ge("fixedEcefZ").disabled = false;
606-
//Disable Geographic inputs
602+
//Disable Geodetic inputs
607603
ge("fixedLat").disabled = true;
608604
ge("fixedLong").disabled = true;
609605
ge("fixedAltitude").disabled = true;
@@ -617,17 +613,17 @@ document.addEventListener("DOMContentLoaded", (event) => {
617613
ge("wifiPW").disabled = false;
618614
ge("casterHost").disabled = false;
619615
ge("casterPort").disabled = false;
620-
ge("mountPoint").disabled = false;
621-
ge("mountPointPW").disabled = false;
616+
ge("mountPointUpload").disabled = false;
617+
ge("mountPointUploadPW").disabled = false;
622618
}
623619
else {
624620
//Disable NTRIP inputs
625621
ge("wifiSSID").disabled = true;
626622
ge("wifiPW").disabled = true;
627623
ge("casterHost").disabled = true;
628624
ge("casterPort").disabled = true;
629-
ge("mountPoint").disabled = true;
630-
ge("mountPointPW").disabled = true;
625+
ge("mountPointUpload").disabled = true;
626+
ge("mountPointUploadPW").disabled = true;
631627
}
632628
});
633629

@@ -653,25 +649,6 @@ document.addEventListener("DOMContentLoaded", (event) => {
653649
}
654650
});
655651

656-
//Enable the check box
657-
ge("firmwareFile0").addEventListener("change", function () { ge("enableFirmwareUpdate").disabled = false; });
658-
ge("firmwareFile1").addEventListener("change", function () { ge("enableFirmwareUpdate").disabled = false; });
659-
ge("firmwareFile2").addEventListener("change", function () { ge("enableFirmwareUpdate").disabled = false; });
660-
ge("firmwareFile3").addEventListener("change", function () { ge("enableFirmwareUpdate").disabled = false; });
661-
ge("firmwareFile4").addEventListener("change", function () { ge("enableFirmwareUpdate").disabled = false; });
662-
ge("firmwareFile5").addEventListener("change", function () { ge("enableFirmwareUpdate").disabled = false; });
663-
664-
ge("enableFirmwareUpdate").addEventListener("change", function () {
665-
if (ge("enableFirmwareUpdate").checked) {
666-
//Enable button
667-
ge("firmwareUpdate").disabled = false;
668-
}
669-
else {
670-
//Disable button
671-
ge("firmwareUpdate").disabled = true;
672-
}
673-
});
674-
675652
ge("dataPortChannel").addEventListener("change", function () {
676653
if (ge("dataPortChannel").value == 0) {
677654
show("dataPortBaudDropdown");

Firmware/RTK_Surveyor/Base.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ bool startFixedBase()
164164
maxWait
165165
); //With high precision 0.1mm parts
166166
}
167-
else if (settings.fixedBaseCoordinateType == COORD_TYPE_GEOGRAPHIC)
167+
else if (settings.fixedBaseCoordinateType == COORD_TYPE_GEODETIC)
168168
{
169169
//Break coordinates into main and high precision parts
170170
//The type casting should not effect rounding of original double cast coordinate

0 commit comments

Comments
 (0)