Changeset 8398 in ntrip for branches/BNC_2.12/src/bncwindow.cpp


Ignore:
Timestamp:
Jun 28, 2018, 12:53:59 PM (6 years ago)
Author:
stuerze
Message:

some changes to allow RINEX file generation with correct version 3 file names, 10 Hz observation data processing and resampling (RINEX files, feed engine) and harmonization of all avalable sampling cases (RINEX files, feed engine, reqc edit)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/bncwindow.cpp

    r8371 r8398  
    206206    _rnxIntrComboBox->setCurrentIndex(ii);
    207207  }
    208   _rnxSamplSpinBox    = new QSpinBox();
    209   _rnxSamplSpinBox->setMinimum(0);
    210   _rnxSamplSpinBox->setMaximum(60);
    211   _rnxSamplSpinBox->setSingleStep(5);
    212   _rnxSamplSpinBox->setValue(settings.value("rnxSampl").toInt());
     208  _rnxSamplComboBox    = new QComboBox();
     209  _rnxSamplComboBox->setEditable(false);
     210  _rnxSamplComboBox->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(","));
     211  int ij = _rnxSamplComboBox->findText(settings.value("rnxSampl").toString());
     212  if (ij != -1) {
     213    _rnxSamplComboBox->setCurrentIndex(ij);
     214  }
    213215  _rnxFileCheckBox = new QCheckBox();
    214216  _rnxFileCheckBox->setCheckState(Qt::CheckState(settings.value("rnxOnlyWithSKL").toInt()));
    215   _rnxSamplSpinBox->setSuffix(" sec");
    216217  _rnxSkelLineEdit    = new QLineEdit(settings.value("rnxSkel").toString());
    217218  _rnxSkelLineEdit->setMaximumWidth(5*ww);
     
    277278  _outWaitSpinBox->setSuffix(" sec");
    278279  _outWaitSpinBox->setValue(settings.value("outWait").toInt());
    279   _outSamplSpinBox    = new QSpinBox();
    280   _outSamplSpinBox->setMinimum(0);
    281   _outSamplSpinBox->setMaximum(60);
    282   _outSamplSpinBox->setSingleStep(5);
    283   _outSamplSpinBox->setValue(settings.value("outSampl").toInt());
    284   _outSamplSpinBox->setSuffix(" sec");
     280  _outSamplComboBox    = new QComboBox();
     281  _outSamplComboBox->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(","));
     282  int nn = _rnxSamplComboBox->findText(settings.value("rnxSampl").toString());
     283    if (nn != -1) {
     284      _rnxSamplComboBox->setCurrentIndex(nn);
     285    }
    285286  _outFileLineEdit    = new QLineEdit(settings.value("outFile").toString());
    286287  _outUPortLineEdit   = new QLineEdit(settings.value("outUPort").toString());
     
    674675  oLayout->setColumnMinimumWidth(0,14*ww);
    675676  _rnxIntrComboBox->setMaximumWidth(9*ww);
    676   _rnxSamplSpinBox->setMaximumWidth(9*ww);
     677  _rnxSamplComboBox->setMaximumWidth(9*ww);
    677678
    678679  oLayout->addWidget(new QLabel("Saving RINEX observation files.<br>"),0, 0, 1,50);
     
    682683  oLayout->addWidget(_rnxIntrComboBox,                             2, 1);
    683684  oLayout->addWidget(new QLabel("  Sampling"),                     2, 2, Qt::AlignRight);
    684   oLayout->addWidget(_rnxSamplSpinBox,                             2, 3, Qt::AlignLeft);
     685  oLayout->addWidget(_rnxSamplComboBox,                             2, 3, Qt::AlignLeft);
    685686  oLayout->addWidget(new QLabel("Skeleton extension"),             3, 0);
    686687  oLayout->addWidget(_rnxSkelLineEdit,                             3, 1, Qt::AlignLeft);
     
    743744  _outPortLineEdit->setMaximumWidth(9*ww);
    744745  _outWaitSpinBox->setMaximumWidth(9*ww);
    745   _outSamplSpinBox->setMaximumWidth(9*ww);
     746  _outSamplComboBox->setMaximumWidth(9*ww);
    746747  _outUPortLineEdit->setMaximumWidth(9*ww);
    747748
     
    752753  sLayout->addWidget(_outWaitSpinBox,                              1, 3, Qt::AlignLeft);
    753754  sLayout->addWidget(new QLabel("Sampling"),                        2, 0);
    754   sLayout->addWidget(_outSamplSpinBox,                              2, 1, Qt::AlignLeft);
     755  sLayout->addWidget(_outSamplComboBox,                              2, 1, Qt::AlignLeft);
    755756  sLayout->addWidget(new QLabel("File (full path)"),                3, 0);
    756757  sLayout->addWidget(_outFileLineEdit,                              3, 1, 1, 10);
     
    12361237  _rnxPathLineEdit->setWhatsThis(tr("<p>Here you specify the path to where the RINEX Observation files will be stored.</p><p>If the specified directory does not exist, BNC will not create RINEX Observation files.</p>"));
    12371238  _rnxIntrComboBox->setWhatsThis(tr("<p>Select the length of the RINEX Observation file.</p>"));
    1238   _rnxSamplSpinBox->setWhatsThis(tr("<p>Select the RINEX Observation sampling interval in seconds.</p><p>A value of zero '0' tells BNC to store all received epochs into RINEX Observation files.</p>"));
     1239  _rnxSamplComboBox->setWhatsThis(tr("<p>Select the RINEX Observation sampling interval in seconds. </p>"));
    12391240  _rnxSkelLineEdit->setWhatsThis(tr("<p>BNC allows using personal RINEX skeleton files that contain the RINEX header records you would like to include. You can derive a skeleton file from information given in an up to date sitelog.</p><p>A file in the RINEX Observations 'Directory' with a 'Skeleton extension' skl or SKL is interpreted by BNC as a personal RINEX header skeleton file for the corresponding stream. In case of 'SKL'/'skl' the 4-char ID forming the base name has to be written in upper/lower cases. </p>"));
    12401241  _rnxFileCheckBox->setWhatsThis(tr("<p>Tick check box 'Skeleton mandatory' in case you want that RINEX files are only produced if skeleton files are available for BNC. If no skeleton file is available for a particular source then no RINEX Observation file will be produced from the affected stream.</p><p>Note that a skeleton file contains RINEX header information such as receiver and antenna types. In case of stream conversion to RINEX Version 3, a skeleton file should also contain information on potentially available observation types. A missing skeleton file will therefore enforce BNC to only save a default set of RINEX 3 observation types.</p>"));
     
    12791280  _outPortLineEdit->setWhatsThis(tr("<p>BNC can produce synchronized observations in a plain ASCII format on your local host via IP port.</p><p>Specify a port number to activate this function.</p>"));
    12801281  _outWaitSpinBox->setWhatsThis(tr("<p>When feeding a real-time GNSS network engine waiting for synchronized input epoch by epoch, BNC drops whatever is received later than 'Wait for full obs epoch' seconds.</p><p>A value of 3 to 5 seconds is recommended, depending on the latency of the incoming streams and the delay acceptable to your real-time GNSS network engine or product.</p>"));
    1281   _outSamplSpinBox->setWhatsThis(tr("<p>Select a synchronized observation sampling interval in seconds.</p><p>A value of zero '0' tells BNC to send/store all received epochs.</p>"));
     1282  _outSamplComboBox->setWhatsThis(tr("<p>Select a synchronized observation sampling interval in seconds. </p>"));
    12821283  _outFileLineEdit->setWhatsThis(tr("<p>Specify the full path to a file where synchronized observations are saved in plain ASCII format.</p><p>Beware that the size of this file can rapidly increase depending on the number of incoming streams.</p>"));
    12831284  _outUPortLineEdit->setWhatsThis(tr("<p>BNC can produce unsynchronized observations in a plain ASCII format on your local host via IP port.</p><p>Specify a port number to activate this function.</p>"));
     
    14391440  delete _rnxPathLineEdit;
    14401441  delete _rnxIntrComboBox;
    1441   delete _rnxSamplSpinBox;
     1442  delete _rnxSamplComboBox;
    14421443  delete _rnxFileCheckBox;
    14431444  delete _rnxSkelLineEdit;
     
    14541455  delete _outPortLineEdit;
    14551456  delete _outWaitSpinBox;
    1456   delete _outSamplSpinBox;
     1457  delete _outSamplComboBox;
    14571458  delete _outFileLineEdit;
    14581459  delete _outUPortLineEdit;
     
    18531854  settings.setValue("rnxPath",     _rnxPathLineEdit->text());
    18541855  settings.setValue("rnxIntr",     _rnxIntrComboBox->currentText());
    1855   settings.setValue("rnxSampl",    _rnxSamplSpinBox->value());
     1856  settings.setValue("rnxSampl",     _rnxSamplComboBox->currentText());
    18561857  settings.setValue("rnxSkel",     _rnxSkelLineEdit->text());
    18571858  settings.setValue("rnxOnlyWithSKL",_rnxFileCheckBox->checkState());
     
    18631864  settings.setValue("ephIntr",       _ephIntrComboBox->currentText());
    18641865  settings.setValue("ephOutPort",    _ephOutPortLineEdit->text());
    1865    settings.setValue("rnxV3",        _rnxV3CheckBox->checkState());
     1866  settings.setValue("ephV3",         _ephV3CheckBox->checkState())
    18661867// Broadcast Corrections
    18671868  settings.setValue("corrPath",    _corrPathLineEdit->text());
     
    18711872  settings.setValue("outPort",     _outPortLineEdit->text());
    18721873  settings.setValue("outWait",     _outWaitSpinBox->value());
    1873   settings.setValue("outSampl",    _outSamplSpinBox->value());
     1874  settings.setValue("outSampl",    _outSamplComboBox->currentText());
    18741875  settings.setValue("outFile",     _outFileLineEdit->text());
    18751876  settings.setValue("outUPort",    _outUPortLineEdit->text());
     
    21842185  populateMountPointsTable();
    21852186  bncSettings settings;
    2186   _outSamplSpinBox->setValue(settings.value("outSampl").toInt());
     2187  _outSamplComboBox->findText(settings.value("rnxSampl").toString());
    21872188  _outWaitSpinBox->setValue(settings.value("outWait").toInt());
    21882189  QListIterator<bncGetThread*> iTh(threads);
     
    23412342    enable = !_rnxPathLineEdit->text().isEmpty();
    23422343    enableWidget(enable, _rnxIntrComboBox);
    2343     enableWidget(enable, _rnxSamplSpinBox);
     2344    enableWidget(enable, _rnxSamplComboBox);
    23442345    enableWidget(enable, _rnxSkelLineEdit);
    23452346    enableWidget(enable, _rnxFileCheckBox);
     
    23882389    enable = !_outPortLineEdit->text().isEmpty() || !_outFileLineEdit->text().isEmpty();
    23892390    enableWidget(enable, _outWaitSpinBox);
    2390     enableWidget(enable, _outSamplSpinBox);
     2391    enableWidget(enable, _outSamplComboBox);
    23912392  }
    23922393
Note: See TracChangeset for help on using the changeset viewer.