Changeset 5889 in ntrip for trunk/BNC/src/PPP
- Timestamp:
- Aug 8, 2014, 4:40:40 PM (10 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppRun.cpp
r5883 r5889 92 92 } 93 93 else { 94 _rnxObsFile = 0; 95 _rnxNavFile = 0; 96 _corrFile = 0; 97 _maxSpeed = 0; 98 _speed = 0; 94 99 processFiles(); 95 100 } … … 343 348 344 349 try { 345 _rnxObsFile = new t_rnxObsFile( _opt->obsFileName, t_rnxObsFile::input);350 _rnxObsFile = new t_rnxObsFile(QString(_opt->_rinexObs.c_str()), t_rnxObsFile::input); 346 351 } 347 352 catch (...) { … … 351 356 } 352 357 353 _rnxNavFile = new t_rnxNavFile(_opt->navFileName, t_rnxNavFile::input); 354 _pppClient = new bncPPPclient("POST", _opt, false); 355 356 if (!_opt->corrFileName.isEmpty()) { 357 _corrFile = new t_corrFile(_opt->corrFileName); 358 _rnxNavFile = new t_rnxNavFile(QString(_opt->_rinexNav.c_str()), t_rnxNavFile::input); 359 360 if (!_opt->_corrFile.empty()) { 361 _corrFile = new t_corrFile(QString(_opt->_corrFile.c_str())); 358 362 connect(_corrFile, SIGNAL(newCorrections(QStringList)), 359 _pppClient, SLOT(slotNewCorrections(QStringList)));363 this, SLOT(slotNewCorrections(QStringList))); 360 364 } 361 365 … … 371 375 if (_speed < _maxSpeed) { 372 376 double sleepTime = 0.02 * _maxSpeed / _speed; 373 msleep(sleepTime*1.e3);377 //// msleep(sleepTime*1.e3); 374 378 } 375 379 } … … 386 390 const QMap<QString, int>* corrIODs = _corrFile ? &_corrFile->corrIODs() : 0; 387 391 while ( (eph = _rnxNavFile->getNextEph(epo->tt, corrIODs)) != 0 ) { 388 if (_pppClient->putNewEph(eph) != success) { 389 delete eph; eph = 0; 390 } 392 _pppClient->putEphemeris(eph); 393 delete eph; eph = 0; 391 394 } 392 395 393 396 for (unsigned iObs = 0; iObs < epo->rnxSat.size(); iObs++) { 394 395 if (_isToBeDeleted) {396 QThread::exit(0);397 return;398 }399 400 397 const t_rnxObsFile::t_rnxSat& rnxSat = epo->rnxSat[iObs]; 401 398 -
trunk/BNC/src/PPP/pppRun.h
r5883 r5889 28 28 void newPosition(bncTime time, QVector<double> xx); 29 29 void newNMEAstr(QByteArray str); 30 void progress(int); 31 void finished(); 30 32 31 33 public slots: … … 35 37 void slotNewCorrections(QStringList corrList); 36 38 void slotNewObs(QByteArray staID, QList<t_obs> obsList); 39 void slotSetSpeed(int speed); 37 40 38 41 private:
Note:
See TracChangeset
for help on using the changeset viewer.