Changeset 11185 in ntrip for trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
- Timestamp:
- Nov 9, 2026, 12:15:48 PM (12 hours ago)
- File:
-
- 1 edited
-
trunk/BNC/src/RTCM3/RTCM3Decoder.cpp (modified) (45 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
r11141 r11185 916 916 else if ((type % 10) < 4) { 917 917 #ifdef BNC_DEBUG_OBS 918 emit(new Message(QString("%1: Block %2 contain partial data! Ignored!")919 .arg(_staID).arg(type).toLatin1(), true)); 918 emit(newLogRecord(t_logRecord::debugMessage("obs", QString("%1: Block %2 contain partial data! Ignored!") 919 .arg(_staID).arg(type).toLatin1()), true)); 920 920 #endif 921 921 } … … 1077 1077 if (i < 1 || i > 63 ) { 1078 1078 #ifdef BNC_DEBUG_BCE 1079 emit(new Message(QString("%1: Block %2 (G) PRN# is out of range: %3!")1079 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (G) PRN# is out of range: %3!") 1080 1080 .arg(_staID) 1081 1081 .arg(1019,4) 1082 .arg(i).toLatin1(), true)); 1082 .arg(i).toLatin1()), true)); 1083 1083 #endif 1084 1084 return false; … … 1089 1089 if (week < 0 || week > 1023) { 1090 1090 #ifdef BNC_DEBUG_BCE 1091 emit(new Message(QString("%1: Block %2 (%3) WEEK # is out of range: %4!")1091 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) WEEK # is out of range: %4!") 1092 1092 .arg(_staID) 1093 1093 .arg(1019,4) 1094 1094 .arg(eph._prn.toString().c_str()) 1095 .arg(week).toLatin1(), true)); 1095 .arg(week).toLatin1()), true)); 1096 1096 #endif 1097 1097 return false; … … 1106 1106 if (i < 0 || i > 604784) { 1107 1107 #ifdef BNC_DEBUG_BCE 1108 emit(new Message(QString("%1: Block %2 (%3) TOC is out of range: %4!")1108 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) TOC is out of range: %4!") 1109 1109 .arg(_staID) 1110 1110 .arg(1019,4) 1111 1111 .arg(eph._prn.toString().c_str()) 1112 .arg(i).toLatin1(), true)); 1112 .arg(i).toLatin1()), true)); 1113 1113 #endif 1114 1114 return false; … … 1128 1128 if (eph._sqrt_A < 1000.0) { 1129 1129 #ifdef BNC_DEBUG_BCE 1130 emit(new Message(QString("%1: Block %2 (%3) SQRT_A %4 m!")1130 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) SQRT_A %4 m!") 1131 1131 .arg(_staID).arg(1019,4).arg(eph._prn.toString().c_str()) 1132 .arg(eph._sqrt_A,10,'F',3).toLatin1(), true)); 1132 .arg(eph._sqrt_A,10,'F',3).toLatin1()), true)); 1133 1133 #endif 1134 1134 return false; … … 1138 1138 if (i < 0 || i > 604784) { 1139 1139 #ifdef BNC_DEBUG_BCE 1140 emit(new Message(QString("%1: Block %2 (%3) TOE is out of range: %4!")1140 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) TOE is out of range: %4!") 1141 1141 .arg(_staID) 1142 1142 .arg(1019,4) 1143 1143 .arg(eph._prn.toString().c_str()) 1144 .arg(i).toLatin1(), true)); 1144 .arg(i).toLatin1()), true)); 1145 1145 #endif 1146 1146 return false; … … 1197 1197 if (sv < 1 || sv > 63) { 1198 1198 #ifdef BNC_DEBUG_BCE 1199 emit(new Message(QString("%1: Block %2 (R): SLOT# is unknown (0) or out of range: %3!")1199 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (R): SLOT# is unknown (0) or out of range: %3!") 1200 1200 .arg(_staID) 1201 1201 .arg(1020,4) 1202 .arg(sv).toLatin1(), true)); 1202 .arg(sv).toLatin1()), true)); 1203 1203 #endif 1204 1204 return false; … … 1210 1210 if (i < 0 || i > 20) { 1211 1211 #ifdef BNC_DEBUG_BCE 1212 emit(new Message(QString("%1: Block %2 (%3): FRQ CHN# is out of range: %4")1212 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3): FRQ CHN# is out of range: %4") 1213 1213 .arg(_staID) 1214 1214 .arg(1020,4) 1215 1215 .arg(eph._prn.toString().c_str()) 1216 .arg(i).toLatin1(), true)); 1216 .arg(i).toLatin1()), true)); 1217 1217 #endif 1218 1218 return false; … … 1226 1226 if (i < 0 || i > 23) { 1227 1227 #ifdef BNC_DEBUG_BCE 1228 emit(new Message(QString("%1: Block %2 (%3): T_k (bits 11-7) is out of range: %4")1228 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3): T_k (bits 11-7) is out of range: %4") 1229 1229 .arg(_staID) 1230 1230 .arg(1020,4) 1231 1231 .arg(eph._prn.toString().c_str()) 1232 .arg(i).toLatin1(), true)); 1232 .arg(i).toLatin1()), true)); 1233 1233 #endif 1234 1234 return false; … … 1238 1238 if (i < 0 || i > 59) { 1239 1239 #ifdef BNC_DEBUG_BCE 1240 emit(new Message(QString("%1: Block %2 (%3): T_k (bits 6-1) is out of range: %4")1240 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3): T_k (bits 6-1) is out of range: %4") 1241 1241 .arg(_staID) 1242 1242 .arg(1020,4) 1243 1243 .arg(eph._prn.toString().c_str()) 1244 .arg(i).toLatin1(), true)); 1244 .arg(i).toLatin1()), true)); 1245 1245 #endif 1246 1246 return false; … … 1250 1250 if (i < 0 || i > 1) { 1251 1251 #ifdef BNC_DEBUG_BCE 1252 emit(new Message(QString("%1: Block %2 (%3): T_k (bit 0) is out of range: %4")1252 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3): T_k (bit 0) is out of range: %4") 1253 1253 .arg(_staID) 1254 1254 .arg(1020,4) 1255 1255 .arg(eph._prn.toString().c_str()) 1256 .arg(i).toLatin1(), true)); 1256 .arg(i).toLatin1()), true)); 1257 1257 #endif 1258 1258 return false; … … 1269 1269 if (i < 15 || i > 1425) { 1270 1270 #ifdef BNC_DEBUG_BCE 1271 emit(new Message(QString("%1: Block %2 (%3): T_b is out of range: %4")1271 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3): T_b is out of range: %4") 1272 1272 .arg(_staID) 1273 1273 .arg(1020,4) 1274 1274 .arg(eph._prn.toString().c_str()) 1275 .arg(i).toLatin1(), true)); 1275 .arg(i).toLatin1()), true)); 1276 1276 #endif 1277 1277 return false; … … 1300 1300 if (eph._M_NT == 0.0) { 1301 1301 #ifdef BNC_DEBUG_BCE 1302 emit(new Message(QString("%1: Block %2 (%3): NT = %4: missing data!")1303 .arg(_staID).arg(1020,4).arg(eph._prn.toString().c_str()).arg(eph._M_NT,4).toLatin1(), true)); 1302 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3): NT = %4: missing data!") 1303 .arg(_staID).arg(1020,4).arg(eph._prn.toString().c_str()).arg(eph._M_NT,4).toLatin1()), true)); 1304 1304 #endif 1305 1305 return false; … … 1309 1309 if (eph._additional_data_availability == 0.0) { 1310 1310 #ifdef BNC_DEBUG_BCE 1311 emit(new Message(QString("%1: Block %2 (%3): ADD = %4: missing data!")1311 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3): ADD = %4: missing data!") 1312 1312 .arg(_staID).arg(1020,4).arg(eph._prn.toString().c_str()) 1313 .arg(eph._additional_data_availability).toLatin1(), true)); 1313 .arg(eph._additional_data_availability).toLatin1()), true)); 1314 1314 #endif 1315 1315 return false; … … 1331 1331 if (eph._xv.Rows(1,3).NormFrobenius() < 1.0) { 1332 1332 #ifdef BNC_DEBUG_BCE 1333 emit(new Message(QString("%1: Block %2 (%3): zero position!")1334 .arg(_staID).arg(1020,4).arg(eph._prn.toString().c_str()).toLatin1(), true)); 1333 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3): zero position!") 1334 .arg(_staID).arg(1020,4).arg(eph._prn.toString().c_str()).toLatin1()), true)); 1335 1335 #endif 1336 1336 return false; … … 1341 1341 if (eph._xv.Rows(4,6).NormFrobenius() < 1.0) { 1342 1342 #ifdef BNC_DEBUG_BCE 1343 emit(new Message(QString("%1: Block %2 (%3): zero velocity!")1344 .arg(_staID).arg(1020,4).arg(eph._prn.toString().c_str()).toLatin1(), true)); 1343 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3): zero velocity!") 1344 .arg(_staID).arg(1020,4).arg(eph._prn.toString().c_str()).toLatin1()), true)); 1345 1345 #endif 1346 1346 return false; … … 1386 1386 if (i < 1 || i > 10 ) { 1387 1387 #ifdef BNC_DEBUG_BCE 1388 emit(new Message(QString("%1: Block %2 (J) SAT ID is out of range: %3!")1388 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (J) SAT ID is out of range: %3!") 1389 1389 .arg(_staID) 1390 1390 .arg(1044,4) 1391 .arg(i).toLatin1(), true)); 1391 .arg(i).toLatin1()), true)); 1392 1392 #endif 1393 1393 return false; … … 1400 1400 if (i < 0 || i > 604784) { 1401 1401 #ifdef BNC_DEBUG_BCE 1402 emit(new Message(QString("%1: Block %2 (%3) TOC is out of range: %4!")1402 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) TOC is out of range: %4!") 1403 1403 .arg(_staID) 1404 1404 .arg(1044,4) 1405 1405 .arg(eph._prn.toString().c_str()) 1406 .arg(i).toLatin1(), true)); 1406 .arg(i).toLatin1()), true)); 1407 1407 #endif 1408 1408 return false; … … 1423 1423 if (eph._sqrt_A < 1000.0) { 1424 1424 #ifdef BNC_DEBUG_BCE 1425 emit(new Message(QString("%1: Block %2 (%3) SQRT_A %4 m!")1425 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) SQRT_A %4 m!") 1426 1426 .arg(_staID).arg(1044,4).arg(eph._prn.toString().c_str()) 1427 .arg(eph._sqrt_A,10,'F',3).toLatin1(), true)); 1427 .arg(eph._sqrt_A,10,'F',3).toLatin1()), true)); 1428 1428 #endif 1429 1429 return false; … … 1433 1433 if (i < 0 || i > 604784) { 1434 1434 #ifdef BNC_DEBUG_BCE 1435 emit(new Message(QString("%1: Block %2 (%3) TOE is out of range: %4!")1435 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) TOE is out of range: %4!") 1436 1436 .arg(_staID) 1437 1437 .arg(1044,4) 1438 1438 .arg(eph._prn.toString().c_str()) 1439 .arg(i).toLatin1(), true)); 1439 .arg(i).toLatin1()), true)); 1440 1440 #endif 1441 1441 return false; … … 1457 1457 if (week < 0 || week > 1023) { 1458 1458 #ifdef BNC_DEBUG_BCE 1459 emit(new Message(QString("%1: Block %2 (%3) WEEK # is out of range: %4!")1459 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) WEEK # is out of range: %4!") 1460 1460 .arg(_staID) 1461 1461 .arg(1044,4) 1462 1462 .arg(eph._prn.toString().c_str()) 1463 .arg(week).toLatin1(), true)); 1463 .arg(week).toLatin1()), true)); 1464 1464 #endif 1465 1465 return false; … … 1507 1507 if (i < 1 || i > 63 ) { 1508 1508 #ifdef BNC_DEBUG_BCE 1509 emit(new Message(QString("%1: Block %2 (I) PRN# is out of range: %3!")1509 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (I) PRN# is out of range: %3!") 1510 1510 .arg(_staID) 1511 1511 .arg(1041,4) 1512 .arg(i).toLatin1(), true)); 1512 .arg(i).toLatin1()), true)); 1513 1513 #endif 1514 1514 return false; … … 1519 1519 if (week < 0 || week > 1023) { 1520 1520 #ifdef BNC_DEBUG_BCE 1521 emit(new Message(QString("%1: Block %2 (%3) WEEK # is out of range: %4!")1521 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) WEEK # is out of range: %4!") 1522 1522 .arg(_staID) 1523 1523 .arg(1041,4) 1524 1524 .arg(eph._prn.toString().c_str()) 1525 .arg(week).toLatin1(), true)); 1525 .arg(week).toLatin1()), true)); 1526 1526 #endif 1527 1527 return false; … … 1536 1536 if (i < 0 || i > 1048560) { 1537 1537 #ifdef BNC_DEBUG_BCE 1538 emit(new Message(QString("%1: Block %2 (%3) TOC is out of range: %4!")1538 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) TOC is out of range: %4!") 1539 1539 .arg(_staID) 1540 1540 .arg(1041,4) 1541 1541 .arg(eph._prn.toString().c_str()) 1542 .arg(i).toLatin1(), true)); 1542 .arg(i).toLatin1()), true)); 1543 1543 #endif 1544 1544 return false; … … 1577 1577 if (i < 0 || i > 1048560) { 1578 1578 #ifdef BNC_DEBUG_BCE 1579 emit(new Message(QString("%1: Block %2 (%3) TOE is out of range: %4!")1579 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) TOE is out of range: %4!") 1580 1580 .arg(_staID) 1581 1581 .arg(1041,4) 1582 1582 .arg(eph._prn.toString().c_str()) 1583 .arg(i).toLatin1(), true)); 1583 .arg(i).toLatin1()), true)); 1584 1584 #endif 1585 1585 return false; … … 1598 1598 if (eph._sqrt_A < 1000.0) { 1599 1599 #ifdef BNC_DEBUG_BCE 1600 emit(new Message(QString("%1: Block %2 (%3) SQRT_A %4 m!")1600 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) SQRT_A %4 m!") 1601 1601 .arg(_staID).arg(1041,4).arg(eph._prn.toString().c_str()) 1602 .arg(eph._sqrt_A,10,'F',3).toLatin1(), true)); 1602 .arg(eph._sqrt_A,10,'F',3).toLatin1()), true)); 1603 1603 #endif 1604 1604 return false; … … 1642 1642 if (i < 0 || i > 38 ) { 1643 1643 #ifdef BNC_DEBUG_BCE 1644 emit(new Message(QString("%1: Block %2 (S) PRN# is out of range: %3!")1644 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (S) PRN# is out of range: %3!") 1645 1645 .arg(_staID) 1646 1646 .arg(1043,4) 1647 .arg(i).toLatin1(), true)); 1647 .arg(i).toLatin1()), true)); 1648 1648 #endif 1649 1649 return false; … … 1656 1656 if (i < 0 || i > 86384) { 1657 1657 #ifdef BNC_DEBUG_BCE 1658 emit(new Message(QString("%1: Block %2 (%3) TOC is out of range: %4!")1658 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) TOC is out of range: %4!") 1659 1659 .arg(_staID) 1660 1660 .arg(1043,4) 1661 1661 .arg(eph._prn.toString().c_str()) 1662 .arg(i).toLatin1(), true)); 1662 .arg(i).toLatin1()), true)); 1663 1663 #endif 1664 1664 return false; … … 1685 1685 if (pos.NormFrobenius() < 1.0) { 1686 1686 #ifdef BNC_DEBUG_BCE 1687 emit(new Message(QString("%1: Block %2 (%3): zero position!")1688 .arg(_staID).arg(1043,4).arg(eph._prn.toString().c_str()).toLatin1(), true)); 1687 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3): zero position!") 1688 .arg(_staID).arg(1043,4).arg(eph._prn.toString().c_str()).toLatin1()), true)); 1689 1689 #endif 1690 1690 return false; … … 1720 1720 size -= 6; /* header + crc */ 1721 1721 GETBITS(i, 12) 1722 #ifdef BNC_DEBUG_BCE 1723 const int mnum = i; // message number for the debug messages 1724 #endif 1722 1725 1723 1726 if ((i == 1046 && size == 61) || … … 1732 1735 if (i < 1 || i > 36 ) { // max. constellation within I/NAV / F/NAV frames is 36 1733 1736 #ifdef BNC_DEBUG_BCE 1734 emit(new Message(QString("%1: Block %2 (E) PRN# is out of range: %3!")1737 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (E) PRN# is out of range: %3!") 1735 1738 .arg(_staID) 1736 1739 .arg(mnum,4) 1737 .arg(i).toLatin1(), true)); 1740 .arg(i).toLatin1()), true)); 1738 1741 #endif 1739 1742 return false; … … 1745 1748 if (week < 0 || week > 4095) { 1746 1749 #ifdef BNC_DEBUG_BCE 1747 emit(new Message(QString("%1: Block %2 (%3) WEEK # is out of range: %4!")1750 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) WEEK # is out of range: %4!") 1748 1751 .arg(_staID) 1749 1752 .arg(mnum,4) 1750 1753 .arg(eph._prn.toString().c_str()) 1751 .arg(week).toLatin1(), true)); 1754 .arg(week).toLatin1()), true)); 1752 1755 #endif 1753 1756 return false; … … 1767 1770 if (i < 0 || i > 604740) { 1768 1771 #ifdef BNC_DEBUG_BCE 1769 emit(new Message(QString("%1: Block %2 (%3) TOC is out of range: %4!")1772 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) TOC is out of range: %4!") 1770 1773 .arg(_staID) 1771 1774 .arg(mnum,4) 1772 1775 .arg(eph._prn.toString().c_str()) 1773 .arg(i).toLatin1(), true)); 1776 .arg(i).toLatin1()), true)); 1774 1777 #endif 1775 1778 return false; … … 1789 1792 if (i < 0 || i > 604740) { 1790 1793 #ifdef BNC_DEBUG_BCE 1791 emit(new Message(QString("%1: Block %2 (%3) TOE is out of range: %4!")1794 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) TOE is out of range: %4!") 1792 1795 .arg(_staID) 1793 1796 .arg(mnum,4) 1794 1797 .arg(eph._prn.toString().c_str()) 1795 .arg(i).toLatin1(), true)); 1798 .arg(i).toLatin1()), true)); 1796 1799 #endif 1797 1800 return false; … … 1820 1823 if (eph._E5b_HS != eph._E1B_HS) { 1821 1824 #ifdef BNC_DEBUG_BCE 1822 emit(new Message(QString("%1: Block %2 (%3) SHS E5b %4 E1B %5: inconsistent health!")1825 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) SHS E5b %4 E1B %5: inconsistent health!") 1823 1826 .arg(_staID).arg(1046,4).arg(eph._prn.toString().c_str()) 1824 .arg(eph._E5b_HS).arg(eph._E1B_HS).toLatin1(), true)); 1827 .arg(eph._E5b_HS).arg(eph._E1B_HS).toLatin1()), true)); 1825 1828 #endif 1826 1829 return false; … … 1829 1832 (eph._BGD_1_5B == 0.0 && fabs(eph._BGD_1_5A) > 1e-9)) { 1830 1833 #ifdef BNC_DEBUG_BCE 1831 emit(new Message(QString("%1: Block %2 (%3) BGD_1_5a = %4 BGD_1_5b = %5: inconsistent BGD!")1834 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) BGD_1_5a = %4 BGD_1_5b = %5: inconsistent BGD!") 1832 1835 .arg(_staID).arg(1046,4).arg(eph._prn.toString().c_str()) 1833 .arg(eph._BGD_1_5A,10,'E',3).arg(eph._BGD_1_5B,10,'E',3).toLatin1(), true)); 1836 .arg(eph._BGD_1_5A,10,'E',3).arg(eph._BGD_1_5B,10,'E',3).toLatin1()), true)); 1834 1837 #endif 1835 1838 return false; … … 1852 1855 if (eph._sqrt_A < 1000.0) { 1853 1856 #ifdef BNC_DEBUG_BCE 1854 emit(new Message(QString("%1: Block %2 (%3) SQRT_A %4 m!")1857 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) SQRT_A %4 m!") 1855 1858 .arg(_staID).arg(eph._inav? 1046 : 1045,4).arg(eph._prn.toString().c_str()) 1856 .arg(eph._sqrt_A,10,'F',3).toLatin1(), true)); 1859 .arg(eph._sqrt_A,10,'F',3).toLatin1()), true)); 1857 1860 #endif 1858 1861 return false; … … 1886 1889 if (i < 1 || i > 63 ) { 1887 1890 #ifdef BNC_DEBUG_BCE 1888 emit(new Message(QString("%1: Block %2 (C) PRN# is out of range: %3!")1891 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (C) PRN# is out of range: %3!") 1889 1892 .arg(_staID) 1890 1893 .arg(1042,4) 1891 .arg(i).toLatin1(), true)); 1894 .arg(i).toLatin1()), true)); 1892 1895 #endif 1893 1896 return false; … … 1899 1902 if (week < 0 || week > 8191) { 1900 1903 #ifdef BNC_DEBUG_BCE 1901 emit(new Message(QString("%1: Block %2 (%3) WEEK # is out of range: %4!")1904 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) WEEK # is out of range: %4!") 1902 1905 .arg(_staID) 1903 1906 .arg(1042,4) 1904 1907 .arg(eph._prn.toString().c_str()) 1905 .arg(week).toLatin1(), true)); 1908 .arg(week).toLatin1()), true)); 1906 1909 #endif 1907 1910 return false; … … 1922 1925 if (i < 0 || i > 604792) { 1923 1926 #ifdef BNC_DEBUG_BCE 1924 emit(new Message(QString("%1: Block %2 (%3) TOC is out of range: %4!")1927 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) TOC is out of range: %4!") 1925 1928 .arg(_staID) 1926 1929 .arg(1042,4) 1927 1930 .arg(eph._prn.toString().c_str()) 1928 .arg(i).toLatin1(), true)); 1931 .arg(i).toLatin1()), true)); 1929 1932 #endif 1930 1933 return false; … … 1944 1947 if (eph._sqrt_A < 1000.0) { 1945 1948 #ifdef BNC_DEBUG_BCE 1946 emit(new Message(QString("%1: Block %2 (%3) SQRT_A %4 m!")1949 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) SQRT_A %4 m!") 1947 1950 .arg(_staID).arg(1042,4).arg(eph._prn.toString().c_str()) 1948 .arg(eph._sqrt_A,10,'F',3).toLatin1(), true)); 1951 .arg(eph._sqrt_A,10,'F',3).toLatin1()), true)); 1949 1952 #endif 1950 1953 return false; … … 1954 1957 if (i < 0 || i > 604792) { 1955 1958 #ifdef BNC_DEBUG_BCE 1956 emit(new Message(QString("%1: Block %2 (%3) TOE is out of range: %4!")1959 emit(newLogRecord(t_logRecord::debugMessage("bce", QString("%1: Block %2 (%3) TOE is out of range: %4!") 1957 1960 .arg(_staID) 1958 1961 .arg(1042,4) 1959 1962 .arg(eph._prn.toString().c_str()) 1960 .arg(i).toLatin1(), true)); 1963 .arg(i).toLatin1()), true)); 1961 1964 #endif 1962 1965 return false; … … 2329 2332 case 1003: 2330 2333 #ifdef BNC_DEBUG_OBS 2331 emit(new Message(QString("%1: Block %2 contain partial data! Ignored!")2332 .arg(_staID).arg(id).toLatin1(), true)); 2334 emit(newLogRecord(t_logRecord::debugMessage("obs", QString("%1: Block %2 contain partial data! Ignored!") 2335 .arg(_staID).arg(id).toLatin1()), true)); 2333 2336 #endif 2334 2337 break; /* no use decoding partial data ATM, remove break when data can be used */ … … 2341 2344 case 1011: 2342 2345 #ifdef BNC_DEBUG_OBS 2343 emit(new Message(QString("%1: Block %2 contain partial data! Ignored!")2344 .arg(_staID).arg(id).toLatin1(), true)); 2346 emit(newLogRecord(t_logRecord::debugMessage("obs", QString("%1: Block %2 contain partial data! Ignored!") 2347 .arg(_staID).arg(id).toLatin1()), true)); 2345 2348 #endif 2346 2349 break; /* no use decoding partial data ATM, remove break when data can be used */ … … 2491 2494 if (!_prnOutOfRangeLogged.contains(prnStr)) { 2492 2495 _prnOutOfRangeLogged.insert(prnStr); 2493 emit new Message(QString("%1: satellite %2 outside the range supported by BNC - not usable for processing")2494 .arg(_staID).arg(prnStr).toLatin1(), true); 2496 emit newLogRecord(t_logRecord::message(t_logRecord::warning, QString("%1: satellite %2 outside the range supported by BNC - not usable for processing") 2497 .arg(_staID).arg(prnStr).toLatin1()), true); 2495 2498 } 2496 2499 }
Note:
See TracChangeset
for help on using the changeset viewer.
