Changeset 3782 in ntrip


Ignore:
Timestamp:
Apr 5, 2012, 11:52:26 AM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r3781 r3782  
    7979  _bncFigureLate = new bncFigureLate(this);
    8080  _bncFigurePPP = new bncFigurePPP(this);
    81   _postProcessingRunningPPP  = false;
    82   _postProcessingRunningTeqc = false;
     81  _runningRealTime           = false;
     82  _runningPostProcessingPPP  = false;
     83  _runningPostProcessingTeqc = false;
    8384
    8485  int ww = QFontMetrics(this->font()).width('w');
     
    120121  _actDeleteMountPoints->setEnabled(false);
    121122
    122   _actGetData = new QAction(tr("Sta&rt"),this);
    123   connect(_actGetData, SIGNAL(triggered()), SLOT(slotGetData()));
    124 
    125   _actPostProcessing = new QAction(tr("Start PPP/Teqc"),this);
    126   connect(_actPostProcessing, SIGNAL(triggered()), SLOT(slotStartPostProcessing()));
     123  _actStart = new QAction(tr("Sta&rt"),this);
     124  connect(_actStart, SIGNAL(triggered()), SLOT(slotStart()));
    127125
    128126  _actStop = new QAction(tr("Sto&p"),this);
     
    609607  _aogroup->addTab(uploadgroup,tr("Upload (clk)"));
    610608  _aogroup->addTab(uploadEphgroup,tr("Upload (eph)"));
    611 
    612   connect(_aogroup, SIGNAL(currentChanged(int)),
    613           this, SLOT(slotEnablePostProcessing()));
    614609
    615610  // Log Tab
     
    12131208  // ----------
    12141209  if ( Qt::CheckState(settings.value("autoStart").toInt()) == Qt::Checked) {
    1215     slotGetData();
     1210    slotStart();
    12161211  }
    12171212}
     
    12361231  QListIterator<QString> it(settings.value("mountPoints").toStringList());
    12371232  if (!it.hasNext()) {
    1238     _actGetData->setEnabled(false);
     1233    _actStart->setEnabled(false);
    12391234  }
    12401235  int iRow = 0;
     
    13901385
    13911386  if (_mountPointsTable->rowCount() == 0) {
    1392     _actGetData->setEnabled(false);
     1387    _actStart->setEnabled(false);
    13931388  }
    13941389}
     
    14571452  _mountPointsTable->sortItems(1);
    14581453  if (mountPoints->count() > 0 && !_actStop->isEnabled()) {
    1459     _actGetData->setEnabled(true);
     1454    _actStart->setEnabled(true);
    14601455  }
    14611456  delete mountPoints;
     
    16571652  delete _caster;    _caster    = 0;
    16581653  delete _casterEph; _casterEph = 0;
    1659   _actGetData->setEnabled(true);
     1654  _actStart->setEnabled(true);
    16601655  _actStop->setEnabled(false);
    16611656}
     
    16631658// Retrieve Data
    16641659////////////////////////////////////////////////////////////////////////////
    1665 void bncWindow::slotGetData() {
     1660void bncWindow::slotStart() {
    16661661  slotSaveOptions();
    16671662
     
    16691664
    16701665  _actDeleteMountPoints->setEnabled(false);
    1671   _actGetData->setEnabled(false);
     1666  _actStart->setEnabled(false);
    16721667  _actStop->setEnabled(true);
    16731668
     
    17331728    delete _caster;    _caster    = 0;
    17341729    delete _casterEph; _casterEph = 0;
    1735     _actGetData->setEnabled(true);
     1730    _actStart->setEnabled(true);
    17361731    _actStop->setEnabled(false);
    17371732  }
     
    18971892  toolBar->addAction(_actAddMountPoints);
    18981893  toolBar->addAction(_actDeleteMountPoints);
    1899   toolBar->addAction(_actGetData);
     1894  toolBar->addAction(_actStart);
    19001895  toolBar->addAction(_actStop);
    1901   toolBar->addAction(_actPostProcessing);
    19021896  toolBar->addWidget(new QLabel("                                           "));
    19031897  toolBar->addAction(_actwhatsthis);
     
    21402134    enableWidget(!enable10, _teqcNavFileChooser);
    21412135    enableWidget(!enable10, _teqcOutLineEdit);
    2142   }
    2143 
    2144   slotEnablePostProcessing();
    2145 }
    2146 
    2147 // Enable/Disable Post-Processing Action
    2148 ////////////////////////////////////////////////////////////////////////////
    2149 void bncWindow::slotEnablePostProcessing() {
    2150   if (_actPostProcessing) {
    2151     if (_postProcessingRunningPPP || _postProcessingRunningTeqc) {
    2152       _actPostProcessing->setEnabled(false);
    2153     }
    2154     else {
    2155       if      (_aogroup->currentIndex() == _tabIndexPPP1 ||
    2156                _aogroup->currentIndex() == _tabIndexPPP2) {
    2157         _actPostProcessing->setText("Start PPP");
    2158         bool enable = _pppSPPComboBox->currentText() == "Post-Processing";
    2159         _actPostProcessing->setEnabled(enable);
    2160       }
    2161       else if (_aogroup->currentIndex() == _tabIndexTeqc) {
    2162         _actPostProcessing->setText("Start Teqc");
    2163         _actPostProcessing->setEnabled(true);
    2164       }
    2165       else {
    2166         _actPostProcessing->setText("Start PPP/Teqc");
    2167         _actPostProcessing->setEnabled(false);
    2168       }
    2169     }
    21702136  }
    21712137}
     
    23462312}
    23472313
    2348 // Start Post-Processing PPP or Teqc (slot)
    2349 ////////////////////////////////////////////////////////////////////////////
    2350 void bncWindow::slotStartPostProcessing() {
    2351   if      (_aogroup->currentIndex() == _tabIndexPPP1 ||
    2352            _aogroup->currentIndex() == _tabIndexPPP2) {
    2353     startPostProcessingPPP();
    2354   }
    2355   else if (_aogroup->currentIndex() == _tabIndexTeqc) {
    2356     startPostProcessingTeqc();
    2357   }
    2358 }
    2359 
    23602314// Start Post-Processing PPP
    23612315////////////////////////////////////////////////////////////////////////////
    23622316void bncWindow::startPostProcessingPPP() {
    23632317#ifdef USE_POSTPROCESSING
    2364   _postProcessingRunningPPP = true;
    2365   slotEnablePostProcessing();
    2366   _actPostProcessing->setText("0 Epochs");
     2318  _runningPostProcessingPPP = true;
     2319  _actStart->setText("0 Epochs");
    23672320
    23682321  slotSaveOptions();
     
    23822335////////////////////////////////////////////////////////////////////////////
    23832336void bncWindow::slotFinishedPostProcessingPPP() {
    2384   _postProcessingRunningPPP = false;
     2337  _runningPostProcessingPPP = false;
    23852338  QMessageBox::information(this, "Information",
    23862339                           "Post-Processing Thread Finished");
    2387   slotEnablePostProcessing();
    23882340}
    23892341
     
    23912343////////////////////////////////////////////////////////////////////////////
    23922344void bncWindow::slotPostProgress(int nEpo) {
    2393   if (_actPostProcessing) {
    2394     _actPostProcessing->setText(QString("%1 Epochs").arg(nEpo));
     2345  if (_actStart) {
     2346    _actStart->setText(QString("%1 Epochs").arg(nEpo));
    23952347  }
    23962348}
     
    23992351////////////////////////////////////////////////////////////////////////////
    24002352void bncWindow::startPostProcessingTeqc() {
    2401   _postProcessingRunningTeqc = false;  // TODO
     2353  _runningPostProcessingTeqc = false;  // TODO
    24022354  QMessageBox::information(this, "Information",
    24032355                           "Teqc-Processing Not Yet Implemented");
    2404   slotEnablePostProcessing();
    24052356}
    24062357
     
    24082359////////////////////////////////////////////////////////////////////////////
    24092360void bncWindow::slotFinishedPostProcessingTeqc() {
    2410   _postProcessingRunningTeqc = false;
     2361  _runningPostProcessingTeqc = false;
    24112362  QMessageBox::information(this, "Information",
    24122363                           "Teqc-Processing Thread Finished");
    2413   slotEnablePostProcessing();
    24142364}
    24152365
  • trunk/BNC/bncwindow.h

    r3740 r3782  
    7676    void slotSaveOptions();
    7777    void slotAddMountPoints();
    78     void slotGetData();
    79     void slotStartPostProcessing();
     78    void slotStart();
    8079    void slotFinishedPostProcessingPPP();
    8180    void slotFinishedPostProcessingTeqc();
     
    9190    void slotDelUploadRow();
    9291    void slotSetUploadTrafo();
    93     void slotEnablePostProcessing();
    9492    void slotTeqcEditOption();
    9593
     
    102100    void populateUploadTable();
    103101    void enableWidget(bool enable, QWidget* widget);
     102    void startRealTime();
    104103    void startPostProcessingPPP();
    105104    void startPostProcessingTeqc();
     
    114113    QAction*   _actSaveOpt;
    115114    QAction*   _actQuit;
    116     QAction*   _actGetData;
    117     QAction*   _actPostProcessing;
     115    QAction*   _actStart;
    118116    QAction*   _actStop;
    119117    QAction*   _actAddMountPoints;
     
    248246    int _tabIndexPPP2;
    249247    int _tabIndexTeqc;
    250     bool _postProcessingRunningPPP;
    251     bool _postProcessingRunningTeqc;
     248    bool _realTimeRunning;
     249    bool _runningRealTime;
     250    bool _runningPostProcessingPPP;
     251    bool _runningPostProcessingTeqc;
    252252};
    253253#endif
  • trunk/BNC/rinex/bncpostprocess.cpp

    r3763 r3782  
    158158      obs.GPSWeek  = epo->tt.gpsw();
    159159      obs.GPSWeeks = epo->tt.gpssec();
     160      //// TODO: check RINEX Version 3 types
    160161      for (int iType = 0; iType < _rnxObsFile->nTypes(obs.satSys); iType++) {
    161162        QByteArray type = _rnxObsFile->obsType(obs.satSys,iType).toAscii();
Note: See TracChangeset for help on using the changeset viewer.