Changeset 10549 in ntrip for trunk/BNC/src
- Timestamp:
- Sep 25, 2024, 6:21:29 PM (2 months ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
r10545 r10549 1043 1043 GETBITS(i, 6) 1044 1044 if (i < 1 || i > 63 ) { 1045 #ifdef BNC_DEBUG_BCE P1045 #ifdef BNC_DEBUG_BCE 1046 1046 emit(newMessage(QString("%1: Block %2 (G) PRN# is out of range: %3!") 1047 1047 .arg(_staID) … … 1054 1054 GETBITS(week, 10) 1055 1055 if (week < 0 || week > 1023) { 1056 #ifdef BNC_DEBUG_BCE P1056 #ifdef BNC_DEBUG_BCE 1057 1057 emit(newMessage(QString("%1: Block %2 (%3) WEEK # is out of range: %4!") 1058 1058 .arg(_staID) … … 1071 1071 i <<= 4; 1072 1072 if (i < 0 || i > 604784) { 1073 #ifdef BNC_DEBUG_BCE P1073 #ifdef BNC_DEBUG_BCE 1074 1074 emit(newMessage(QString("%1: Block %2 (%3) TOC is out of range: %4!") 1075 1075 .arg(_staID) … … 1093 1093 GETFLOAT(eph._sqrt_A, 32, 1.0 / (double )(1 << 19)) 1094 1094 if (eph._sqrt_A < 1000.0) { 1095 #ifdef BNC_DEBUG_BCE P1095 #ifdef BNC_DEBUG_BCE 1096 1096 emit(newMessage(QString("%1: Block %2 (%3) SQRT_A %4 m!") 1097 1097 .arg(_staID).arg(1019,4).arg(eph._prn.toString().c_str()) … … 1103 1103 i <<= 4; 1104 1104 if (i < 0 || i > 604784) { 1105 #ifdef BNC_DEBUG_BCE P1105 #ifdef BNC_DEBUG_BCE 1106 1106 emit(newMessage(QString("%1: Block %2 (%3) TOE is out of range: %4!") 1107 1107 .arg(_staID) … … 1163 1163 GETBITS(sv, 6) 1164 1164 if (sv < 1 || sv > 63) { 1165 #ifdef BNC_DEBUG_BCE P1165 #ifdef BNC_DEBUG_BCE 1166 1166 emit(newMessage(QString("%1: Block %2 (R): SLOT# is unknown (0) or out of range: %3!") 1167 1167 .arg(_staID) … … 1175 1175 GETBITS(i, 5) 1176 1176 if (i < 0 || i > 20) { 1177 #ifdef BNC_DEBUG_BCE P1177 #ifdef BNC_DEBUG_BCE 1178 1178 emit(newMessage(QString("%1: Block %2 (%3): FRQ CHN# is out of range: %4") 1179 1179 .arg(_staID) … … 1190 1190 GETBITS(i, 5) 1191 1191 if (i < 0 || i > 23) { 1192 #ifdef BNC_DEBUG_BCE P1192 #ifdef BNC_DEBUG_BCE 1193 1193 emit(newMessage(QString("%1: Block %2 (%3): T_k (bits 11-7) is out of range: %4") 1194 1194 .arg(_staID) … … 1202 1202 GETBITS(i, 6) 1203 1203 if (i < 0 || i > 59) { 1204 #ifdef BNC_DEBUG_BCE P1204 #ifdef BNC_DEBUG_BCE 1205 1205 emit(newMessage(QString("%1: Block %2 (%3): T_k (bits 6-1) is out of range: %4") 1206 1206 .arg(_staID) … … 1214 1214 GETBITS(i, 1) 1215 1215 if (i < 0 || i > 1) { 1216 #ifdef BNC_DEBUG_BCE P1216 #ifdef BNC_DEBUG_BCE 1217 1217 emit(newMessage(QString("%1: Block %2 (%3): T_k (bit 0) is out of range: %4") 1218 1218 .arg(_staID) … … 1233 1233 i *= 15; 1234 1234 if (i < 15 || i > 1425) { 1235 #ifdef BNC_DEBUG_BCE P1235 #ifdef BNC_DEBUG_BCE 1236 1236 emit(newMessage(QString("%1: Block %2 (%3): T_b is out of range: %4") 1237 1237 .arg(_staID) … … 1264 1264 GETBITS(eph._M_NT, 11) /* GLONASS-M Nt */ 1265 1265 if (eph._M_NT == 0.0) { 1266 #ifdef BNC_DEBUG_BCE P1266 #ifdef BNC_DEBUG_BCE 1267 1267 emit(newMessage(QString("%1: Block %2 (%3): NT = %4: missing data!") 1268 1268 .arg(_staID).arg(1020,4).arg(eph._prn.toString().c_str()).arg(eph._M_NT,4).toLatin1(), true)); … … 1273 1273 GETBITS(eph._additional_data_availability, 1) /* GLONASS-M The Availability of Additional Data */ 1274 1274 if (eph._additional_data_availability == 0.0) { 1275 #ifdef BNC_DEBUG_BCE P1275 #ifdef BNC_DEBUG_BCE 1276 1276 emit(newMessage(QString("%1: Block %2 (%3): ADD = %4: missing data!") 1277 1277 .arg(_staID).arg(1020,4).arg(eph._prn.toString().c_str()) … … 1295 1295 eph._xv(3) = eph._z_pos * 1.e3; 1296 1296 if (eph._xv.Rows(1,3).NormFrobenius() < 1.0) { 1297 #ifdef BNC_DEBUG_BCE P1297 #ifdef BNC_DEBUG_BCE 1298 1298 emit(newMessage(QString("%1: Block %2 (%3): zero position!") 1299 1299 .arg(_staID).arg(1020,4).arg(eph._prn.toString().c_str()).toLatin1(), true)); … … 1305 1305 eph._xv(6) = eph._z_velocity * 1.e3; 1306 1306 if (eph._xv.Rows(4,6).NormFrobenius() < 1.0) { 1307 #ifdef BNC_DEBUG_BCE P1307 #ifdef BNC_DEBUG_BCE 1308 1308 emit(newMessage(QString("%1: Block %2 (%3): zero velocity!") 1309 1309 .arg(_staID).arg(1020,4).arg(eph._prn.toString().c_str()).toLatin1(), true)); … … 1342 1342 GETBITS(i, 4) 1343 1343 if (i < 1 || i > 10 ) { 1344 #ifdef BNC_DEBUG_BCE P1344 #ifdef BNC_DEBUG_BCE 1345 1345 emit(newMessage(QString("%1: Block %2 (J) SAT ID is out of range: %3!") 1346 1346 .arg(_staID) … … 1355 1355 i <<= 4; 1356 1356 if (i < 0 || i > 604784) { 1357 #ifdef BNC_DEBUG_BCE P1357 #ifdef BNC_DEBUG_BCE 1358 1358 emit(newMessage(QString("%1: Block %2 (%3) TOC is out of range: %4!") 1359 1359 .arg(_staID) … … 1378 1378 GETFLOAT(eph._sqrt_A, 32, 1.0 / (double )(1 << 19)) 1379 1379 if (eph._sqrt_A < 1000.0) { 1380 #ifdef BNC_DEBUG_BCE P1380 #ifdef BNC_DEBUG_BCE 1381 1381 emit(newMessage(QString("%1: Block %2 (%3) SQRT_A %4 m!") 1382 1382 .arg(_staID).arg(1044,4).arg(eph._prn.toString().c_str()) … … 1388 1388 i <<= 4; 1389 1389 if (i < 0 || i > 604784) { 1390 #ifdef BNC_DEBUG_BCE P1390 #ifdef BNC_DEBUG_BCE 1391 1391 emit(newMessage(QString("%1: Block %2 (%3) TOE is out of range: %4!") 1392 1392 .arg(_staID) … … 1412 1412 GETBITS(week, 10) 1413 1413 if (week < 0 || week > 1023) { 1414 #ifdef BNC_DEBUG_BCE P1414 #ifdef BNC_DEBUG_BCE 1415 1415 emit(newMessage(QString("%1: Block %2 (%3) WEEK # is out of range: %4!") 1416 1416 .arg(_staID) … … 1465 1465 GETBITS(i, 6) 1466 1466 if (i < 1 || i > 63 ) { 1467 #ifdef BNC_DEBUG_BCE P1467 #ifdef BNC_DEBUG_BCE 1468 1468 emit(newMessage(QString("%1: Block %2 (I) PRN# is out of range: %3!") 1469 1469 .arg(_staID) … … 1476 1476 GETBITS(week, 10) 1477 1477 if (week < 0 || week > 1023) { 1478 #ifdef BNC_DEBUG_BCE P1478 #ifdef BNC_DEBUG_BCE 1479 1479 emit(newMessage(QString("%1: Block %2 (%3) WEEK # is out of range: %4!") 1480 1480 .arg(_staID) … … 1493 1493 i <<= 4; 1494 1494 if (i < 0 || i > 1048560) { 1495 #ifdef BNC_DEBUG_BCE P1495 #ifdef BNC_DEBUG_BCE 1496 1496 emit(newMessage(QString("%1: Block %2 (%3) TOC is out of range: %4!") 1497 1497 .arg(_staID) … … 1535 1535 i <<= 4; 1536 1536 if (i < 0 || i > 1048560) { 1537 #ifdef BNC_DEBUG_BCE P1537 #ifdef BNC_DEBUG_BCE 1538 1538 emit(newMessage(QString("%1: Block %2 (%3) TOE is out of range: %4!") 1539 1539 .arg(_staID) … … 1556 1556 GETFLOAT(eph._sqrt_A, 32, 1.0 / (double )(1 << 19)) 1557 1557 if (eph._sqrt_A < 1000.0) { 1558 #ifdef BNC_DEBUG_BCE P1558 #ifdef BNC_DEBUG_BCE 1559 1559 emit(newMessage(QString("%1: Block %2 (%3) SQRT_A %4 m!") 1560 1560 .arg(_staID).arg(1041,4).arg(eph._prn.toString().c_str()) … … 1596 1596 GETBITS(i, 6) 1597 1597 if (i < 40 || i > 58 ) { 1598 #ifdef BNC_DEBUG_BCE P1598 #ifdef BNC_DEBUG_BCE 1599 1599 emit(newMessage(QString("%1: Block %2 (S) PRN# is out of range: %3!") 1600 1600 .arg(_staID) … … 1609 1609 i <<= 4; 1610 1610 if (i < 0 || i > 86384) { 1611 #ifdef BNC_DEBUG_BCE P1611 #ifdef BNC_DEBUG_BCE 1612 1612 emit(newMessage(QString("%1: Block %2 (%3) TOC is out of range: %4!") 1613 1613 .arg(_staID) … … 1627 1627 pos(1) = eph._x_pos; pos(2) = eph._y_pos; pos(3) = eph._z_pos; 1628 1628 if (pos.NormFrobenius() < 1.0) { 1629 #ifdef BNC_DEBUG_BCE P1629 #ifdef BNC_DEBUG_BCE 1630 1630 emit(newMessage(QString("%1: Block %2 (%3): zero position!") 1631 1631 .arg(_staID).arg(1043,4).arg(eph._prn.toString().c_str()).toLatin1(), true)); … … 1673 1673 GETBITS(i, 6) 1674 1674 if (i < 1 || i > 36 ) { // max. constellation within I/NAV / F/NAV frames is 36 1675 #ifdef BNC_DEBUG_BCE P1675 #ifdef BNC_DEBUG_BCE 1676 1676 emit(newMessage(QString("%1: Block %2 (E) PRN# is out of range: %3!") 1677 1677 .arg(_staID) … … 1685 1685 GETBITS(week, 12) //FIXME: roll-over after week 4095!! 1686 1686 if (week < 0 || week > 4095) { 1687 #ifdef BNC_DEBUG_BCE P1687 #ifdef BNC_DEBUG_BCE 1688 1688 emit(newMessage(QString("%1: Block %2 (%3) WEEK # is out of range: %4!") 1689 1689 .arg(_staID) … … 1701 1701 GETBITSFACTOR(i, 14, 60) 1702 1702 if (i < 0 || i > 604740) { 1703 #ifdef BNC_DEBUG_BCE P1703 #ifdef BNC_DEBUG_BCE 1704 1704 emit(newMessage(QString("%1: Block %2 (%3) TOC is out of range: %4!") 1705 1705 .arg(_staID) … … 1723 1723 GETBITSFACTOR(eph._TOEsec, 14, 60) 1724 1724 if (i < 0 || i > 604740) { 1725 #ifdef BNC_DEBUG_BCE P1725 #ifdef BNC_DEBUG_BCE 1726 1726 emit(newMessage(QString("%1: Block %2 (%3) TOE is out of range: %4!") 1727 1727 .arg(_staID) … … 1753 1753 GETBITS(eph._e1DataInValid, 1) 1754 1754 if (eph._E5bHS != eph._E1_bHS) { 1755 #ifdef BNC_DEBUG_BCE P1755 #ifdef BNC_DEBUG_BCE 1756 1756 emit(newMessage(QString("%1: Block %2 (%3) SHS E5b %4 E1B %5: inconsistent health!") 1757 1757 .arg(_staID).arg(1046,4).arg(eph._prn.toString().c_str()) … … 1762 1762 if ((eph._BGD_1_5A == 0.0 && fabs(eph._BGD_1_5B) > 1e-9) || 1763 1763 (eph._BGD_1_5B == 0.0 && fabs(eph._BGD_1_5A) > 1e-9)) { 1764 #ifdef BNC_DEBUG_BCE P1764 #ifdef BNC_DEBUG_BCE 1765 1765 emit(newMessage(QString("%1: Block %2 (%3) BGD_15a = %4 BGD_15b = %5: inconsistent BGD!") 1766 1766 .arg(_staID).arg(1046,4).arg(eph._prn.toString().c_str()) … … 1786 1786 1787 1787 if (eph._sqrt_A < 1000.0) { 1788 #ifdef BNC_DEBUG_BCE P1788 #ifdef BNC_DEBUG_BCE 1789 1789 emit(newMessage(QString("%1: Block %2 (%3) SQRT_A %4 m!") 1790 1790 .arg(_staID).arg(eph._inav? 1046 : 1045,4).arg(eph._prn.toString().c_str()) … … 1820 1820 GETBITS(i, 6) 1821 1821 if (i < 1 || i > 63 ) { 1822 #ifdef BNC_DEBUG_BCE P1822 #ifdef BNC_DEBUG_BCE 1823 1823 emit(newMessage(QString("%1: Block %2 (C) PRN# is out of range: %3!") 1824 1824 .arg(_staID) … … 1832 1832 GETBITS(week, 13) 1833 1833 if (week < 0 || week > 8191) { 1834 #ifdef BNC_DEBUG_BCE P1834 #ifdef BNC_DEBUG_BCE 1835 1835 emit(newMessage(QString("%1: Block %2 (%3) WEEK # is out of range: %4!") 1836 1836 .arg(_staID) … … 1849 1849 i <<= 3; 1850 1850 if (i < 0 || i > 604792) { 1851 #ifdef BNC_DEBUG_BCE P1851 #ifdef BNC_DEBUG_BCE 1852 1852 emit(newMessage(QString("%1: Block %2 (%3) TOC is out of range: %4!") 1853 1853 .arg(_staID) … … 1871 1871 GETFLOAT(eph._sqrt_A, 32, 1.0 / (double )(1 << 19)) 1872 1872 if (eph._sqrt_A < 1000.0) { 1873 #ifdef BNC_DEBUG_BCE P1873 #ifdef BNC_DEBUG_BCE 1874 1874 emit(newMessage(QString("%1: Block %2 (%3) SQRT_A %4 m!") 1875 1875 .arg(_staID).arg(1042,4).arg(eph._prn.toString().c_str()) … … 1881 1881 i <<= 3; 1882 1882 if (i < 0 || i > 604792) { 1883 #ifdef BNC_DEBUG_BCE P1883 #ifdef BNC_DEBUG_BCE 1884 1884 emit(newMessage(QString("%1: Block %2 (%3) TOE is out of range: %4!") 1885 1885 .arg(_staID) -
trunk/BNC/src/bnccore.cpp
r10221 r10549 205 205 QMutexLocker locker(&_mutex); 206 206 t_irc ircPut = _ephUser.putNewEph(eph, true); 207 #ifdef BNC_DEBUG_BCE P207 #ifdef BNC_DEBUG_BCE 208 208 if (eph->checkState() == t_eph::unhealthy) { 209 209 messagePrivate(QString("%1: UNHEALTHY %2:%3") -
trunk/BNC/src/src.pri
r10542 r10549 21 21 debug:DEFINES += SPLITBLOCK 22 22 #debug:DEFINES += BNC_DEBUG_OBS 23 #debug:DEFINES += BNC_DEBUG_BCE P23 #debug:DEFINES += BNC_DEBUG_BCE 24 24 #debug:DEFINES += BNC_DEBUG_PPP 25 25 #debug:DEFINES += BNC_DEBUG_SSR 26 26 #debug:DEFINES += BNC_DEBUG_CMB 27 #debug:DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050F00 27 debug:DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050F00 28 29 !versionAtLeast(QT_VERSION, 5.15.0):error("Use at least Qt version 5.15.0") 28 30 29 31 # Include Path
Note:
See TracChangeset
for help on using the changeset viewer.