Changeset 3556 in ntrip


Ignore:
Timestamp:
Dec 23, 2011, 11:19:11 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnc.pro

    r3528 r3556  
    22# Switch to debug configuration
    33# -----------------------------
    4 CONFIG -= debug
    5 CONFIG += release
     4CONFIG -= release
     5CONFIG += debug
    66
    77
  • trunk/BNC/combination/bnccomb.cpp

    r3555 r3556  
    257257    delete _params[iPar-1];
    258258  }
    259   QListIterator<unsigned long> itTime(_buffer.keys());
     259  QListIterator<bncTime> itTime(_buffer.keys());
    260260  while (itTime.hasNext()) {
    261     _buffer.remove(itTime.next());
     261    bncTime epoTime = itTime.next();
     262    _buffer.remove(epoTime);
    262263  }
    263264}
     
    339340  // Process previous Epoch(s)
    340341  // -------------------------
    341   QListIterator<unsigned long> itTime(_buffer.keys());
     342  QListIterator<bncTime> itTime(_buffer.keys());
    342343  while (itTime.hasNext()) {
    343     unsigned long epoTime = itTime.next();
    344     if (epoTime < (newCorr->tt - moduloTime).longSec()) {
    345       _resTime = _buffer[epoTime].tt();
     344    bncTime epoTime = itTime.next();
     345    if (epoTime < newCorr->tt - moduloTime) {
     346      _resTime = epoTime;
    346347      processEpoch();
    347348    }
     
    350351  // Merge or add the correction
    351352  // ---------------------------
    352   QVector<cmbCorr*>& corrs = _buffer[newCorr->tt.longSec()].corrs;
     353  QVector<cmbCorr*>& corrs = _buffer[newCorr->tt].corrs;
    353354  cmbCorr* existingCorr = 0;
    354355  QVectorIterator<cmbCorr*> itCorr(corrs);
     
    366367  else {
    367368    corrs.append(newCorr);
    368   }
    369 
    370   if (_resTime.valid()) {
    371     QListIterator<unsigned long> it(_buffer.keys());
    372     while (it.hasNext()) {
    373       unsigned long epoTime = it.next();
    374       if (epoTime <= _resTime.longSec()) {
    375         _buffer.remove(epoTime);
    376       }
    377     }
    378369  }
    379370}
     
    460451    if (_masterMissingEpochs < 10) {
    461452      out << "Missing Master, Epoch skipped" << endl;
    462       _buffer.remove(_resTime.longSec());
     453      _buffer.remove(_resTime);
    463454      emit newMessage(_log, false);
    464455      return;
     
    521512  // Delete Data, emit Message
    522513  // -------------------------
    523   _buffer.remove(_resTime.longSec());
     514  _buffer.remove(_resTime);
    524515  emit newMessage(_log, false);
    525516}
     
    885876      }
    886877      if (!foundMaster) {
     878        delete corr;
    887879        it.remove();
    888880      }
     
    983975    if (maxRes > _MAXRES) {
    984976      out << "  Outlier" << endl;
     977      delete corrs()[maxResIndex-1];
    985978      corrs().remove(maxResIndex-1);
    986979    }
     
    10201013    if      (_eph.find(prn) == _eph.end()) {
    10211014      out << "checkOrbit: missing eph (not found) " << corr->prn << endl;
     1015      delete corr;
    10221016      im.remove();
    10231017    }
    10241018    else if (corr->eph == 0) {
    10251019      out << "checkOrbit: missing eph (zero) " << corr->prn << endl;
     1020      delete corr;
    10261021      im.remove();
    10271022    }
     
    10321027      else {
    10331028        out << "checkOrbit: missing eph (deleted) " << corr->prn << endl;
     1029        delete corr;
    10341030        im.remove();
    10351031      }
     
    10961092      QString  prn  = corr->prn;
    10971093      if      (numCorr[prn] < 2) {
     1094        delete corr;
    10981095        im.remove();
    10991096      }
     
    11081105              << corr->iod                     << " "
    11091106              << norm                          << endl;
     1107          delete corr;
    11101108          im.remove();
    11111109          removed = true;
  • trunk/BNC/combination/bnccomb.h

    r3553 r3556  
    7373      }
    7474    }
    75     bncTime tt() const {
    76       if (corrs.size() > 0) {
    77         return corrs[0]->tt;
    78       }
    79       else {
    80         return bncTime();
    81       }
    82     }
    8375    QVector<cmbCorr*> corrs;
    8476  };
     
    9890  t_irc checkOrbits(QTextStream& out);
    9991
    100   QVector<cmbCorr*>& corrs() {return _buffer[_resTime.longSec()].corrs;}
     92  QVector<cmbCorr*>& corrs() {return _buffer[_resTime].corrs;}
    10193
    10294  QList<cmbAC*>           _ACs;
    10395  bncTime                 _resTime;
    10496  QVector<cmbParam*>      _params;
    105   QMap<unsigned long, cmbEpoch> _buffer;
     97  QMap<bncTime, cmbEpoch> _buffer;
    10698  bncRtnetDecoder*        _rtnetDecoder;
    10799  SymmetricMatrix         _QQ;
Note: See TracChangeset for help on using the changeset viewer.