Changeset 11185 in ntrip for trunk/BNC/src/combination/bnccomb.cpp
- Timestamp:
- Nov 9, 2026, 12:15:48 PM (12 hours ago)
- File:
-
- 1 edited
-
trunk/BNC/src/combination/bnccomb.cpp (modified) (24 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/combination/bnccomb.cpp
r11158 r11185 209 209 _rtnetDecoder = new bncRtnetDecoder(); 210 210 211 connect(this, SIGNAL(newMessage(QByteArray,bool)), BNC_CORE, SLOT(slotMessage(const QByteArray,bool))); 211 BNC_CORE->connectMessages(this, "cmb"); 212 BNC_CORE->connectLogRecords(this, "cmb"); 212 213 213 214 // Reference signals of the clocks 214 215 for (const QString& err : t_ssrRefSig::init()) { 215 emit new Message(("bncComb: " + err).toLatin1(), true);216 emit newLogRecord(t_logRecord::message(t_logRecord::warning, ("bncComb: " + err).toLatin1()), true); 216 217 } 217 218 if (!t_ssrRefSig::allDefault()) { 218 emit new Message(("bncComb: reference signals of the clocks " + t_ssrRefSig::currentString()).toLatin1(), true);219 emit newLogRecord(t_logRecord::message(t_logRecord::info, ("bncComb: reference signals of the clocks " + t_ssrRefSig::currentString()).toLatin1()), true); 219 220 } 220 221 … … 278 279 _antex = new bncAntex(); 279 280 if (_antex->readFile(antexFileName) != success) { 280 emit new Message("bncComb: wrong ANTEX file", true);281 emit newLogRecord(t_logRecord::message(t_logRecord::warning, "bncComb: wrong ANTEX file"), true); 281 282 delete _antex; 282 283 _antex = 0; 283 284 } 284 285 else { 285 emit new Message("bncComb: " + _antex->info().toLatin1(), true);286 emit newLogRecord(t_logRecord::message(t_logRecord::info, "bncComb: " + _antex->info().toLatin1()), true); 286 287 } 287 288 } … … 302 303 it.value() = false; 303 304 } 304 emit new Message("bncComb: APC and CoM streams configured - combination in the CoM frame, "305 "orbits of the APC streams converted to CoM", true); 305 emit newLogRecord(t_logRecord::message(t_logRecord::info, "bncComb: APC and CoM streams configured - combination in the CoM frame, " 306 "orbits of the APC streams converted to CoM"), true); 306 307 } 307 308 else if (hasAPC && hasCoM) { 308 emit new Message("bncComb: APC and CoM streams configured, but no ANTEX file - only the streams "309 "with the reference point of the master AC are combined", true); 309 emit newLogRecord(t_logRecord::message(t_logRecord::warning, "bncComb: APC and CoM streams configured, but no ANTEX file - only the streams " 310 "with the reference point of the master AC are combined"), true); 310 311 } 311 312 if (!_antex && hasCoM) { 312 emit new Message("bncComb: CoM streams configured, but no ANTEX file - the combined orbits (INTERNAL) "313 "may refer to the CoM, while the PPP assumes the APC", true); 313 emit newLogRecord(t_logRecord::message(t_logRecord::warning, "bncComb: CoM streams configured, but no ANTEX file - the combined orbits (INTERNAL) " 314 "may refer to the CoM, while the PPP assumes the APC"), true); 314 315 } 315 316 … … 322 323 _bsx = new bncBiasSnx(); 323 324 if (_bsx->readFile(bsxFileName) != success) { 324 emit new Message("bncComb: wrong Bias SINEX file", true);325 emit newLogRecord(t_logRecord::message(t_logRecord::warning, "bncComb: wrong Bias SINEX file"), true); 325 326 delete _bsx; 326 327 _bsx = 0; … … 418 419 419 420 if (bsxFileName.isEmpty()) { 420 emit new Message("bncComb: no Bias SINEX file specified", true);421 emit newLogRecord(t_logRecord::message(t_logRecord::info, "bncComb: no Bias SINEX file specified"), true); 421 422 return; 422 423 } … … 425 426 } 426 427 if (_bsx->readFile(bsxFileName) != success) { 427 emit new Message("bncComb: wrong Bias SINEX file", true);428 emit newLogRecord(t_logRecord::message(t_logRecord::warning, "bncComb: wrong Bias SINEX file"), true); 428 429 delete _bsx; 429 430 _bsx = 0; 430 431 } 431 432 else { 432 emit new Message("bncComb: successfully read Bias SINEX file", true);433 emit newLogRecord(t_logRecord::message(t_logRecord::info, "bncComb: successfully read Bias SINEX file"), true); 433 434 } 434 435 … … 638 639 if (!warned.valid() || newClk._time - warned >= 3600.0) { 639 640 warned = newClk._time; 640 emit new Message("bncComb: " + acName.toLatin1() + " " + QByteArray(1, sys) + " not combined: its orbits refer to the " +641 emit newLogRecord(t_logRecord::message(t_logRecord::warning, "bncComb: " + acName.toLatin1() + " " + QByteArray(1, sys) + " not combined: its orbits refer to the " + 641 642 (isAPC ? "APC" : "CoM") + ", those of the master AC " + _masterOrbitAC[sys].toLatin1() + 642 643 " to the " + (isAPC ? "CoM" : "APC") + 643 " (an ANTEX file allows to combine both in the CoM frame)", true); 644 " (an ANTEX file allows to combine both in the CoM frame)"), true); 644 645 } 645 646 continue; … … 651 652 if (fabs(currentTime - newClk._time) > 60.0) { // future or very old data sets 652 653 #ifdef BNC_DEBUG_CMB 653 emit new Message("bncComb: future or very old data sets: " + acName.toLatin1() + " " + newClk._prn.toString().c_str() +654 emit newLogRecord(t_logRecord::debugMessage("cmb", "bncComb: future or very old data sets: " + acName.toLatin1() + " " + newClk._prn.toString().c_str() + 654 655 QString(" %1 ").arg(newClk._time.timestr().c_str()).toLatin1() + "vs. current time" + 655 QString(" %1 ").arg(currentTime.timestr().c_str()).toLatin1(), true); 656 QString(" %1 ").arg(currentTime.timestr().c_str()).toLatin1()), true); 656 657 #endif 657 658 continue; … … 663 664 if (_resTime.valid() && newClk._time <= _resTime) { 664 665 #ifdef BNC_DEBUG_CMB 665 emit new Message("bncComb: old correction: " + acName.toLatin1() + " " + newClk._prn.toString().c_str() +666 emit newLogRecord(t_logRecord::debugMessage("cmb", "bncComb: old correction: " + acName.toLatin1() + " " + newClk._prn.toString().c_str() + 666 667 QString(" %1 ").arg(newClk._time.timestr().c_str()).toLatin1() + "vs. last processing Epoch" + 667 QString(" %1 ").arg(_resTime.timestr().c_str()).toLatin1(), true); 668 QString(" %1 ").arg(_resTime.timestr().c_str()).toLatin1()), true); 668 669 #endif 669 670 continue; … … 780 781 + QString(" %1 -> %2 %3").arg(corr->_iod,3).arg(lastEph->IOD(),3).arg(dC*t_CST::c, 8, 'f', 4); 781 782 782 emit new Message(msg.toLatin1(), false);783 emit newLogRecord(t_logRecord::message(t_logRecord::info, msg.toLatin1()), false); 783 784 784 785 corr->_iod = lastEph->IOD(); … … 800 801 QString msg = _antexReloader.update(_antex, epoTime); 801 802 if (!msg.isEmpty()) { 802 emit new Message(("bncComb: " + msg).toLatin1(), true);803 emit newLogRecord(t_logRecord::message(t_logRecord::info, ("bncComb: " + msg).toLatin1()), true); 803 804 } 804 805 } … … 860 861 if (ephLast == 0) { 861 862 #ifdef BNC_DEBUG_CMB 862 emit new Message("bncComb: eph not found for " + prnStr.mid(0,3).toLatin1(), true);863 emit newLogRecord(t_logRecord::debugMessage("cmb", "bncComb: eph not found for " + prnStr.mid(0,3).toLatin1()), true); 863 864 #endif 864 865 delete _newCorr; _newCorr = 0; … … 870 871 ephLast->checkState() == t_eph::unhealthy) { 871 872 #ifdef BNC_DEBUG_CMB 872 emit new Message("bncComb: ephLast not ok (checkState: " + ephLast->checkStateToString().toLatin1() + ") for " + prnStr.mid(0,3).toLatin1(), true);873 emit newLogRecord(t_logRecord::debugMessage("cmb", "bncComb: ephLast not ok (checkState: " + ephLast->checkStateToString().toLatin1() + ") for " + prnStr.mid(0,3).toLatin1()), true); 873 874 #endif 874 875 delete _newCorr; _newCorr = 0; … … 888 889 else { 889 890 #ifdef BNC_DEBUG_CMB 890 emit new Message("bncComb: eph not found for " + prnStr.mid(0,3).toLatin1() +891 QString(" with IOD %1").arg(_newCorr->_iod).toLatin1(), true); 891 emit newLogRecord(t_logRecord::debugMessage("cmb", "bncComb: eph not found for " + prnStr.mid(0,3).toLatin1() + 892 QString(" with IOD %1").arg(_newCorr->_iod).toLatin1()), true); 892 893 #endif 893 894 delete _newCorr; _newCorr = 0; … … 955 956 } 956 957 } 957 emit new Message("bncComb: " + acName.toLatin1() + " provides no code biases for the " +958 emit newLogRecord(t_logRecord::message(t_logRecord::warning, "bncComb: " + acName.toLatin1() + " provides no code biases for the " + 958 959 QByteArray(1, sys) + " reference signal(s)" + missing.toLatin1() + 959 960 " (e.g. " + prnStr.mid(0,3).toLatin1() + ") - these clocks are combined" 960 961 " without referring them to the reference signals and, as long as other ACs" 961 " provide referred clocks, excluded from the clock datum", false); 962 " provide referred clocks, excluded from the clock datum"), false); 962 963 } 963 964 } … … 1112 1113 out << "Missing Master, Epoch skipped" << "\n"; 1113 1114 _buffer.remove(sys); 1114 emit new Message(_log, false);1115 emit newLogRecord(t_logRecord::message(t_logRecord::info, _log), false); 1115 1116 return; 1116 1117 } … … 1411 1412 out << epoTime.datestr().c_str() << " " << epoTime.timestr().c_str() 1412 1413 << " " << msg << "\n"; 1413 emit new Message("bncComb: " + msg.toLatin1(), true);1414 emit newLogRecord(t_logRecord::message(t_logRecord::info, "bncComb: " + msg.toLatin1()), true); 1414 1415 resetSatOffsets(sys); 1415 1416 } … … 1440 1441 if (!warned.valid() || epoTime - warned >= 3600.0) { 1441 1442 warned = epoTime; 1442 emit new Message("bncComb: " + msg.toLatin1(), true);1443 emit newLogRecord(t_logRecord::message(t_logRecord::warning, "bncComb: " + msg.toLatin1()), true); 1443 1444 } 1444 1445 } … … 1471 1472 &corr->_attYaw) != success) { 1472 1473 if (_antex->warnNoSatEntry(corr->_prn, corr->_time)) { 1473 emit new Message("bncComb: no satellite antenna entry valid at " +1474 emit newLogRecord(t_logRecord::message(t_logRecord::warning, "bncComb: no satellite antenna entry valid at " + 1474 1475 QByteArray(corr->_time.datestr().c_str()) + " " + QByteArray(corr->_time.timestr().c_str()) + 1475 1476 " for " + corr->_prn.mid(0,3).toLatin1() + 1476 " in ANTEX file - APC orbit of " + AC->name.toLatin1() + " not converted to CoM, not combined", true); 1477 " in ANTEX file - APC orbit of " + AC->name.toLatin1() + " not converted to CoM, not combined"), true); 1477 1478 } 1478 1479 return failure; … … 1549 1550 .arg(stat.numEpo).arg(median, 0, 'f', 2); 1550 1551 out << epoTime.datestr().c_str() << " " << epoTime.timestr().c_str() << " " << msg << "\n"; 1551 emit new Message("bncComb: " + msg.toLatin1(), true);1552 emit newLogRecord(t_logRecord::message(t_logRecord::warning, "bncComb: " + msg.toLatin1()), true); 1552 1553 } 1553 1554 _outlierStat[sys].clear(); … … 1634 1635 double age = epoTime - corr->_eph->TOC(); 1635 1636 if (fabs(age) > 960.0) { 1636 emit new Message(QString().asprintf(1637 emit newLogRecord(t_logRecord::message(t_logRecord::warning, QString().asprintf( 1637 1638 "bncComb: skip %s, GLONASS eph age %.0fs", 1638 corr->_prn.mid(0,3).toLatin1().data(), age).toLatin1(), false); 1639 corr->_prn.mid(0,3).toLatin1().data(), age).toLatin1()), false); 1639 1640 delete corr; 1640 1641 it.remove(); … … 1700 1701 // converted between antenna phase center and center of mass 1701 1702 if (_antex->warnNoSatEntry(corr->_prn, epoTime)) { 1702 emit new Message("bncComb: no satellite antenna entry valid at " +1703 emit newLogRecord(t_logRecord::message(t_logRecord::warning, "bncComb: no satellite antenna entry valid at " + 1703 1704 QByteArray(epoTime.datestr().c_str()) + " " + QByteArray(epoTime.timestr().c_str()) + 1704 1705 " for " + corr->_prn.mid(0,3).toLatin1() + 1705 " in ANTEX file - ANTEX file outdated? Satellite not combined", true); 1706 " in ANTEX file - ANTEX file outdated? Satellite not combined"), true); 1706 1707 } 1707 1708 orbCorrections.pop_back(); … … 1717 1718 for (const QString& line : yawLogs) { 1718 1719 if (!line.contains(":att:")) { 1719 emit new Message(("bncComb: " + line.trimmed()).toLatin1(), false);1720 emit newLogRecord(t_logRecord::message(t_logRecord::info, ("bncComb: " + line.trimmed()).toLatin1()), false); 1720 1721 } 1721 1722 } … … 2318 2319 if (!warned.valid() || epoTime - warned >= 3600.0) { 2319 2320 warned = epoTime; 2320 emit new Message("bncComb: " + QByteArray(1, sys) + " " + msg.toLatin1(), false);2321 emit newLogRecord(t_logRecord::message(t_logRecord::warning, "bncComb: " + QByteArray(1, sys) + " " + msg.toLatin1()), false); 2321 2322 } 2322 2323 }
Note:
See TracChangeset
for help on using the changeset viewer.
