Changeset 6097 in ntrip
- Timestamp:
- Sep 7, 2014, 7:49:22 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP_free/pppClient.cpp
r6096 r6097 229 229 void t_pppClient::putOrbCorrections(const std::vector<t_orbCorr*>& corr) { 230 230 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 } 231 244 } 232 245 … … 235 248 void t_pppClient::putClkCorrections(const std::vector<t_clkCorr*>& corr) { 236 249 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 } 237 263 } 238 264
Note:
See TracChangeset
for help on using the changeset viewer.