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


Ignore:
Timestamp:
Oct 6, 2021, 10:50:34 PM (3 years ago)
Author:
stuerze
Message:

some changes regarding PPP

File:
1 edited

Legend:

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

    r9386 r9508  
    2323/////////////////////////////////////////////////////////////////////////////
    2424t_pppObsPool::t_epoch::t_epoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector,
    25                                bool pseudoObsIono) {
     25                               bool pseudoObsIono, const QMap<char, t_pppRefSat*>& refSatMap) {
    2626  _epoTime        = epoTime;
    2727  _pseudoObsIono  = pseudoObsIono;
     
    3030  }
    3131  obsVector.clear();
     32
     33  QMapIterator<char, t_pppRefSat*> it(refSatMap);
     34  while (it.hasNext()) {
     35    it.next();
     36    char sys = it.key();
     37    t_pppRefSat* refSat = it.value();
     38    _refSatMap[sys] = new t_pppRefSat(refSat->prn(), refSat->stecValue());
     39  }
     40  //refSatMap.clear();
    3241}
    3342
     
    3847    delete _obsVector[ii];
    3948  }
     49
     50  QMapIterator<char, t_pppRefSat*> it(_refSatMap);
     51  while (it.hasNext()) {
     52    it.next();
     53    delete it.value();
     54  }
     55  _refSatMap.clear();
    4056}
    4157
     
    7187    _epochs.pop_front();
    7288  }
    73   clearRefSatMap();
    7489}
    7590
     
    101116/////////////////////////////////////////////////////////////////////////////
    102117void t_pppObsPool::putEpoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector,
    103     bool pseudoObsIono) {
     118                            bool pseudoObsIono, const QMap<char, t_pppRefSat*>& refSatMap) {
    104119  const unsigned MAXSIZE = 2;
    105 
    106   _epochs.push_back(new t_epoch(epoTime, obsVector, pseudoObsIono));
     120  _epochs.push_back(new t_epoch(epoTime, obsVector, pseudoObsIono, refSatMap));
    107121
    108122  if (_epochs.size() > MAXSIZE) {
Note: See TracChangeset for help on using the changeset viewer.