@@ -1188,19 +1188,21 @@ function addGeodetic() {
11881188 checkElementValue("fixedLat", -180, 180, "Must be -180 to 180", "collapseBaseConfig");
11891189 checkElementValue("fixedLong", -180, 180, "Must be -180 to 180", "collapseBaseConfig");
11901190 checkElementValue("fixedAltitude", -11034, 8849, "Must be -11034 to 8849", "collapseBaseConfig");
1191+ checkElementValue("antennaHeight", -15000, 15000, "Must be -15000 to 15000", "collapseBaseConfig");
1192+ checkElementValue("antennaReferencePoint", -200.0, 200.0, "Must be -200.0 to 200.0", "collapseBaseConfig");
11911193
11921194 if (errorCount == 0) {
11931195 //Check name against the list
11941196 var index = 0;
11951197 for (; index < recordsGeodetic.length; ++index) {
11961198 var parts = recordsGeodetic[index].split(' ');
11971199 if (ge("nicknameGeodetic").value == parts[0]) {
1198- recordsGeodetic[index] = nicknameGeodetic.value + ' ' + fixedLat.value + ' ' + fixedLong.value + ' ' + fixedAltitude.value;
1200+ recordsGeodetic[index] = nicknameGeodetic.value + ' ' + fixedLat.value + ' ' + fixedLong.value + ' ' + fixedAltitude.value + ' ' + antennaHeight.value + ' ' + antennaReferencePoint.value ;
11991201 break;
12001202 }
12011203 }
12021204 if (index == recordsGeodetic.length)
1203- recordsGeodetic.push(nicknameGeodetic.value + ' ' + fixedLat.value + ' ' + fixedLong.value + ' ' + fixedAltitude.value);
1205+ recordsGeodetic.push(nicknameGeodetic.value + ' ' + fixedLat.value + ' ' + fixedLong.value + ' ' + fixedAltitude.value + ' ' + antennaHeight.value + ' ' + antennaReferencePoint.value );
12041206 }
12051207
12061208 updateGeodeticList();
@@ -1217,14 +1219,19 @@ function loadGeodetic() {
12171219 var val = ge("StationCoordinatesGeodetic").value;
12181220 if (val > "") {
12191221 var parts = recordsGeodetic[val].split(' ');
1222+ ge("nicknameGeodetic").value = parts[0];
12201223 ge("fixedLat").value = parts[1];
12211224 ge("fixedLong").value = parts[2];
12221225 ge("fixedAltitude").value = parts[3];
1223- ge("nicknameGeodetic").value = parts[0];
1226+ ge("antennaHeight").value = parts[4];
1227+ ge("antennaReferencePoint").value = parts[5];
1228+
1229+ clearError("nicknameGeodetic");
12241230 clearError("fixedLat");
12251231 clearError("fixedLong");
12261232 clearError("fixedAltitude");
1227- clearError("nicknameGeodetic");
1233+ clearError("antennaHeight");
1234+ clearError("antennaReferencePoint");
12281235 }
12291236}
12301237
@@ -1244,7 +1251,6 @@ function updateGeodeticList() {
12441251 }
12451252
12461253 for (let index = 0; index < recordsGeodetic.length; ++index) {
1247-
12481254 var option = document.createElement('option');
12491255 option.text = recordsGeodetic[index];
12501256 option.value = index;
0 commit comments