Changeset 5971 in ntrip
- Timestamp:
- Aug 17, 2014, 12:50:34 PM (11 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppMain.cpp
r5959 r5971 94 94 } 95 95 96 if (!_realTime) { 97 cout << "t_pppMain::stop RINEX" << endl; 98 return; 99 } 100 96 101 QListIterator<t_pppThread*> it(_pppThreads); 97 102 while (it.hasNext()) { … … 126 131 _nmeaPort = settings.value("PPP/nmeaPort").toInt(); 127 132 128 boolrealTime = false;133 _realTime = false; 129 134 if (settings.value("PPP/dataSource").toString() == "Real-Time Streams") { 130 realTime = true;135 _realTime = true; 131 136 } 132 137 else if (settings.value("PPP/dataSource").toString() == "RINEX Files") { 133 realTime = false;138 _realTime = false; 134 139 } 135 140 else { … … 147 152 t_pppOptions* opt = new t_pppOptions(); 148 153 149 opt->_realTime = realTime;154 opt->_realTime = _realTime; 150 155 opt->_roverName = hlp[0].toAscii().data(); 151 156 opt->_aprSigCrd[0] = hlp[1].toDouble(); … … 158 163 opt->_noiseTrp = hlp[8].toDouble(); 159 164 160 if ( realTime) {165 if (_realTime) { 161 166 opt->_corrMount = settings.value("PPP/corrMount").toString().toAscii().data(); 162 167 } -
trunk/BNC/src/PPP/pppMain.h
r5946 r5971 24 24 int _nmeaPort; 25 25 bool _running; 26 bool _realTime; 26 27 }; 27 28 -
trunk/BNC/src/bncwindow.cpp
r5968 r5971 94 94 _bncFigurePPP, SLOT(slotNewPosition(QByteArray, bncTime, QVector<double>))); 95 95 96 connect(BNC_CORE, SIGNAL(progressRnxPPP(int)), this, SLOT(slotPostProgress(int))); 97 connect(BNC_CORE, SIGNAL(finishedRnxPPP()), this, SLOT(slotFinishedRnxPPP())); 98 99 _runningRealTime = false; 100 _runningPostProcessingReqc = false; 101 _reqcActionComboBox = 0; // necessary for enableStartStop() 96 connect(BNC_CORE, SIGNAL(progressRnxPPP(int)), this, SLOT(slotPostProcessingProgress(int))); 97 connect(BNC_CORE, SIGNAL(finishedRnxPPP()), this, SLOT(slotPostProcessingFinished())); 98 99 _runningRealTime = false; 100 _runningPPP = false; 101 _runningEdit = false; 102 _runningQC = false; 103 _reqcActionComboBox = 0; // necessary for enableStartStop() 102 104 103 105 _mapWin = 0; … … 1672 1674 saveOptions(); 1673 1675 if ( _pppWidgets._dataSource->currentText() == "RINEX Files") { 1676 _runningPPP = true; 1677 enableStartStop(); 1674 1678 BNC_CORE->startPPP(); 1675 1679 } 1676 1680 else if ( !_reqcActionComboBox->currentText().isEmpty() ) { 1677 startPostProcessingReqc(); 1681 if (_reqcActionComboBox->currentText() == "Analyze") { 1682 _runningQC = true; 1683 t_reqcAnalyze* reqcAnalyze = new t_reqcAnalyze(this); 1684 connect(reqcAnalyze, SIGNAL(finished()), this, SLOT(slotPostProcessingFinished())); 1685 reqcAnalyze->start(); 1686 } 1687 else { 1688 _runningEdit = true; 1689 t_reqcEdit* reqcEdit = new t_reqcEdit(this); 1690 connect(reqcEdit, SIGNAL(finished()), this, SLOT(slotPostProcessingFinished())); 1691 reqcEdit->start(); 1692 } 1693 enableStartStop(); 1678 1694 } 1679 1695 else { … … 1749 1765 //////////////////////////////////////////////////////////////////////////// 1750 1766 void bncWindow::slotStop() { 1751 int iRet = QMessageBox::question(this, "Stop", "Stop retrieving data?",1767 int iRet = QMessageBox::question(this, "Stop", "Stop retrieving/processing data?", 1752 1768 QMessageBox::Yes, QMessageBox::No, 1753 1769 QMessageBox::NoButton); … … 1758 1774 delete _casterEph; _casterEph = 0; 1759 1775 _runningRealTime = false; 1776 _runningPPP = false; 1760 1777 enableStartStop(); 1761 1778 } … … 2336 2353 // Progress Bar Change 2337 2354 //////////////////////////////////////////////////////////////////////////// 2338 void bncWindow::slotPostPro gress(int nEpo) {2339 if (_actStart) {2340 _actStart->setText(QString("%1 Epochs").arg(nEpo)); 2341 } 2342 } 2343 2344 // Start Post-Processing Reqc 2345 //////////////////////////////////////////////////////////////////////////// 2346 void bncWindow::startPostProcessingReqc() { 2347 _running PostProcessingReqc = true;2355 void bncWindow::slotPostProcessingProgress(int nEpo) { 2356 _actStart->setText(QString("%1 Epochs").arg(nEpo)); 2357 } 2358 2359 // Post-Processing Reqc Finished 2360 //////////////////////////////////////////////////////////////////////////// 2361 void bncWindow::slotPostProcessingFinished() { 2362 _runningPPP = false; 2363 _runningEdit = false; 2364 _runningQC = false; 2348 2365 enableStartStop(); 2349 if (_reqcActionComboBox->currentText() == "Analyze") {2350 t_reqcAnalyze* reqcAnalyze = new t_reqcAnalyze(this);2351 connect(reqcAnalyze, SIGNAL(finished()),2352 this, SLOT(slotFinishedPostProcessingReqc()));2353 reqcAnalyze->start();2354 }2355 else {2356 t_reqcEdit* reqcEdit = new t_reqcEdit(this);2357 connect(reqcEdit, SIGNAL(finished()),2358 this, SLOT(slotFinishedPostProcessingReqc()));2359 reqcEdit->start();2360 }2361 }2362 2363 // Post-Processing Reqc Finished2364 ////////////////////////////////////////////////////////////////////////////2365 void bncWindow::slotFinishedPostProcessingReqc() {2366 _runningPostProcessingReqc = false;2367 if (_reqcActionComboBox->currentText() != "Analyze") {2368 QMessageBox::information(this, "Information",2369 "RINEX Processing Thread Finished");2370 }2371 enableStartStop();2372 }2373 2374 //2375 ////////////////////////////////////////////////////////////////////////////2376 void bncWindow::slotFinishedRnxPPP() {2377 if (_actStart) {2378 _actStart->setText(tr("Sta&rt"));2379 }2380 2366 } 2381 2367 … … 2392 2378 //////////////////////////////////////////////////////////////////////////// 2393 2379 void bncWindow::enableStartStop() { 2394 2395 if ( _reqcActionComboBox && !_reqcActionComboBox->currentText().isEmpty() ) {2396 if (_runningP ostProcessingReqc) {2397 _actSt art->setEnabled(false);2398 } 2399 else {2400 _actStart->setEnabled(true);2401 }2380 if ( running() ) { 2381 _actStart->setEnabled(false); 2382 if (_runningPPP) { 2383 _actStop->setEnabled(true); 2384 } 2385 } 2386 else { 2387 _actStart->setEnabled(true); 2402 2388 _actStop->setEnabled(false); 2403 }2404 else {2405 if (_runningRealTime) {2406 _actStart->setEnabled(false);2407 _actStop->setEnabled(true);2408 }2409 else {2410 _actStop->setEnabled(false);2411 if (_mountPointsTable->rowCount() == 0) {2412 _actStart->setEnabled(false);2413 }2414 else {2415 _actStart->setEnabled(true);2416 }2417 }2418 2389 } 2419 2390 } -
trunk/BNC/src/bncwindow.h
r5943 r5971 93 93 void slotSetUploadTrafo(); 94 94 void slotReqcEditOption(); 95 void slotFinishedPostProcessingReqc(); 96 void slotPostProgress(int); 97 void slotFinishedRnxPPP(); 95 void slotPostProcessingFinished(); 96 void slotPostProcessingProgress(int); 98 97 99 98 protected: … … 107 106 void enableWidget(bool enable, QWidget* widget); 108 107 void startRealTime(); 109 void startPostProcessingReqc();110 108 void enableStartStop(); 111 109 … … 223 221 224 222 bool _runningRealTime; 225 bool _runningPostProcessingReqc; 223 bool _runningPPP; 224 bool _runningEdit; 225 bool _runningQC; 226 227 bool running() {return _runningRealTime || _runningPPP || _runningEdit || _runningQC;} 226 228 227 229 bncMapWin* _mapWin;
Note:
See TracChangeset
for help on using the changeset viewer.