@@ -305,82 +305,91 @@ function validateFields() {
305
305
checkMessageValue ( "UBX_RTCM_4072_0" ) ;
306
306
checkMessageValue ( "UBX_RTCM_4072_1" ) ;
307
307
308
- checkMessageValue ( "UBX_ESF_MEAS" ) ;
309
- checkMessageValue ( "UBX_ESF_RAW" ) ;
310
- checkMessageValue ( "UBX_ESF_STATUS" ) ;
311
- checkMessageValue ( "UBX_ESF_ALG" ) ;
312
- checkMessageValue ( "UBX_ESF_INS" ) ;
308
+ if ( platformPrefix == "Express Plus" )
309
+ {
310
+ checkMessageValue ( "UBX_ESF_MEAS" ) ;
311
+ checkMessageValue ( "UBX_ESF_RAW" ) ;
312
+ checkMessageValue ( "UBX_ESF_STATUS" ) ;
313
+ checkMessageValue ( "UBX_ESF_ALG" ) ;
314
+ checkMessageValue ( "UBX_ESF_INS" ) ;
315
+ }
313
316
314
317
//Base Config
315
- if ( ge ( "baseTypeSurveyIn" ) . checked ) {
316
- checkElementValue ( "observationSeconds" , 60 , 600 , "Must be between 60 to 600" , "collapseBaseConfig" ) ;
317
- checkElementValue ( "observationPositionAccuracy" , 1 , 5.1 , "Must be between 1.0 to 5.0" , "collapseBaseConfig" ) ;
318
-
319
- clearElement ( "fixedEcefX" , - 1280206.568 ) ;
320
- clearElement ( "fixedEcefY" , - 4716804.403 ) ;
321
- clearElement ( "fixedEcefZ" , 4086665.484 ) ;
322
- clearElement ( "fixedLat" , 40.09029479 ) ;
323
- clearElement ( "fixedLong" , - 105.18505761 ) ;
324
- clearElement ( "fixedAltitude" , 1560.089 ) ;
325
- }
326
- else {
327
- clearElement ( "observationSeconds" , 60 ) ;
328
- clearElement ( "observationPositionAccuracy" , 5.0 ) ;
318
+ if ( platformPrefix != "Express Plus" )
319
+ {
320
+ if ( ge ( "baseTypeSurveyIn" ) . checked ) {
321
+ checkElementValue ( "observationSeconds" , 60 , 600 , "Must be between 60 to 600" , "collapseBaseConfig" ) ;
322
+ checkElementValue ( "observationPositionAccuracy" , 1 , 5.1 , "Must be between 1.0 to 5.0" , "collapseBaseConfig" ) ;
329
323
330
- if ( ge ( "fixedBaseCoordinateTypeECEF" ) . checked ) {
324
+ clearElement ( "fixedEcefX" , - 1280206.568 ) ;
325
+ clearElement ( "fixedEcefY" , - 4716804.403 ) ;
326
+ clearElement ( "fixedEcefZ" , 4086665.484 ) ;
331
327
clearElement ( "fixedLat" , 40.09029479 ) ;
332
328
clearElement ( "fixedLong" , - 105.18505761 ) ;
333
329
clearElement ( "fixedAltitude" , 1560.089 ) ;
334
-
335
- checkElementValue ( "fixedEcefX" , - 7000000 , 7000000 , "Must be -7000000 to 7000000" , "collapseBaseConfig" ) ;
336
- checkElementValue ( "fixedEcefY" , - 7000000 , 7000000 , "Must be -7000000 to 7000000" , "collapseBaseConfig" ) ;
337
- checkElementValue ( "fixedEcefZ" , - 7000000 , 7000000 , "Must be -7000000 to 7000000" , "collapseBaseConfig" ) ;
338
330
}
339
- else {
340
- clearElement ( "fixedEcefX" , - 1280206.568 ) ;
341
- clearElement ( "fixedEcefY" , - 4716804.403 ) ;
342
- clearElement ( "fixedEcefZ" , 4086665.484 ) ;
331
+ else {
332
+ clearElement ( "observationSeconds" , 60 ) ;
333
+ clearElement ( "observationPositionAccuracy" , 5.0 ) ;
334
+
335
+ if ( ge ( "fixedBaseCoordinateTypeECEF" ) . checked ) {
336
+ clearElement ( "fixedLat" , 40.09029479 ) ;
337
+ clearElement ( "fixedLong" , - 105.18505761 ) ;
338
+ clearElement ( "fixedAltitude" , 1560.089 ) ;
343
339
344
- checkElementValue ( "fixedLat" , - 180 , 180 , "Must be -180 to 180" , "collapseBaseConfig" ) ;
345
- checkElementValue ( "fixedLong" , - 180 , 180 , "Must be -180 to 180" , "collapseBaseConfig" ) ;
346
- checkElementValue ( "fixedAltitude" , - 11034 , 8849 , "Must be -11034 to 8849" , "collapseBaseConfig" ) ;
340
+ checkElementValue ( "fixedEcefX" , - 7000000 , 7000000 , "Must be -7000000 to 7000000" , "collapseBaseConfig" ) ;
341
+ checkElementValue ( "fixedEcefY" , - 7000000 , 7000000 , "Must be -7000000 to 7000000" , "collapseBaseConfig" ) ;
342
+ checkElementValue ( "fixedEcefZ" , - 7000000 , 7000000 , "Must be -7000000 to 7000000" , "collapseBaseConfig" ) ;
343
+ }
344
+ else {
345
+ clearElement ( "fixedEcefX" , - 1280206.568 ) ;
346
+ clearElement ( "fixedEcefY" , - 4716804.403 ) ;
347
+ clearElement ( "fixedEcefZ" , 4086665.484 ) ;
348
+
349
+ checkElementValue ( "fixedLat" , - 180 , 180 , "Must be -180 to 180" , "collapseBaseConfig" ) ;
350
+ checkElementValue ( "fixedLong" , - 180 , 180 , "Must be -180 to 180" , "collapseBaseConfig" ) ;
351
+ checkElementValue ( "fixedAltitude" , - 11034 , 8849 , "Must be -11034 to 8849" , "collapseBaseConfig" ) ;
352
+ }
347
353
}
348
- }
349
354
350
- if ( ge ( "enableNtripServer" ) . checked == true ) {
351
- checkElementString ( "ntripServer_wifiSSID" , 1 , 30 , "Must be 1 to 30 characters" , "collapseBaseConfig" ) ;
352
- checkElementString ( "ntripServer_wifiPW" , 0 , 30 , "Must be 0 to 30 characters" , "collapseBaseConfig" ) ;
353
- checkElementString ( "ntripServer_CasterHost" , 1 , 30 , "Must be 1 to 30 characters" , "collapseBaseConfig" ) ;
354
- checkElementValue ( "ntripServer_CasterPort" , 1 , 99999 , "Must be 1 to 99999" , "collapseBaseConfig" ) ;
355
- checkElementString ( "ntripServer_MountPoint" , 1 , 30 , "Must be 1 to 30 characters" , "collapseBaseConfig" ) ;
356
- checkElementString ( "ntripServer_MountPointPW" , 1 , 30 , "Must be 1 to 30 characters" , "collapseBaseConfig" ) ;
357
- }
358
- else {
359
- clearElement ( "ntripServer_wifiSSID" , "TRex" ) ;
360
- clearElement ( "ntripServer_wifiPW" , "parachutes" ) ;
361
- clearElement ( "ntripServer_CasterHost" , "rtk2go.com" ) ;
362
- clearElement ( "ntripServer_CasterPort" , 2101 ) ;
363
- clearElement ( "ntripServer_CasterUser" , "" ) ;
364
- clearElement ( "ntripServer_CasterUserPW" , "" ) ;
365
- clearElement ( "ntripServer_MountPoint" , "bldr_dwntwn2" ) ;
366
- clearElement ( "ntripServer_MountPointPW" , "WR5wRo4H" ) ;
355
+ if ( ge ( "enableNtripServer" ) . checked == true ) {
356
+ checkElementString ( "ntripServer_wifiSSID" , 1 , 30 , "Must be 1 to 30 characters" , "collapseBaseConfig" ) ;
357
+ checkElementString ( "ntripServer_wifiPW" , 0 , 30 , "Must be 0 to 30 characters" , "collapseBaseConfig" ) ;
358
+ checkElementString ( "ntripServer_CasterHost" , 1 , 30 , "Must be 1 to 30 characters" , "collapseBaseConfig" ) ;
359
+ checkElementValue ( "ntripServer_CasterPort" , 1 , 99999 , "Must be 1 to 99999" , "collapseBaseConfig" ) ;
360
+ checkElementString ( "ntripServer_MountPoint" , 1 , 30 , "Must be 1 to 30 characters" , "collapseBaseConfig" ) ;
361
+ checkElementString ( "ntripServer_MountPointPW" , 1 , 30 , "Must be 1 to 30 characters" , "collapseBaseConfig" ) ;
362
+ }
363
+ else {
364
+ clearElement ( "ntripServer_wifiSSID" , "TRex" ) ;
365
+ clearElement ( "ntripServer_wifiPW" , "parachutes" ) ;
366
+ clearElement ( "ntripServer_CasterHost" , "rtk2go.com" ) ;
367
+ clearElement ( "ntripServer_CasterPort" , 2101 ) ;
368
+ clearElement ( "ntripServer_CasterUser" , "" ) ;
369
+ clearElement ( "ntripServer_CasterUserPW" , "" ) ;
370
+ clearElement ( "ntripServer_MountPoint" , "bldr_dwntwn2" ) ;
371
+ clearElement ( "ntripServer_MountPointPW" , "WR5wRo4H" ) ;
372
+ }
367
373
}
368
374
369
375
//L-Band Config
370
- if ( ge ( "enablePointPerfectCorrections" ) . checked == true ) {
371
- checkElementString ( "home_wifiSSID" , 1 , 30 , "Must be 1 to 30 characters" , "collapsePPConfig" ) ;
372
- checkElementString ( "home_wifiPW" , 0 , 30 , "Must be 0 to 30 characters" , "collapsePPConfig" ) ;
373
-
374
- value = ge ( "pointPerfectDeviceProfileToken" ) . value ;
375
- console . log ( value ) ;
376
- if ( value . length > 0 )
377
- checkElementString ( "pointPerfectDeviceProfileToken" , 36 , 36 , "Must be 36 characters" , "collapsePPConfig" ) ;
378
- }
379
- else {
380
- clearElement ( "home_wifiSSID" , "" ) ;
381
- clearElement ( "home_wifiPW" , "" ) ;
382
- clearElement ( "pointPerfectDeviceProfileToken" , "" ) ;
383
- ge ( "autoKeyRenewal" ) . checked = true ;
376
+ if ( platformPrefix == "Facet L-Band" )
377
+ {
378
+ if ( ge ( "enablePointPerfectCorrections" ) . checked == true ) {
379
+ checkElementString ( "home_wifiSSID" , 1 , 30 , "Must be 1 to 30 characters" , "collapsePPConfig" ) ;
380
+ checkElementString ( "home_wifiPW" , 0 , 30 , "Must be 0 to 30 characters" , "collapsePPConfig" ) ;
381
+
382
+ value = ge ( "pointPerfectDeviceProfileToken" ) . value ;
383
+ console . log ( value ) ;
384
+ if ( value . length > 0 )
385
+ checkElementString ( "pointPerfectDeviceProfileToken" , 36 , 36 , "Must be 36 characters" , "collapsePPConfig" ) ;
386
+ }
387
+ else {
388
+ clearElement ( "home_wifiSSID" , "" ) ;
389
+ clearElement ( "home_wifiPW" , "" ) ;
390
+ clearElement ( "pointPerfectDeviceProfileToken" , "" ) ;
391
+ ge ( "autoKeyRenewal" ) . checked = true ;
392
+ }
384
393
}
385
394
386
395
//System Config
@@ -394,14 +403,17 @@ function validateFields() {
394
403
}
395
404
396
405
//Port Config
397
- if ( ge ( "enableExternalPulse" ) . checked ) {
398
- checkElementValue ( "externalPulseTimeBetweenPulse_us" , 1 , 65000000 , "Must be 1 to 65,000,000" , "collapsePortsConfig" ) ;
399
- checkElementValue ( "externalPulseLength_us" , 1 , 65000000 , "Must be 1 to 65,000,000" , "collapsePortsConfig" ) ;
400
- }
401
- else {
402
- clearElement ( "externalPulseTimeBetweenPulse_us" , 100000 ) ;
403
- clearElement ( "externalPulseLength_us" , 900000 ) ;
404
- ge ( "externalPulsePolarity" ) . value = 0 ;
406
+ if ( platformPrefix != "Surveyor" )
407
+ {
408
+ if ( ge ( "enableExternalPulse" ) . checked ) {
409
+ checkElementValue ( "externalPulseTimeBetweenPulse_us" , 1 , 65000000 , "Must be 1 to 65,000,000" , "collapsePortsConfig" ) ;
410
+ checkElementValue ( "externalPulseLength_us" , 1 , 65000000 , "Must be 1 to 65,000,000" , "collapsePortsConfig" ) ;
411
+ }
412
+ else {
413
+ clearElement ( "externalPulseTimeBetweenPulse_us" , 100000 ) ;
414
+ clearElement ( "externalPulseLength_us" , 900000 ) ;
415
+ ge ( "externalPulsePolarity" ) . value = 0 ;
416
+ }
405
417
}
406
418
407
419
if ( errorCount == 1 ) {
0 commit comments