Ignore:
Timestamp:
Sep 7, 2014, 11:23:53 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r6072 r6073  
    118118//////////////////////////////////////////////////////////////////////////////
    119119void t_pppClient::processEpoch(const vector<t_satObs*>& satObs, t_output* output) {
    120 
    121   output->_numSat = 0;
    122   output->_pDop   = 0.0;
    123   output->_error  = false;
    124   output->_log.clear();
    125 
    126   for (unsigned ii = 0; ii < satObs.size(); ii++) {
    127     const t_satObs* obs     = satObs[ii];
    128     t_satData*      satData = new t_satData();
    129     satData->tt       = obs->_time;
    130     satData->prn      = QString(obs->_prn.toString().c_str());
    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);
    158   }
    159   output->_log = _log->str(); 
     120  _client->processEpoch(satObs, output);
    160121}
    161122
Note: See TracChangeset for help on using the changeset viewer.