@@ -1188,19 +1188,21 @@ function addGeodetic() {
1188
1188
checkElementValue("fixedLat", -180, 180, "Must be -180 to 180", "collapseBaseConfig");
1189
1189
checkElementValue("fixedLong", -180, 180, "Must be -180 to 180", "collapseBaseConfig");
1190
1190
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");
1191
1193
1192
1194
if (errorCount == 0) {
1193
1195
//Check name against the list
1194
1196
var index = 0;
1195
1197
for (; index < recordsGeodetic.length; ++index) {
1196
1198
var parts = recordsGeodetic[index].split(' ');
1197
1199
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 ;
1199
1201
break;
1200
1202
}
1201
1203
}
1202
1204
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 );
1204
1206
}
1205
1207
1206
1208
updateGeodeticList();
@@ -1217,14 +1219,19 @@ function loadGeodetic() {
1217
1219
var val = ge("StationCoordinatesGeodetic").value;
1218
1220
if (val > "") {
1219
1221
var parts = recordsGeodetic[val].split(' ');
1222
+ ge("nicknameGeodetic").value = parts[0];
1220
1223
ge("fixedLat").value = parts[1];
1221
1224
ge("fixedLong").value = parts[2];
1222
1225
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");
1224
1230
clearError("fixedLat");
1225
1231
clearError("fixedLong");
1226
1232
clearError("fixedAltitude");
1227
- clearError("nicknameGeodetic");
1233
+ clearError("antennaHeight");
1234
+ clearError("antennaReferencePoint");
1228
1235
}
1229
1236
}
1230
1237
@@ -1244,7 +1251,6 @@ function updateGeodeticList() {
1244
1251
}
1245
1252
1246
1253
for (let index = 0; index < recordsGeodetic.length; ++index) {
1247
-
1248
1254
var option = document.createElement('option');
1249
1255
option.text = recordsGeodetic[index];
1250
1256
option.value = index;
0 commit comments