@@ -284,22 +284,22 @@ function parseIncoming(msg) {
284
284
else if ( id . includes ( "fmNext" ) ) {
285
285
sendFile ( ) ;
286
286
}
287
- else if ( id . includes ( "ubxMessageRate" ) ) { // ubxMessageRate_UBX_NMEA_DTM ubxMessageRateBase_UBX_RTCM_1005
287
+ else if ( id . includes ( "ubxMessageRate" ) ) { // ubxMessageRate_NMEA_DTM ubxMessageRateBase_RTCM_1005
288
288
var messageName = id ;
289
289
var messageRate = val ;
290
290
var messageNameLabel = "" ;
291
291
292
292
var messageData = messageName . split ( '_' ) ;
293
- if ( messageData . length >= 4 ) {
294
- var messageType = messageData [ 2 ] ; // ubxMessageRate_UBX_NMEA_DTM = NMEA
293
+ if ( messageData . length >= 3 ) {
294
+ var messageType = messageData [ 1 ] ; // ubxMessageRate_NMEA_DTM = NMEA
295
295
if ( lastMessageType != messageType ) {
296
296
lastMessageType = messageType ;
297
297
messageText += "<hr>" ;
298
298
}
299
299
300
- messageNameLabel = messageData [ 2 ] + "_" + messageData [ 3 ] ; // ubxMessageRate_UBX_RTCM_4072_0 = RTCM_4072
301
- if ( messageData . length == 5 ) {
302
- messageNameLabel = messageData [ 2 ] + "_" + messageData [ 3 ] + "_" + messageData [ 4 ] ; // ubxMessageRate_UBX_RTCM_4072_0 = RTCM_4072_0
300
+ messageNameLabel = messageData [ 1 ] + "_" + messageData [ 2 ] ; // ubxMessageRateBase_RTCM_1005 = RTCM_1005
301
+ if ( messageData . length == 4 ) {
302
+ messageNameLabel = messageData [ 1 ] + "_" + messageData [ 2 ] + "_" + messageData [ 3 ] ; // ubxMessageRate_RTCM_4072_0 = RTCM_4072_0
303
303
}
304
304
}
305
305
@@ -862,30 +862,16 @@ function saveConfig() {
862
862
}
863
863
864
864
function checkConstellations ( ) {
865
- if ( ( platformPrefix == "EVK" ) || ( platformPrefix == "Facet v2" ) ) {
866
- if ( ( ge ( "ubxConstellation_GPS" ) . checked == false )
867
- && ( ge ( "ubxConstellation_Galileo" ) . checked == false )
868
- && ( ge ( "ubxConstellation_BeiDou" ) . checked == false )
869
- && ( ge ( "ubxConstellation_GLONASS" ) . checked == false ) ) {
870
- ge ( "collapseGNSSConfig" ) . classList . add ( 'show' ) ;
871
- showError ( 'gnssConstellations' , "Please choose one constellation" ) ;
872
- errorCount ++ ;
873
- }
874
- else
875
- clearError ( "gnssConstellations" ) ;
876
- }
877
- if ( platformPrefix == "Torch" ) {
878
- if ( ( ge ( "constellation_GPS" ) . checked == false )
879
- && ( ge ( "constellation_Galileo" ) . checked == false )
880
- && ( ge ( "constellation_BeiDou" ) . checked == false )
881
- && ( ge ( "constellation_GLONASS" ) . checked == false ) ) {
882
- ge ( "collapseGNSSConfig" ) . classList . add ( 'show' ) ;
883
- showError ( 'gnssConstellations' , "Please choose one constellation" ) ;
884
- errorCount ++ ;
885
- }
886
- else
887
- clearError ( "gnssConstellations" ) ;
865
+ if ( ( ge ( "constellation_GPS" ) . checked == false )
866
+ && ( ge ( "constellation_Galileo" ) . checked == false )
867
+ && ( ge ( "constellation_BeiDou" ) . checked == false )
868
+ && ( ge ( "constellation_GLONASS" ) . checked == false ) ) {
869
+ ge ( "collapseGNSSConfig" ) . classList . add ( 'show' ) ;
870
+ showError ( 'gnssConstellations' , "Please choose one constellation" ) ;
871
+ errorCount ++ ;
888
872
}
873
+ else
874
+ clearError ( "gnssConstellations" ) ;
889
875
}
890
876
891
877
function checkBitMapValue ( id , min , max , bitMap , errorText , collapseID ) {
@@ -1086,11 +1072,11 @@ function zeroBaseMessages() {
1086
1072
function resetToSurveyingDefaults ( ) {
1087
1073
zeroMessages ( ) ;
1088
1074
if ( ( platformPrefix == "EVK" ) || ( platformPrefix == "Facet v2" ) ) {
1089
- ge ( "ubxMessageRate_UBX_NMEA_GGA " ) . value = 1 ;
1090
- ge ( "ubxMessageRate_UBX_NMEA_GSA " ) . value = 1 ;
1091
- ge ( "ubxMessageRate_UBX_NMEA_GST " ) . value = 1 ;
1092
- ge ( "ubxMessageRate_UBX_NMEA_GSV " ) . value = 4 ;
1093
- ge ( "ubxMessageRate_UBX_NMEA_RMC " ) . value = 1 ;
1075
+ ge ( "ubxMessageRate_NMEA_GGA " ) . value = 1 ;
1076
+ ge ( "ubxMessageRate_NMEA_GSA " ) . value = 1 ;
1077
+ ge ( "ubxMessageRate_NMEA_GST " ) . value = 1 ;
1078
+ ge ( "ubxMessageRate_NMEA_GSV " ) . value = 4 ;
1079
+ ge ( "ubxMessageRate_NMEA_RMC " ) . value = 1 ;
1094
1080
}
1095
1081
else if ( platformPrefix == "Torch" ) {
1096
1082
ge ( "messageRateNMEA_GPGGA" ) . value = 0.5 ;
@@ -1103,14 +1089,14 @@ function resetToSurveyingDefaults() {
1103
1089
function resetToLoggingDefaults ( ) {
1104
1090
zeroMessages ( ) ;
1105
1091
if ( ( platformPrefix == "EVK" ) || ( platformPrefix == "Facet v2" ) ) {
1106
- ge ( "ubxMessageRate_UBX_NMEA_GGA " ) . value = 1 ;
1107
- ge ( "ubxMessageRate_UBX_NMEA_GSA " ) . value = 1 ;
1108
- ge ( "ubxMessageRate_UBX_NMEA_GST " ) . value = 1 ;
1109
- ge ( "ubxMessageRate_UBX_NMEA_GSV " ) . value = 4 ;
1110
- ge ( "ubxMessageRate_UBX_NMEA_RMC " ) . value = 1 ;
1092
+ ge ( "ubxMessageRate_NMEA_GGA " ) . value = 1 ;
1093
+ ge ( "ubxMessageRate_NMEA_GSA " ) . value = 1 ;
1094
+ ge ( "ubxMessageRate_NMEA_GST " ) . value = 1 ;
1095
+ ge ( "ubxMessageRate_NMEA_GSV " ) . value = 4 ;
1096
+ ge ( "ubxMessageRate_NMEA_RMC " ) . value = 1 ;
1111
1097
1112
- ge ( "ubxMessageRate_UBX_RXM_RAWX " ) . value = 1 ;
1113
- ge ( "ubxMessageRate_UBX_RXM_SFRBX " ) . value = 1 ;
1098
+ ge ( "ubxMessageRate_RXM_RAWX " ) . value = 1 ;
1099
+ ge ( "ubxMessageRate_RXM_SFRBX " ) . value = 1 ;
1114
1100
}
1115
1101
else if ( platformPrefix == "Torch" ) {
1116
1102
ge ( "messageRateNMEA_GPGGA" ) . value = 0.5 ;
@@ -1129,20 +1115,20 @@ function resetToLoggingDefaults() {
1129
1115
function resetToRTCMDefaults ( ) {
1130
1116
zeroBaseMessages ( ) ;
1131
1117
if ( ( platformPrefix == "EVK" ) || ( platformPrefix == "Facet v2" ) ) {
1132
- ge ( "ubxMessageRateBase_UBX_RTCM_1005 " ) . value = 1 ;
1133
- ge ( "ubxMessageRateBase_UBX_RTCM_1074 " ) . value = 1 ;
1134
- ge ( "ubxMessageRateBase_UBX_RTCM_1077 " ) . value = 0 ;
1135
- ge ( "ubxMessageRateBase_UBX_RTCM_1084 " ) . value = 1 ;
1136
- ge ( "ubxMessageRateBase_UBX_RTCM_1087 " ) . value = 0 ;
1118
+ ge ( "ubxMessageRateBase_RTCM_1005 " ) . value = 1 ;
1119
+ ge ( "ubxMessageRateBase_RTCM_1074 " ) . value = 1 ;
1120
+ ge ( "ubxMessageRateBase_RTCM_1077 " ) . value = 0 ;
1121
+ ge ( "ubxMessageRateBase_RTCM_1084 " ) . value = 1 ;
1122
+ ge ( "ubxMessageRateBase_RTCM_1087 " ) . value = 0 ;
1137
1123
1138
- ge ( "ubxMessageRateBase_UBX_RTCM_1094 " ) . value = 1 ;
1139
- ge ( "ubxMessageRateBase_UBX_RTCM_1097 " ) . value = 0 ;
1140
- ge ( "ubxMessageRateBase_UBX_RTCM_1124 " ) . value = 1 ;
1141
- ge ( "ubxMessageRateBase_UBX_RTCM_1127 " ) . value = 0 ;
1142
- ge ( "ubxMessageRateBase_UBX_RTCM_1230 " ) . value = 10 ;
1124
+ ge ( "ubxMessageRateBase_RTCM_1094 " ) . value = 1 ;
1125
+ ge ( "ubxMessageRateBase_RTCM_1097 " ) . value = 0 ;
1126
+ ge ( "ubxMessageRateBase_RTCM_1124 " ) . value = 1 ;
1127
+ ge ( "ubxMessageRateBase_RTCM_1127 " ) . value = 0 ;
1128
+ ge ( "ubxMessageRateBase_RTCM_1230 " ) . value = 10 ;
1143
1129
1144
- ge ( "ubxMessageRateBase_UBX_RTCM_4072_0 " ) . value = 0 ;
1145
- ge ( "ubxMessageRateBase_UBX_RTCM_4072_1 " ) . value = 0 ;
1130
+ ge ( "ubxMessageRateBase_RTCM_4072_0 " ) . value = 0 ;
1131
+ ge ( "ubxMessageRateBase_RTCM_4072_1 " ) . value = 0 ;
1146
1132
}
1147
1133
else if ( platformPrefix == "Torch" ) {
1148
1134
ge ( "messageRateRTCMBase_RTCM1005" ) . value = 1.0 ;
@@ -1157,20 +1143,20 @@ function resetToRTCMDefaults() {
1157
1143
function resetToRTCMLowBandwidth ( ) {
1158
1144
zeroBaseMessages ( ) ;
1159
1145
if ( ( platformPrefix == "EVK" ) || ( platformPrefix == "Facet v2" ) ) {
1160
- ge ( "ubxMessageRateBase_UBX_RTCM_1005 " ) . value = 10 ;
1161
- ge ( "ubxMessageRateBase_UBX_RTCM_1074 " ) . value = 2 ;
1162
- ge ( "ubxMessageRateBase_UBX_RTCM_1077 " ) . value = 0 ;
1163
- ge ( "ubxMessageRateBase_UBX_RTCM_1084 " ) . value = 2 ;
1164
- ge ( "ubxMessageRateBase_UBX_RTCM_1087 " ) . value = 0 ;
1165
-
1166
- ge ( "ubxMessageRateBase_UBX_RTCM_1094 " ) . value = 2 ;
1167
- ge ( "ubxMessageRateBase_UBX_RTCM_1097 " ) . value = 0 ;
1168
- ge ( "ubxMessageRateBase_UBX_RTCM_1124 " ) . value = 2 ;
1169
- ge ( "ubxMessageRateBase_UBX_RTCM_1127 " ) . value = 0 ;
1170
- ge ( "ubxMessageRateBase_UBX_RTCM_1230 " ) . value = 10 ;
1171
-
1172
- ge ( "ubxMessageRateBase_UBX_RTCM_4072_0 " ) . value = 0 ;
1173
- ge ( "ubxMessageRateBase_UBX_RTCM_4072_1 " ) . value = 0 ;
1146
+ ge ( "ubxMessageRateBase_RTCM_1005 " ) . value = 10 ;
1147
+ ge ( "ubxMessageRateBase_RTCM_1074 " ) . value = 2 ;
1148
+ ge ( "ubxMessageRateBase_RTCM_1077 " ) . value = 0 ;
1149
+ ge ( "ubxMessageRateBase_RTCM_1084 " ) . value = 2 ;
1150
+ ge ( "ubxMessageRateBase_RTCM_1087 " ) . value = 0 ;
1151
+
1152
+ ge ( "ubxMessageRateBase_RTCM_1094 " ) . value = 2 ;
1153
+ ge ( "ubxMessageRateBase_RTCM_1097 " ) . value = 0 ;
1154
+ ge ( "ubxMessageRateBase_RTCM_1124 " ) . value = 2 ;
1155
+ ge ( "ubxMessageRateBase_RTCM_1127 " ) . value = 0 ;
1156
+ ge ( "ubxMessageRateBase_RTCM_1230 " ) . value = 10 ;
1157
+
1158
+ ge ( "ubxMessageRateBase_RTCM_4072_0 " ) . value = 0 ;
1159
+ ge ( "ubxMessageRateBase_RTCM_4072_1 " ) . value = 0 ;
1174
1160
}
1175
1161
else if ( platformPrefix == "Torch" ) {
1176
1162
ge ( "messageRateRTCMBase_RTCM1005" ) . value = 2.0 ;
0 commit comments