Changeset 5832 in ntrip for trunk/BNC/src
- Timestamp:
- Aug 6, 2014, 2:54:09 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppThread.cpp
r5825 r5832 198 198 if (epoData != 0) { 199 199 epoData->_satObs.push_back(newObs); 200 map<string, t_frqObs*> pppObsMap;200 map<string, t_frqObs*> frqObsMap; 201 201 for (unsigned iEntry = 0; iEntry < GNSSENTRY_NUMBER; iEntry++) { 202 202 string hlp(oldObs.rnxStr(iEntry).toAscii().data()); … … 205 205 string rnxType2ch = hlp.substr(1); 206 206 if (obsType == 'C' || obsType == 'L') { 207 t_frqObs* pppObs = 0;208 if ( pppObsMap.find(rnxType2ch) == pppObsMap.end()) {209 pppObs = new t_frqObs();210 pppObsMap[rnxType2ch] = pppObs;211 pppObs->_rnxType2ch = rnxType2ch;212 newObs->_obs.push_back( pppObs);207 t_frqObs* frqObs = 0; 208 if (frqObsMap.find(rnxType2ch) == frqObsMap.end()) { 209 frqObs = new t_frqObs(); 210 frqObsMap[rnxType2ch] = frqObs; 211 frqObs->_rnxType2ch = rnxType2ch; 212 newObs->_obs.push_back(frqObs); 213 213 } 214 214 else { 215 pppObs = pppObsMap[rnxType2ch];215 frqObs = frqObsMap[rnxType2ch]; 216 216 } 217 217 if (obsType == 'C') { 218 pppObs->_code = oldObs._measdata[iEntry];219 pppObs->_codeValid = true;218 frqObs->_code = oldObs._measdata[iEntry]; 219 frqObs->_codeValid = true; 220 220 } 221 221 else if (obsType == 'L') { 222 pppObs->_phase = oldObs._measdata[iEntry];223 pppObs->_phaseValid = true;222 frqObs->_phase = oldObs._measdata[iEntry]; 223 frqObs->_phaseValid = true; 224 224 } 225 225 }
Note:
See TracChangeset
for help on using the changeset viewer.