Changeset 6097 in ntrip


Ignore:
Timestamp:
Sep 7, 2014, 7:49:22 PM (7 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r6096 r6097  
    229229void t_pppClient::putOrbCorrections(const std::vector<t_orbCorr*>& corr) {
    230230  QMutexLocker locker(&_mutex);
     231  for (unsigned ii = 0; ii < corr.size(); ii++) {
     232    QString prn = QString(corr[ii]->_prn.toString().c_str());
     233    if (_eph.contains(prn)) {
     234      t_eph* eLast = _eph.value(prn)->last;
     235      t_eph* ePrev = _eph.value(prn)->prev;
     236      if      (eLast && eLast->IOD() == corr[ii]->_iod) {
     237        eLast->setOrbCorr(corr[ii]);
     238      }
     239      else if (ePrev && ePrev->IOD() == corr[ii]->_iod) {
     240        ePrev->setOrbCorr(corr[ii]);
     241      }
     242    }
     243  }
    231244}
    232245
     
    235248void t_pppClient::putClkCorrections(const std::vector<t_clkCorr*>& corr) {
    236249  QMutexLocker locker(&_mutex);
     250  for (unsigned ii = 0; ii < corr.size(); ii++) {
     251    QString prn = QString(corr[ii]->_prn.toString().c_str());
     252    if (_eph.contains(prn)) {
     253      t_eph* eLast = _eph.value(prn)->last;
     254      t_eph* ePrev = _eph.value(prn)->prev;
     255      if      (eLast && eLast->IOD() == corr[ii]->_iod) {
     256        eLast->setClkCorr(corr[ii]);
     257      }
     258      else if (ePrev && ePrev->IOD() == corr[ii]->_iod) {
     259        ePrev->setClkCorr(corr[ii]);
     260      }
     261    }
     262  }
    237263}
    238264
Note: See TracChangeset for help on using the changeset viewer.