Changeset 3553 in ntrip
- Timestamp:
- Dec 23, 2011, 8:37:51 PM (13 years ago)
- Location:
- trunk/BNC/combination
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/combination/bnccomb.cpp
r3551 r3553 257 257 delete _params[iPar-1]; 258 258 } 259 QListIterator< bncTime> itTime(_buffer.keys());259 QListIterator<unsigned long> itTime(_buffer.keys()); 260 260 while (itTime.hasNext()) { 261 261 _buffer.remove(itTime.next()); … … 339 339 // Process previous Epoch(s) 340 340 // ------------------------- 341 QListIterator< bncTime> itTime(_buffer.keys());341 QListIterator<unsigned long> itTime(_buffer.keys()); 342 342 while (itTime.hasNext()) { 343 bncTimeepoTime = itTime.next();344 if (epoTime < newCorr->tt - moduloTime) {345 _resTime = epoTime;343 unsigned long epoTime = itTime.next(); 344 if (epoTime < (newCorr->tt - moduloTime).longSec()) { 345 _resTime = _buffer[epoTime].tt(); 346 346 processEpoch(); 347 347 } … … 350 350 // Merge or add the correction 351 351 // --------------------------- 352 QVector<cmbCorr*>& corrs = _buffer[newCorr->tt ].corrs;352 QVector<cmbCorr*>& corrs = _buffer[newCorr->tt.longSec()].corrs; 353 353 cmbCorr* existingCorr = 0; 354 354 QVectorIterator<cmbCorr*> itCorr(corrs); … … 450 450 if (_masterMissingEpochs < 10) { 451 451 out << "Missing Master, Epoch skipped" << endl; 452 _buffer.remove(_resTime );452 _buffer.remove(_resTime.longSec()); 453 453 emit newMessage(_log, false); 454 454 return; … … 511 511 // Delete Data, emit Message 512 512 // ------------------------- 513 _buffer.remove(_resTime );513 _buffer.remove(_resTime.longSec()); 514 514 emit newMessage(_log, false); 515 515 } -
trunk/BNC/combination/bnccomb.h
r3497 r3553 73 73 } 74 74 } 75 bncTime tt() const { 76 if (corrs.size() > 0) { 77 return corrs[0]->tt; 78 } 79 else { 80 return bncTime(); 81 } 82 } 75 83 QVector<cmbCorr*> corrs; 76 84 }; … … 90 98 t_irc checkOrbits(QTextStream& out); 91 99 92 QVector<cmbCorr*>& corrs() {return _buffer[_resTime ].corrs;}100 QVector<cmbCorr*>& corrs() {return _buffer[_resTime.longSec()].corrs;} 93 101 94 102 QList<cmbAC*> _ACs; 95 103 bncTime _resTime; 96 104 QVector<cmbParam*> _params; 97 QMap< bncTime, cmbEpoch> _buffer;105 QMap<unsigned long, cmbEpoch> _buffer; 98 106 bncRtnetDecoder* _rtnetDecoder; 99 107 SymmetricMatrix _QQ;
Note:
See TracChangeset
for help on using the changeset viewer.