Changeset 9210 in ntrip for trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
- Timestamp:
- Nov 3, 2020, 4:26:44 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
r9204 r9210 1047 1047 GETFLOAT(eph._sqrt_A, 32, 1.0 / (double )(1 << 19)) 1048 1048 if (eph._sqrt_A < 1000.0) { 1049 #ifdef BNC_DEBUG_BCEP 1049 1050 emit(newMessage(QString("%1: Block %2 (%3) SQRT_A %4 m!") 1050 1051 .arg(_staID).arg(1020,4).arg(eph._prn.toString().c_str()) 1051 1052 .arg(eph._sqrt_A,10,'F',3).toLatin1(), true)); 1053 #endif 1052 1054 return false; 1053 1055 } … … 1107 1109 GETBITS(eph._almanac_health_availablility_indicator, 1) /* almanac health ok */ 1108 1110 if (eph._almanac_health_availablility_indicator == 0.0) { 1111 #ifdef BNC_DEBUG_BCEP 1109 1112 emit(newMessage(QString("%1: Block %2 (%3): ALM = %4: missing data!") 1110 1113 .arg(_staID).arg(1019,4).arg(eph._prn.toString().c_str()) 1111 1114 .arg(eph._almanac_health_availablility_indicator).toLatin1(), true)); 1115 #endif 1112 1116 return false; 1113 1117 } … … 1148 1152 GETBITS(eph._M_NT, 11) /* GLONASS-M Nt */ 1149 1153 if (eph._M_NT == 0.0) { 1154 #ifdef BNC_DEBUG_BCEP 1150 1155 emit(newMessage(QString("%1: Block %2 (%3): NT = %4: missing data!") 1151 1156 .arg(_staID).arg(1019,4).arg(eph._prn.toString().c_str()).arg(eph._M_NT,4).toLatin1(), true)); 1157 #endif 1152 1158 return false; 1153 1159 } … … 1155 1161 GETBITS(eph._additional_data_availability, 1) /* GLONASS-M The Availability of Additional Data */ 1156 1162 if (eph._additional_data_availability == 0.0) { 1163 #ifdef BNC_DEBUG_BCEP 1157 1164 emit(newMessage(QString("%1: Block %2 (%3): ADD = %4: missing data!") 1158 1165 .arg(_staID).arg(1019,4).arg(eph._prn.toString().c_str()) 1159 1166 .arg(eph._additional_data_availability).toLatin1(), true)); 1167 #endif 1160 1168 return false; 1161 1169 } … … 1175 1183 eph._xv(3) = eph._z_pos * 1.e3; 1176 1184 if (eph._xv.Rows(1,3).NormFrobenius() < 1.0) { 1185 #ifdef BNC_DEBUG_BCEP 1177 1186 emit(newMessage(QString("%1: Block %2 (%3): zero position!") 1178 1187 .arg(_staID).arg(1019,4).arg(eph._prn.toString().c_str()).toLatin1(), true)); 1188 #endif 1179 1189 return false; 1180 1190 } … … 1183 1193 eph._xv(6) = eph._z_velocity * 1.e3; 1184 1194 if (eph._xv.Rows(4,6).NormFrobenius() < 1.0) { 1195 #ifdef BNC_DEBUG_BCEP 1185 1196 emit(newMessage(QString("%1: Block %2 (%3): zero velocity!") 1186 1197 .arg(_staID).arg(1019,4).arg(eph._prn.toString().c_str()).toLatin1(), true)); 1198 #endif 1187 1199 return false; 1188 1200 } … … 1232 1244 GETFLOAT(eph._sqrt_A, 32, 1.0 / (double )(1 << 19)) 1233 1245 if (eph._sqrt_A < 1000.0) { 1246 #ifdef BNC_DEBUG_BCEP 1234 1247 emit(newMessage(QString("%1: Block %2 (%3) SQRT_A %4 m!") 1235 1248 .arg(_staID).arg(1044,4).arg(eph._prn.toString().c_str()) 1236 1249 .arg(eph._sqrt_A,10,'F',3).toLatin1(), true)); 1250 #endif 1237 1251 return false; 1238 1252 } … … 1346 1360 GETFLOAT(eph._sqrt_A, 32, 1.0 / (double )(1 << 19)) 1347 1361 if (eph._sqrt_A < 1000.0) { 1362 #ifdef BNC_DEBUG_BCEP 1348 1363 emit(newMessage(QString("%1: Block %2 (%3) SQRT_A %4 m!") 1349 1364 .arg(_staID).arg(1041,4).arg(eph._prn.toString().c_str()) 1350 1365 .arg(eph._sqrt_A,10,'F',3).toLatin1(), true)); 1366 #endif 1351 1367 return false; 1352 1368 } … … 1395 1411 pos(1) = eph._x_pos; pos(2) = eph._y_pos; pos(3) = eph._z_pos; 1396 1412 if (pos.NormFrobenius() < 1.0) { 1413 #ifdef BNC_DEBUG_BCEP 1397 1414 emit(newMessage(QString("%1: Block %2 (%3): zero position!") 1398 1415 .arg(_staID).arg(1043,4).arg(eph._prn.toString().c_str()).toLatin1(), true)); 1416 #endif 1399 1417 return false; 1400 1418 } … … 1477 1495 GETBITS(eph._e1DataInValid, 1) 1478 1496 if (eph._E5bHS != eph._E1_bHS) { 1497 #ifdef BNC_DEBUG_BCEP 1479 1498 emit(newMessage(QString("%1: Block %2 (%3) SHS E5b %4 E1B %5: inconsistent health!") 1480 1499 .arg(_staID).arg(1046,4).arg(eph._prn.toString().c_str()) 1481 1500 .arg(eph._E5bHS).arg(eph._E1_bHS).toLatin1(), true)); 1501 #endif 1482 1502 return false; 1483 1503 } 1484 1504 if ((eph._BGD_1_5A == 0.0 && fabs(eph._BGD_1_5B) > 1e-9) || 1485 1505 (eph._BGD_1_5B == 0.0 && fabs(eph._BGD_1_5A) > 1e-9)) { 1506 #ifdef BNC_DEBUG_BCEP 1486 1507 emit(newMessage(QString("%1: Block %2 (%3) BGD_15a = %4 BGD_15b = %5: inconsistent BGD!") 1487 1508 .arg(_staID).arg(1046,4).arg(eph._prn.toString().c_str()) 1488 1509 .arg(eph._BGD_1_5A,10,'E',3).arg(eph._BGD_1_5B,10,'E',3).toLatin1(), true)); 1510 #endif 1489 1511 return false; 1490 1512 } … … 1504 1526 1505 1527 if (eph._sqrt_A < 1000.0) { 1528 #ifdef BNC_DEBUG_BCEP 1506 1529 emit(newMessage(QString("%1: Block %2 (%3) SQRT_A %4 m!") 1507 1530 .arg(_staID).arg(eph._inav? 1046 : 1045,4).arg(eph._prn.toString().c_str()) 1508 1531 .arg(eph._sqrt_A,10,'F',3).toLatin1(), true)); 1532 #endif 1509 1533 return false; 1510 1534 } … … 1556 1580 GETFLOAT(eph._sqrt_A, 32, 1.0 / (double )(1 << 19)) 1557 1581 if (eph._sqrt_A < 1000.0) { 1582 #ifdef BNC_DEBUG_BCEP 1558 1583 emit(newMessage(QString("%1: Block %2 (%3) SQRT_A %4 m!") 1559 1584 .arg(_staID).arg(1042,4).arg(eph._prn.toString().c_str()) 1560 1585 .arg(eph._sqrt_A,10,'F',3).toLatin1(), true)); 1586 #endif 1561 1587 return false; 1562 1588 } … … 1728 1754 case 1001: 1729 1755 case 1003: 1730 emit(newMessage( 1731 QString("%1: Block %2 contain partial data! Ignored!") 1732 .arg(_staID).arg(id).toLatin1(), true)); 1756 emit(newMessage(QString("%1: Block %2 contain partial data! Ignored!") 1757 .arg(_staID).arg(id).toLatin1(), true)); 1733 1758 break; /* no use decoding partial data ATM, remove break when data can be used */ 1734 1759 case 1002: … … 1739 1764 case 1009: 1740 1765 case 1011: 1741 emit(newMessage( 1742 QString("%1: Block %2 contain partial data! Ignored!") 1743 .arg(_staID).arg(id).toLatin1(), true)); 1766 emit(newMessage(QString("%1: Block %2 contain partial data! Ignored!") 1767 .arg(_staID).arg(id).toLatin1(), true)); 1744 1768 break; /* no use decoding partial data ATM, remove break when data can be used */ 1745 1769 case 1010:
Note:
See TracChangeset
for help on using the changeset viewer.