Changeset 6071 in ntrip


Ignore:
Timestamp:
Sep 7, 2014, 10:50:04 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP_free/pppClient.cpp

    r6070 r6071  
    118118//////////////////////////////////////////////////////////////////////////////
    119119void t_pppClient::processEpoch(const vector<t_satObs*>& satObs, t_output* output) {
     120
    120121  output->_numSat = 0;
    121122  output->_pDop   = 0.0;
     
    124125
    125126  for (unsigned ii = 0; ii < satObs.size(); ii++) {
    126     t_obs pp;
    127     _client->putNewObs(pp, output);
     127    const t_satObs* obs     = satObs[ii];
     128    t_satData*      satData = new t_satData();
     129    satData->tt       = obs->_time;
     130    satData->prn      = obs->_prn;
     131    satData->slipFlag = false;
     132    satData->P1       = 0.0;
     133    satData->P2       = 0.0;
     134    satData->P5       = 0.0;
     135    satData->L1       = 0.0;
     136    satData->L2       = 0.0;
     137    satData->L5       = 0.0;
     138    for (unsigned ifrq = 0; ifrq < obs->_obs.size(); ifrq++) {
     139      t_frqObs* frqObs = obs->_obs[ifrq];
     140      if      (frqObs->_rnxType2ch[0] == '1') {
     141        if (frqObs->_codeValid)  satData->P1       = frqObs->_code;
     142        if (frqObs->_phaseValid) satData->L1       = frqObs->_phase;
     143        if (frqObs->_slip)       satData->slipFlag = true;
     144      }
     145      else if (frqObs->_rnxType2ch[0] == '2') {
     146        if (frqObs->_codeValid)  satData->P2       = frqObs->_code;
     147        if (frqObs->_phaseValid) satData->L2       = frqObs->_phase;
     148        if (frqObs->_slip)       satData->slipFlag = true;
     149      }
     150      else if (frqObs->_rnxType2ch[0] == '5') {
     151        if (frqObs->_codeValid)  satData->P5       = frqObs->_code;
     152        if (frqObs->_phaseValid) satData->L5       = frqObs->_phase;
     153        if (frqObs->_slip)       satData->slipFlag = true;
     154      }
     155    }
     156
     157    //    _client->putNewObs(pp, output);
    128158  }
    129159  output->_log = _log->str(); 
Note: See TracChangeset for help on using the changeset viewer.