Changeset 8397 in ntrip for trunk/BNC/src/reqcdlg.cpp


Ignore:
Timestamp:
Jun 28, 2018, 12:47:06 PM (2 years ago)
Author:
stuerze
Message:

some changes to allow 10 Hz observation data generation with correct file names and observation data resampling (RINEX files, feed engine) and harmonization of all 3 applications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/reqcdlg.cpp

    r8252 r8397  
    6969
    7070  _reqcRnxVersion        = new QComboBox(this);
    71   _reqcSampling          = new QSpinBox(this);
     71  _reqcSampling          = new QComboBox(this);
    7272  _reqcStartDateTime     = new QDateTimeEdit(this);
    7373  _reqcStartDateTime->setDisplayFormat(timeFmtString);
     
    9494  _reqcNewReceiverNumber = new QLineEdit(this);
    9595
    96 
    9796  _reqcRnxVersion->setEditable(false);
    9897  _reqcRnxVersion->addItems(QString("2,3").split(","));
    9998  _reqcRnxVersion->setMaximumWidth(7*ww);
    10099
    101   _reqcSampling->setMinimum(0);
    102   _reqcSampling->setMaximum(60);
    103   _reqcSampling->setSingleStep(5);
    104   _reqcSampling->setSuffix(" sec");
    105   _reqcSampling->setMaximumWidth(7*ww);
     100  _reqcSampling->setEditable(false);
     101  _reqcSampling->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(","));
     102  bncSettings settings;
     103  int ll = _reqcSampling->findText(settings.value("reqcSampl").toString());
     104  if (ll != -1) {
     105    _reqcSampling->setCurrentIndex(ll);
     106  }
    106107
    107108  // Read Options
    108109  // ------------
    109   bncSettings settings;
    110 
    111110  int kk = _reqcRnxVersion->findText(settings.value("reqcRnxVersion").toString());
    112111  if (kk != -1) {
    113112    _reqcRnxVersion->setCurrentIndex(kk);
    114113  }
    115   _reqcSampling->setValue(settings.value("reqcSampling").toInt());
     114  _reqcSampling->findText(settings.value("reqcSampling").toString());
    116115  if (settings.value("reqcStartDateTime").toString().isEmpty()) {
    117116    _reqcStartDateTime->setDateTime(QDateTime::fromString("1967-11-02T00:00:00", Qt::ISODate));
     
    242241  // -----------------------------
    243242  _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. <i>[key: reqcRnxVersion]</i></p>"));
    244   _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. <i>[key: reqcSampling]</i></p>"));
     243  _reqcSampling->setWhatsThis(tr("<p>Select sampling rate of emerging new RINEX Observation file. <i>[key: reqcSampling]</i></p>"));
    245244  _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_'. <i>[key: reqcV2Priority]</i></p>"));
    246245  _reqcStartDateTime->setWhatsThis(tr("<p>Specify begin of emerging new RINEX Observation file. <i>[key: reqcStartDateTime]</i></p>"));
     
    314313
    315314  settings.setValue("reqcRnxVersion"       , _reqcRnxVersion->currentText());
    316   settings.setValue("reqcSampling"         , _reqcSampling->value());
     315  settings.setValue("reqcSampling"         , _reqcSampling->currentText());
    317316  settings.setValue("reqcV2Priority"       , _reqcV2Priority->text());
    318317  settings.setValue("reqcStartDateTime"    , _reqcStartDateTime->dateTime().toString(Qt::ISODate));
Note: See TracChangeset for help on using the changeset viewer.