Changeset 8905 in ntrip for trunk/BNC/src/PPP/pppObsPool.cpp


Ignore:
Timestamp:
Mar 18, 2020, 11:13:50 AM (4 years ago)
Author:
stuerze
Message:

some developments regarding PPP, not completed!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppObsPool.cpp

    r7643 r8905  
    2222// Constructor
    2323/////////////////////////////////////////////////////////////////////////////
    24 t_pppObsPool::t_epoch::t_epoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector) {
    25   _epoTime   = epoTime;
     24t_pppObsPool::t_epoch::t_epoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector,
     25                               bool pseudoObsIono) {
     26  _epoTime        = epoTime;
     27  _pseudoObsIono  = pseudoObsIono;
    2628  for (unsigned ii = 0; ii < obsVector.size(); ii++) {
    2729    _obsVector.push_back(obsVector[ii]);
     
    4850  }
    4951  _vTec = 0;
     52  _epoReProcessing = false;
    5053}
    5154
     
    6467    _epochs.pop_front();
    6568  }
     69  clearRefSatMap();
    6670}
    6771
     
    9296//
    9397/////////////////////////////////////////////////////////////////////////////
    94 void t_pppObsPool::putEpoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector) {
     98void t_pppObsPool::putEpoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector,
     99    bool pseudoObsIono) {
    95100  const unsigned MAXSIZE = 2;
    96   _epochs.push_back(new t_epoch(epoTime, obsVector));
     101
     102  if (epoReProcessing()) {
     103    delete _epochs.back();
     104    _epochs.pop_back();
     105  }
     106  _epochs.push_back(new t_epoch(epoTime, obsVector,pseudoObsIono));
    97107  if (_epochs.size() > MAXSIZE) {
    98108    delete _epochs.front();
Note: See TracChangeset for help on using the changeset viewer.