Changeset 8398 in ntrip for branches/BNC_2.12/src/reqcdlg.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/reqcdlg.cpp

    r8130 r8398  
    5858
    5959  _reqcRnxVersion        = new QComboBox(this);
    60   _reqcSampling          = new QSpinBox(this);
     60  _reqcSampling          = new QComboBox(this);
    6161  _reqcStartDateTime     = new QDateTimeEdit(this);
    6262  _reqcStartDateTime->setDisplayFormat(timeFmtString);
     
    8383  _reqcNewReceiverNumber = new QLineEdit(this);
    8484
    85 
    8685  _reqcRnxVersion->setEditable(false);
    8786  _reqcRnxVersion->addItems(QString("2,3").split(","));
    8887  _reqcRnxVersion->setMaximumWidth(7*ww);
    8988
    90   _reqcSampling->setMinimum(0);
    91   _reqcSampling->setMaximum(60);
    92   _reqcSampling->setSingleStep(5);
    93   _reqcSampling->setSuffix(" sec");
    94   _reqcSampling->setMaximumWidth(7*ww);
     89  _reqcSampling->setEditable(false);
     90  _reqcSampling->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(","));
     91  bncSettings settings;
     92  int ll = _reqcSampling->findText(settings.value("reqcSampl").toString());
     93  if (ll != -1) {
     94    _reqcSampling->setCurrentIndex(ll);
     95  }
    9596
    9697  // Read Options
    9798  // ------------
    98   bncSettings settings;
    99 
    10099  int kk = _reqcRnxVersion->findText(settings.value("reqcRnxVersion").toString());
    101100  if (kk != -1) {
    102101    _reqcRnxVersion->setCurrentIndex(kk);
    103102  }
    104   _reqcSampling->setValue(settings.value("reqcSampling").toInt());
     103  _reqcSampling->findText(settings.value("reqcSampling").toString());
    105104  if (settings.value("reqcStartDateTime").toString().isEmpty()) {
    106105    _reqcStartDateTime->setDateTime(QDateTime::fromString("1967-11-02T00:00:00", Qt::ISODate));
     
    231230  // -----------------------------
    232231  _reqcRnxVersion->setWhatsThis(tr("<p>Select version number of emerging new RINEX file.</p><p>Note the following:</p><p>When converting <u>RINEX Version 2 to Version 3 </u>Observation files, the tracking mode or channel information (signal attribute, see RINEX Version 3 documentation) in the (last out of the three characters) observation code is left blank if unknown.</p><p>When converting <u>RINEX Version 3 to Version 2</u>, the mapping of observations follows a 'Signal priority list' with signal attributes as defined in RINEX Version 3.</p>"));
    233   _reqcSampling->setWhatsThis(tr("<p>Select sampling rate of emerging new RINEX Observation file.</p><p>'0 sec' means that observations from all epochs in the RINEX input file will become part of the RINEX output file.</p>"));
     232  _reqcSampling->setWhatsThis(tr("<p>Select sampling rate of emerging new RINEX Observation file.</p>"));
    234233  _reqcV2Priority->setWhatsThis(tr("<p>Specify a priority list of characters defining signal attributes as defined in RINEX Version 3. Priorities will be used to map observations with RINEX Version 3 attributes from incoming streams to Version 2. The underscore character '_' stands for undefined attributes. A question mark '?' can be used as wildcard which represents any one character.</p><p>Signal priorities can be specified as equal for all systems, as system specific or as system and freq. specific. For example: </li><ul><li>'CWPX_?' (General signal priorities valid for all GNSS) </li><li>'C:IQX I:ABCX' (System specific signal priorities for BDS and IRNSS) </li><li>'G:12&PWCSLXYN G:5&IQX R:12&PC R:3&IQX' (System and frequency specific signal priorities) </li></ul>Default is the following priority list 'G:12&PWCSLXYN_ G:5&IQX_ R:12&PC_ R:3&IQX_ E:16&BCX_ E:578&IQX_ J:1&SLXCZ_ J:26&SLX_ J:5&IQX_ C:IQX_ I:ABCX_ S:1&C_ S:5&IQX_'.</p>"));
    235234  _reqcStartDateTime->setWhatsThis(tr("<p>Specify begin of emerging new RINEX Observation file.</p>"));
     
    303302
    304303  settings.setValue("reqcRnxVersion"       , _reqcRnxVersion->currentText());
    305   settings.setValue("reqcSampling"         , _reqcSampling->value());
     304  settings.setValue("reqcSampling"         , _reqcSampling->currentText());
    306305  settings.setValue("reqcV2Priority"       , _reqcV2Priority->text());
    307306  settings.setValue("reqcStartDateTime"    , _reqcStartDateTime->dateTime().toString(Qt::ISODate));
Note: See TracChangeset for help on using the changeset viewer.