Changeset 5832 in ntrip


Ignore:
Timestamp:
Aug 6, 2014, 2:54:09 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5825 r5832  
    198198    if (epoData != 0) {
    199199      epoData->_satObs.push_back(newObs);
    200       map<string, t_frqObs*> pppObsMap;
     200      map<string, t_frqObs*> frqObsMap;
    201201      for (unsigned iEntry = 0; iEntry < GNSSENTRY_NUMBER; iEntry++) {
    202202        string hlp(oldObs.rnxStr(iEntry).toAscii().data());
     
    205205          string rnxType2ch = hlp.substr(1);
    206206          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);
    213213            }
    214214            else {
    215               pppObs = pppObsMap[rnxType2ch];
     215              frqObs = frqObsMap[rnxType2ch];
    216216            }
    217217            if      (obsType == 'C') {
    218               pppObs->_code      = oldObs._measdata[iEntry];
    219               pppObs->_codeValid = true;
     218              frqObs->_code      = oldObs._measdata[iEntry];
     219              frqObs->_codeValid = true;
    220220            }
    221221            else if (obsType == 'L') {
    222               pppObs->_phase      = oldObs._measdata[iEntry];
    223               pppObs->_phaseValid = true;
     222              frqObs->_phase      = oldObs._measdata[iEntry];
     223              frqObs->_phaseValid = true;
    224224            }
    225225          }
Note: See TracChangeset for help on using the changeset viewer.