- Timestamp:
- Aug 6, 2014, 4:39:18 PM (10 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppThread.cpp
r5838 r5840 104 104 connect(BNC_CORE, SIGNAL(newCorrections(QStringList)), 105 105 this, SLOT(slotNewCorrections(QStringList))); 106 107 for (unsigned iPrn = 0; iPrn <= t_prn::MAXPRN; iPrn++) { 108 _lastOrbCorrIOD[iPrn] = -1; 109 _lastClkCorrValue[iPrn] = 0.0; 110 } 106 111 107 112 _pppClient = new t_pppClient(_opt); … … 279 284 messageType == COTYPE_GPSORBIT || messageType == COTYPE_GLONASSORBIT ) { 280 285 t_orbCorr* cc = new t_orbCorr(); 281 orbCorr.push_back(cc);282 286 cc->_prn.set(corr.prn.toAscii().data()); 283 287 cc->_iod = corr.iod; … … 290 294 cc->_dotXr[0] = corr.dotRao[1]; 291 295 cc->_dotXr[0] = corr.dotRao[2]; 296 cout << "ORB: " << cc->_prn.toString() << ' ' << cc->_iod << endl; 297 orbCorr.push_back(cc); 298 299 _lastOrbCorrIOD[cc->_prn.toInt()] = cc->_iod; 292 300 } 293 301 else if (messageType == COTYPE_GPSCOMBINED || messageType == COTYPE_GLONASSCOMBINED || 294 302 messageType == COTYPE_GPSCLOCK || messageType == COTYPE_GLONASSCLOCK ) { 295 303 t_clkCorr* cc = new t_clkCorr(); 296 clkCorr.push_back(cc);297 304 cc->_prn.set(corr.prn.toAscii().data()); 298 305 cc->_iod = corr.iod; … … 302 309 cc->_dotDotDClk = corr.dotDotDClk; 303 310 cc->_clkPartial = 0.0; 311 if (messageType == COTYPE_GPSCLOCK || messageType == COTYPE_GLONASSCLOCK) { 312 int lastIOD = _lastOrbCorrIOD[cc->_prn.toInt()]; 313 if (lastIOD != -1) { 314 cc->_iod = lastIOD; 315 } 316 else { 317 delete cc; 318 cc = 0; 319 } 320 } 321 if (cc) { 322 cout << "CLK: " << cc->_prn.toString() << ' ' << cc->_iod << endl; 323 clkCorr.push_back(cc); 324 } 304 325 } 305 326 } -
trunk/BNC/src/PPP/pppThread.h
r5833 r5840 45 45 t_pppClient* _pppClient; 46 46 std::deque<t_epoData*> _epoData; 47 int _lastOrbCorrIOD[t_prn::MAXPRN+1]; 48 double _lastClkCorrValue[t_prn::MAXPRN+1]; 47 49 }; 48 50
Note:
See TracChangeset
for help on using the changeset viewer.