@@ -107,6 +107,14 @@ function parseIncoming(msg) {
107107 || id.includes("zedFirmwareVersion")
108108 || id.includes("hardwareID")
109109 || id.includes("daysRemaining")
110+ || id.includes("profile0Name")
111+ || id.includes("profile1Name")
112+ || id.includes("profile2Name")
113+ || id.includes("profile3Name")
114+ || id.includes("profile4Name")
115+ || id.includes("profile5Name")
116+ || id.includes("profile6Name")
117+ || id.includes("profile7Name")
110118 ) {
111119 ge(id).innerHTML = val;
112120 }
@@ -147,6 +155,7 @@ function parseIncoming(msg) {
147155 //Force element updates
148156 ge("profileNumber").dispatchEvent(new CustomEvent('change'));
149157 ge("profileName").dispatchEvent(new CustomEvent('change'));
158+ ge("bootProfileNumber").dispatchEvent(new CustomEvent('change'));
150159 ge("measurementRateHz").dispatchEvent(new CustomEvent('change'));
151160 ge("baseTypeSurveyIn").dispatchEvent(new CustomEvent('change'));
152161 ge("baseTypeFixed").dispatchEvent(new CustomEvent('change'));
@@ -231,8 +240,9 @@ function validateFields() {
231240 errorCount = 0;
232241
233242 //Profile Config
234- checkElementValue("profileNumber", 1, 4 , "Must be between 1 and 4 ", "collapseProfileConfig");
243+ checkElementValue("profileNumber", 1, 8 , "Must be between 1 and 8 ", "collapseProfileConfig");
235244 checkElementString("profileName", 1, 49, "Must be 1 to 49 characters", "collapseProfileConfig");
245+ checkBitMapValue("bootProfileNumber", 1, 8, "activeProfiles", "Must be an active profile between 1 and 8", "collapseProfileConfig");
236246
237247 //GNSS Config
238248 checkElementValue("measurementRateHz", 0.00012, 10, "Must be between 0.00012 and 10Hz", "collapseGNSSConfig");
@@ -482,6 +492,19 @@ function checkConstellations() {
482492 clearError("ubxConstellations");
483493}
484494
495+ function checkBitMapValue(id, min, max, bitMap, errorText, collapseID) {
496+ value = ge(id).value;
497+ mask = ge(bitMap).value;
498+ if ((value < min) || (value > max) || ((mask & (1 << value)) == 0)) {
499+ ge(id + 'Error').innerHTML = 'Error: ' + errorText;
500+ ge(collapseID).classList.add('show');
501+ errorCount++;
502+ }
503+ else {
504+ clearError(id);
505+ }
506+ }
507+
485508function checkElementValue(id, min, max, errorText, collapseID) {
486509 value = ge(id).value;
487510 if (value < min || value > max) {
@@ -896,6 +919,42 @@ static const char *index_html = R"=====(
896919 <p id="profileNameError" class="inlineError"></p>
897920 </div>
898921 </div>
922+
923+ <div class="form-group row mt-2">
924+ <span id="activeProfiles" style="display:inline; margin-left:20px;"><Strong>Profiles</strong></span>
925+ </div>
926+ <div class="form-group row">
927+ <span id="profile0Name" style="display:inline; margin-left:40px;">1: 12345678901234567890123456789012345678901234567890</span>
928+ </div>
929+ <div class="form-group row">
930+ <span id="profile1Name" style="display:inline; margin-left:40px;">2: 12345678901234567890123456789012345678901234567890</span>
931+ </div>
932+ <div class="form-group row">
933+ <span id="profile2Name" style="display:inline; margin-left:40px;">3: 12345678901234567890123456789012345678901234567890</span>
934+ </div>
935+ <div class="form-group row">
936+ <span id="profile3Name" style="display:inline; margin-left:40px;">4: 12345678901234567890123456789012345678901234567890</span>
937+ </div>
938+ <div class="form-group row">
939+ <span id="profile4Name" style="display:inline; margin-left:40px;">5: 12345678901234567890123456789012345678901234567890</span>
940+ </div>
941+ <div class="form-group row">
942+ <span id="profile5Name" style="display:inline; margin-left:40px;">6: 12345678901234567890123456789012345678901234567890</span>
943+ </div>
944+ <div class="form-group row">
945+ <span id="profile6Name" style="display:inline; margin-left:40px;">7: 12345678901234567890123456789012345678901234567890</span>
946+ </div>
947+ <div class="form-group row mb-3">
948+ <span id="profile7Name" style="display:inline; margin-left:40px;">8: 12345678901234567890123456789012345678901234567890</span>
949+ </div>
950+
951+ <div class="form-group row">
952+ <label for="bootProfileName" class="box-margin20 col-sm-3 col-4 col-form-label">Boot Profile</label>
953+ <div class="col-sm-8 col-7">
954+ <input type="text" class="form-control" id="bootProfileNumber">
955+ <p id="bootProfileNumberError" class="inlineError"></p>
956+ </div>
957+ </div>
899958 </div>
900959 </div>
901960
0 commit comments