Changeset 2986 in ntrip


Ignore:
Timestamp:
Feb 8, 2011, 4:44:06 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/combination
Files:
2 edited

Legend:

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

    r2936 r2986  
    171171  }
    172172
     173  // Check the IOD
     174  //--------------
     175  if (_eph.find(newCorr->prn) == _eph.end()) {
     176    delete newCorr;
     177    return;
     178  }
     179  else {
     180    t_eph* lastEph = _eph[newCorr->prn]->last;
     181    t_eph* prevEph = _eph[newCorr->prn]->prev;
     182    if (prevEph && prevEph->IOD() == newCorr->iod) {
     183      switchToLastEph(lastEph, prevEph, newCorr);
     184    }
     185    else if (!lastEph || lastEph->IOD() != newCorr->iod) {
     186      delete newCorr;
     187      return;
     188    }
     189  }
     190
    173191  // Process all older Epochs (if there are any)
    174192  // -------------------------------------------
     
    318336}
    319337
     338// Change the correction so that it refers to last received ephemeris
     339////////////////////////////////////////////////////////////////////////////
     340void bncComb::switchToLastEph(const t_eph* lastEph, const t_eph* prevEph,
     341                              t_corr* newCorr) {
     342
     343}
     344
    320345// Process Epochs
    321346////////////////////////////////////////////////////////////////////////////
     
    419444  cout << "Corrections processed" << endl << endl;
    420445}
    421 
  • trunk/BNC/combination/bnccomb.h

    r2934 r2986  
    7474  void dumpResults(const bncTime& resTime,
    7575                   const QMap<QString, t_corr*>& resCorr);
     76  void switchToLastEph(const t_eph* lastEph, const t_eph* prevEph,
     77                       t_corr* newCorr);
    7678
    7779  QMap<QString, cmbAC*> _ACs;   // Analytical Centers (key is mountpoint)
Note: See TracChangeset for help on using the changeset viewer.