Changeset 10479 in ntrip for trunk/BNC/src/combination/bnccomb.cpp
- Timestamp:
- May 7, 2024, 10:36:55 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/combination/bnccomb.cpp
r10477 r10479 313 313 } 314 314 315 // Logfile 316 // ------- 317 QString intr = "1 day"; 318 QString logFileCmb = settings.value("cmbLogpath").toString(); 319 int l = logFileCmb.length(); 320 if (logFileCmb.isEmpty()) { 321 _logFile = 0; 322 } 323 else { 324 if (l && logFileCmb[l-1] != QDir::separator() ) { 325 logFileCmb += QDir::separator(); 326 } 327 328 logFileCmb = logFileCmb + "COMB00BNC" + "${V3PROD}" + ".CMB"; 329 330 _logFile = new bncoutf(logFileCmb, intr, _cmbSampl); 331 } 332 315 333 _newCorr = 0; 316 334 } … … 345 363 delete _antex; 346 364 delete _bsx; 365 delete _logFile; 347 366 348 367 QMapIterator<char, unsigned> itSys(_cmbSysPrn); … … 518 537 if ((newClk._time >= currentTime) || // future time stamp 519 538 (currentTime - newClk._time) > 60.0) { // very old data sets 520 #ifdef BNC_DEBUG_CMB521 539 emit newMessage("bncComb: future or very old data sets: " + acName.toLatin1() + " " + newClk._prn.toString().c_str() + 522 540 QString(" %1 ").arg(newClk._time.timestr().c_str()).toLatin1() + "vs. current time" + 523 541 QString(" %1 ").arg(currentTime.timestr().c_str()).toLatin1(), true); 524 #endif525 542 continue; 526 543 } … … 530 547 // -------------------- 531 548 if (_resTime.valid() && newClk._time <= _resTime) { 532 #ifdef BNC_DEBUG_CMB533 549 emit newMessage("bncComb: old correction: " + acName.toLatin1() + " " + newClk._prn.toString().c_str() + 534 550 QString(" %1 ").arg(newClk._time.timestr().c_str()).toLatin1() + "vs. last processing Epoch" + 535 551 QString(" %1 ").arg(_resTime.timestr().c_str()).toLatin1(), true); 536 #endif537 552 continue; 538 553 } … … 711 726 t_eph* ephPrev = _ephUser.ephPrev(prn); 712 727 if (ephLast == 0) { 713 #ifdef BNC_DEBUG_CMB714 728 emit newMessage("bncComb: eph not found for " + prn.mid(0,3).toLatin1(), true); 715 #endif716 729 delete _newCorr; _newCorr = 0; 717 730 continue; … … 721 734 ephLast->checkState() == t_eph::outdated || 722 735 ephLast->checkState() == t_eph::unhealthy) { 723 #ifdef BNC_DEBUG_CMB724 736 emit newMessage("bncComb: ephLast not ok (checkState: " + ephLast->checkStateToString().toLatin1() + ") for " + prn.mid(0,3).toLatin1(), true); 725 #endif726 737 delete _newCorr; _newCorr = 0; 727 738 continue; … … 739 750 } 740 751 else { 741 #ifdef BNC_DEBUG_CMB742 752 emit newMessage("bncComb: eph not found for " + prn.mid(0,3).toLatin1() + 743 753 QString(" with IOD %1").arg(_newCorr->_iod).toLatin1(), true); 744 #endif745 754 delete _newCorr; _newCorr = 0; 746 755 continue; … … 815 824 processSystem(epoTime, sys, out); 816 825 _buffer.remove(sys); 817 emit newMessage(_log, false); 826 //emit newMessage(_log, false); 827 if (_logFile) { 828 _logFile->write(epoTime.gpsw(),epoTime.gpssec(), QString(_log)); 829 } 818 830 } 819 831 }
Note:
See TracChangeset
for help on using the changeset viewer.