Changeset 9508 in ntrip for trunk/BNC/src/PPP/pppObsPool.cpp
- Timestamp:
- Oct 6, 2021, 10:50:34 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppObsPool.cpp
r9386 r9508 23 23 ///////////////////////////////////////////////////////////////////////////// 24 24 t_pppObsPool::t_epoch::t_epoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector, 25 bool pseudoObsIono ) {25 bool pseudoObsIono, const QMap<char, t_pppRefSat*>& refSatMap) { 26 26 _epoTime = epoTime; 27 27 _pseudoObsIono = pseudoObsIono; … … 30 30 } 31 31 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(); 32 41 } 33 42 … … 38 47 delete _obsVector[ii]; 39 48 } 49 50 QMapIterator<char, t_pppRefSat*> it(_refSatMap); 51 while (it.hasNext()) { 52 it.next(); 53 delete it.value(); 54 } 55 _refSatMap.clear(); 40 56 } 41 57 … … 71 87 _epochs.pop_front(); 72 88 } 73 clearRefSatMap();74 89 } 75 90 … … 101 116 ///////////////////////////////////////////////////////////////////////////// 102 117 void t_pppObsPool::putEpoch(const bncTime& epoTime, vector<t_pppSatObs*>& obsVector, 103 bool pseudoObsIono) {118 bool pseudoObsIono, const QMap<char, t_pppRefSat*>& refSatMap) { 104 119 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)); 107 121 108 122 if (_epochs.size() > MAXSIZE) {
Note:
See TracChangeset
for help on using the changeset viewer.