Changeset 3553 in ntrip for trunk/BNC/combination/bnccomb.cpp


Ignore:
Timestamp:
Dec 23, 2011, 8:37:51 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/combination/bnccomb.cpp

    r3551 r3553  
    257257    delete _params[iPar-1];
    258258  }
    259   QListIterator<bncTime> itTime(_buffer.keys());
     259  QListIterator<unsigned long> itTime(_buffer.keys());
    260260  while (itTime.hasNext()) {
    261261    _buffer.remove(itTime.next());
     
    339339  // Process previous Epoch(s)
    340340  // -------------------------
    341   QListIterator<bncTime> itTime(_buffer.keys());
     341  QListIterator<unsigned long> itTime(_buffer.keys());
    342342  while (itTime.hasNext()) {
    343     bncTime epoTime = 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();
    346346      processEpoch();
    347347    }
     
    350350  // Merge or add the correction
    351351  // ---------------------------
    352   QVector<cmbCorr*>& corrs = _buffer[newCorr->tt].corrs;
     352  QVector<cmbCorr*>& corrs = _buffer[newCorr->tt.longSec()].corrs;
    353353  cmbCorr* existingCorr = 0;
    354354  QVectorIterator<cmbCorr*> itCorr(corrs);
     
    450450    if (_masterMissingEpochs < 10) {
    451451      out << "Missing Master, Epoch skipped" << endl;
    452       _buffer.remove(_resTime);
     452      _buffer.remove(_resTime.longSec());
    453453      emit newMessage(_log, false);
    454454      return;
     
    511511  // Delete Data, emit Message
    512512  // -------------------------
    513   _buffer.remove(_resTime);
     513  _buffer.remove(_resTime.longSec());
    514514  emit newMessage(_log, false);
    515515}
Note: See TracChangeset for help on using the changeset viewer.