Changeset 3502 in ntrip for trunk/BNC


Ignore:
Timestamp:
Nov 16, 2011, 11:44:13 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3501 r3502  
    10021002  const double MAX_DISPLACEMENT = 0.20;
    10031003
    1004   //// beg test
     1004  // Switch to last ephemeris (if possible)
     1005  // --------------------------------------
    10051006  QMutableVectorIterator<cmbCorr*> im(corrs());
    10061007  while (im.hasNext()) {
    10071008    cmbCorr* corr = im.next();
    1008     if (!corr->eph) {
    1009       out << "checkOrbit: missing eph " << corr->prn << endl;
     1009    QString  prn  = corr->prn;
     1010    if (_eph.find(prn) == _eph.end()) {
     1011      out << "checkOrbit: missing eph (not found) " << corr->prn << endl;
    10101012      im.remove();
    10111013    }
    1012   }
    1013   //// end test
     1014    else {
     1015      if ( corr->eph == _eph[prn]->last || corr->eph == _eph[prn]->prev ) {
     1016        switchToLastEph(_eph[prn]->last, corr);
     1017      }
     1018      else {
     1019        out << "checkOrbit: missing eph (deleted) " << corr->prn << endl;
     1020        im.remove();
     1021      }
     1022    }
     1023  }
    10141024
    10151025  while (true) {
     
    10231033      cmbCorr* corr = it.next();
    10241034      QString  prn  = corr->prn;
    1025       switchToLastEph(_eph[prn]->last, corr);
    10261035      if (meanRao.find(prn) == meanRao.end()) {
    10271036        meanRao[prn].ReSize(4);
Note: See TracChangeset for help on using the changeset viewer.