- Timestamp:
- Sep 8, 2013, 7:12:20 PM (11 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccore.cpp
r5375 r5387 657 657 // First time, set the _lastCorrDumpTime 658 658 // ------------------------------------- 659 if (!_lastCorrDumpTime .valid()) {660 _lastCorrDumpTime = coTime - 1.0;659 if (!_lastCorrDumpTime[staID].valid()) { 660 _lastCorrDumpTime[staID] = coTime - 1.0; 661 661 } 662 662 663 663 // An old correction - throw it away 664 664 // --------------------------------- 665 if (_waitCoTime > 0.0 && coTime <= _lastCorrDumpTime ) {665 if (_waitCoTime > 0.0 && coTime <= _lastCorrDumpTime[staID]) { 666 666 if (!_bncComb) { 667 667 QString line = staID + ": Correction for one sat neglected because overaged by " + 668 668 QString().sprintf(" %f sec", 669 _lastCorrDumpTime - coTime + _waitCoTime);669 _lastCorrDumpTime[staID] - coTime + _waitCoTime); 670 670 messagePrivate(line.toAscii()); 671 671 emit( newMessage(line.toAscii(), true) ); … … 681 681 dumpCorrs(); 682 682 } 683 else if (coTime - _waitCoTime > _lastCorrDumpTime ) {684 dumpCorrs(_lastCorrDumpTime + 1, coTime - _waitCoTime);685 _lastCorrDumpTime = coTime - _waitCoTime;683 else if (coTime - _waitCoTime > _lastCorrDumpTime[staID]) { 684 dumpCorrs(_lastCorrDumpTime[staID] + 1, coTime - _waitCoTime); 685 _lastCorrDumpTime[staID] = coTime - _waitCoTime; 686 686 } 687 687 } -
trunk/BNC/src/bnccore.h
r5206 r5387 127 127 QList<QTcpSocket*>* _socketsNMEA; 128 128 bncCaster* _caster; 129 bncTime_lastCorrDumpTime;129 QMap<QString, bncTime> _lastCorrDumpTime; 130 130 double _waitCoTime; 131 131 QMultiMap<bncTime, QString>* _corrs;
Note:
See TracChangeset
for help on using the changeset viewer.