- Timestamp:
- Apr 14, 2013, 6:44:43 PM (12 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccore.cpp
r5120 r5121 651 651 // First time, set the _lastDumpSec immediately 652 652 // -------------------------------------------- 653 if (!_last DumpCoSec.valid()) {654 _last DumpCoSec= coTime - 1.0;653 if (!_lastCorrDumpTime.valid()) { 654 _lastCorrDumpTime = coTime - 1.0; 655 655 } 656 656 657 657 // An old correction - throw it away 658 658 // --------------------------------- 659 if (_waitCoTime > 0.0 && coTime <= _last DumpCoSec) {659 if (_waitCoTime > 0.0 && coTime <= _lastCorrDumpTime) { 660 660 /// if (!_bncComb) { 661 661 QString line = staID + ": Correction for one sat neglected because overaged by " + 662 662 QString().sprintf(" %f sec", 663 _last DumpCoSec- coTime + _waitCoTime);663 _lastCorrDumpTime - coTime + _waitCoTime); 664 664 messagePrivate(line.toAscii()); 665 665 emit( newMessage(line.toAscii(), true) ); … … 675 675 dumpCorrs(); 676 676 } 677 else if (coTime - _waitCoTime > _last DumpCoSec) {678 dumpCorrs(_last DumpCoSec+ 1, coTime - _waitCoTime);679 _last DumpCoSec= coTime - _waitCoTime;677 else if (coTime - _waitCoTime > _lastCorrDumpTime) { 678 dumpCorrs(_lastCorrDumpTime + 1, coTime - _waitCoTime); 679 _lastCorrDumpTime = coTime - _waitCoTime; 680 680 } 681 681 } … … 684 684 //////////////////////////////////////////////////////////////////////////// 685 685 void t_bncCore::dumpCorrs(bncTime minTime, bncTime maxTime) { 686 for (bncTime sec = minTime; sec <= maxTime; sec = sec + 1.0) { 687 QList<QString> allCorrs = _corrs->values(sec); 688 dumpCorrs(allCorrs); 689 _corrs->remove(sec); 686 QList<QString> allCorrs; 687 QMutableMapIterator<bncTime, QString> it(*_corrs); 688 while (it.hasNext()) { 689 it.next(); 690 const bncTime& corrTime = it.key(); 691 if (minTime <= corrTime && corrTime <= maxTime) { 692 allCorrs << it.value(); 693 it.remove(); 694 } 690 695 } 691 696 } -
trunk/BNC/src/bnccore.h
r5120 r5121 127 127 QList<QTcpSocket*>* _socketsNMEA; 128 128 bncCaster* _caster; 129 bncTime _last DumpCoSec;129 bncTime _lastCorrDumpTime; 130 130 double _waitCoTime; 131 131 QMultiMap<bncTime, QString>* _corrs; -
trunk/BNC/src/combination/bnccomb.cpp
r5119 r5121 339 339 // ---------------------- 340 340 if (_resTime.valid() && newCorr->tClk <= _resTime) { 341 emit newMessage("bncComb: old correction: " + newCorr->prn.toAscii(), true); 341 342 delete newCorr; 342 343 return;
Note:
See TracChangeset
for help on using the changeset viewer.