Changeset 9158 in ntrip for trunk/BNC/src/bncwindow.cpp


Ignore:
Timestamp:
Oct 1, 2020, 3:19:04 PM (4 years ago)
Author:
stuerze
Message:

the default RINEX version in BNC is changed from version 2 to verision 3

File:
1 edited

Legend:

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

    r9107 r9158  
    239239  _rnxSkelLineEdit->setMaximumWidth(5*ww);
    240240  _rnxScrpLineEdit    = new QLineEdit(settings.value("rnxScript").toString());
    241   _rnxV3CheckBox      = new QCheckBox();
    242   _rnxV3CheckBox->setCheckState(Qt::CheckState(settings.value("rnxV3").toInt()));
     241  _rnxV2CheckBox      = new QCheckBox();
     242  _rnxV2CheckBox->setCheckState(Qt::CheckState(settings.value("rnxV2").toInt()));
    243243  QString hlp = settings.value("rnxV2Priority").toString();
    244244  if (hlp.isEmpty()) {
     
    247247  _rnxV2Priority = new QLineEdit(hlp);
    248248
    249   connect(_rnxPathLineEdit, SIGNAL(textChanged(const QString &)),
    250           this, SLOT(slotBncTextChanged()));
    251   connect(_rnxV3CheckBox, SIGNAL(stateChanged(int)),
    252           this, SLOT(slotBncTextChanged()));
     249  connect(_rnxPathLineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(slotBncTextChanged()));
     250  connect(_rnxV2CheckBox, SIGNAL(stateChanged(int)), this, SLOT(slotBncTextChanged()));
    253251
    254252  // RINEX Ephemeris Options
     
    263261  }
    264262  _ephOutPortLineEdit    = new QLineEdit(settings.value("ephOutPort").toString());
    265   _ephV3CheckBox = new QCheckBox();
    266   _ephV3CheckBox->setCheckState(Qt::CheckState(settings.value("ephV3").toInt()));
     263  _ephV2CheckBox = new QCheckBox();
     264  _ephV2CheckBox->setCheckState(Qt::CheckState(settings.value("ephV2").toInt()));
    267265
    268266  connect(_ephOutPortLineEdit, SIGNAL(textChanged(const QString &)),
     
    764762  oLayout->addWidget(new QLabel("Version 2 signal priority"),      5, 0);
    765763  oLayout->addWidget(_rnxV2Priority,                               5, 1, 1, 15);
    766   oLayout->addWidget(new QLabel("Version 3"),                      6, 0);
    767   oLayout->addWidget(_rnxV3CheckBox,                               6, 1);
     764  oLayout->addWidget(new QLabel("Version 2"),                      6, 0);
     765  oLayout->addWidget(_rnxV2CheckBox,                               6, 1);
    768766  oLayout->addWidget(new QLabel(""),                               7, 1);
    769767  oLayout->setRowStretch(8, 999);
     
    785783  eLayout->addWidget(new QLabel("Port"),                          3, 0);
    786784  eLayout->addWidget(_ephOutPortLineEdit,                         3, 1);
    787   eLayout->addWidget(new QLabel("Version 3"),                     4, 0);
    788   eLayout->addWidget(_ephV3CheckBox,                              4, 1);
     785  eLayout->addWidget(new QLabel("Version 2"),                     4, 0);
     786  eLayout->addWidget(_ephV2CheckBox,                              4, 1);
    789787  eLayout->setRowStretch(5, 999);
    790788
     
    938936  pppLayout1->addWidget(new QLabel("Data source"),           ir, 0);
    939937  pppLayout1->addWidget(_pppWidgets._dataSource,             ir, 1);
    940   pppLayout1->addWidget(new QLabel("   Version 3 filenames"),ir, 4);
    941   pppLayout1->addWidget(_pppWidgets._v3filenames,            ir, 5, 1, 3);
     938  pppLayout1->addWidget(new QLabel("   Version 2 filenames"),ir, 4);
     939  pppLayout1->addWidget(_pppWidgets._v2filenames,            ir, 5, 1, 3);
    942940  ++ir;
    943941  pppLayout1->addWidget(new QLabel("Corrections stream"),    ir, 0);
     
    12921290  // WhatsThis, Network
    12931291  // ------------------
    1294   _proxyHostLineEdit->setWhatsThis(tr("<p>If you are running BNC within a protected Local Area Network (LAN), you may need to use a proxy server to access the Internet. Enter your proxy server IP and port number in case one is operated in front of BNC. If you do not know the IP and port of your proxy server, check the proxy server settings in your Internet browser or ask your network administrator.</p><p>Note that IP streaming is sometimes not allowed in a LAN. In this case you need to ask your network administrator for an appropriate modification of the local security policy or for the installation of a TCP relay to the Ntrip Broadcasters. If this is not possible, you may need to run BNC outside your LAN on a network that has unobstructed connection to the Internet. <i>[key: proxyHost]</i></p>"));
     1292  _proxyHostLineEdit->setWhatsThis(tr("<p>If you are running BNC within a protected Local Area Network (LAN), you may need to use a proxy server to access the Internet. Enter your proxy server IP and port number in case one is operated in front of BNC. If you do not know the IP and port of your proxy server, check the proxy server settings in your Internet browser or ask your network administrator. Without any entry, BNC will try to use the system proxies. </p><p>Note that IP streaming is sometimes not allowed in a LAN. In this case you need to ask your network administrator for an appropriate modification of the local security policy or for the installation of a TCP relay to the Ntrip Broadcasters. If this is not possible, you may need to run BNC outside your LAN on a network that has unobstructed connection to the Internet. <i>[key: proxyHost]</i></p>"));
    12951293  _proxyPortLineEdit->setWhatsThis(tr("<p>Enter your proxy server port number in case a proxy is operated in front of BNC. <i>[key: proxyPort]</i></p>"));
    12961294  _sslCaCertPathLineEdit->setWhatsThis(tr("<p>Communication with an Ntrip Broadcaster over SSL requires the exchange of client and/or server certificates. Specify the path to a directory where you save certificates on your system. Don't try communication via SSL if you are not sure whether this is supported by the involved Ntrip Broadcaster.</p><p>Note that SSL communication is usually done over port 443. <i>[key: sslCaCertPath]</i></p>"));
     
    13141312  _rnxScrpLineEdit->setWhatsThis(tr("<p>Whenever a RINEX Observation file is finally saved, you may want to compress, copy or upload it immediately, for example via FTP. BNC allows you to execute a script/batch file to carry out such operation.</p><p>Specify the full path of a script or batch file. BNC will pass the full RINEX Observation file path to the script as command line parameter (%1 on Windows systems, $1 on Unix/Linux/Mac systems). <i>[key: rnxScript]</i></p>"));
    13151313  _rnxV2Priority->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>'I:ABCX' (System specific signal priorities for IRNSS) </li><li>'G:12&PWCSLX 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&PWCSLX G:5&IQX R:12&PC R:3&IQX R:46&ABX E:16&BCXZ E:578&IQX J:1&SLXCZ J:26&SLX J:5&IQX C:267&IQX C:128&DPX C:7&DPZ I:ABCX S:1&C S:5&IQX'. <i>[key: rnxV2Priority]</i></p>"));
    1316   _rnxV3CheckBox->setWhatsThis(tr("<p>The default format for RINEX Observation files is RINEX Version 2.</p><p>Select 'Version 3' if you want to save observations in RINEX Version 3 format. <i>[key: rnxV3]</i></p>"));
     1314  _rnxV2CheckBox->setWhatsThis(tr("<p>The default format for RINEX Observation files is RINEX Version 3.</p><p>Select 'Version 2' if you want to save observations in RINEX Version 2 format. <i>[key: rnxV2]</i></p>"));
    13171315
    13181316  // WhatsThis, RINEX Ephemeris
     
    13211319  _ephIntrComboBox->setWhatsThis(tr("<p>Select the length of the RINEX Navigation file. <i>[key: ephIntr]</i></p>"));
    13221320  _ephOutPortLineEdit->setWhatsThis(tr("<p>BNC can produce ephemeris data in RINEX Navigation ASCII format on your local host through an IP port.</p><p>Specify a port number here to activate this function. <i>[key: ephOutPort]</i></p>"));
    1323   _ephV3CheckBox->setWhatsThis(tr("<p>The default format for output of RINEX Navigation data containing Broadcast Ephemeris is RINEX Version 2.</p><p>Select 'Version 3' if you want to output ephemeris in RINEX Version 3 format. <i>[key: ephV3]</i></p>"));
     1321  _ephV2CheckBox->setWhatsThis(tr("<p>The default format for output of RINEX Navigation data containing Broadcast Ephemeris is RINEX Version 3.</p><p>Select 'Version 2' if you want to output ephemeris in RINEX Version 2 format. <i>[key: ephV2]</i></p>"));
    13241322
    13251323  // WhatsThis, RINEX Editing & QC
     
    13941392  _pppWidgets._antexFile->setWhatsThis(tr("<p>Observations in RTCM streams or RINEX files should be referred to the receiver's and to the satellite's Antenna Phase Center (APC) and therefore be corrected for<ul><li>Receiver APC offsets</li><li>Receiver APC variations</li><li>Satellite APC offsets.</li></ul> Specify the full path to an IGS 'ANTEX file' which contains APC offsets and variations.</p><p>If you don't specify an 'ANTEX file' then observations will not be corrected for APC offsets and variations.</p>"));
    13951393  _pppWidgets._crdFile->setWhatsThis(tr("<p>Enter the full path to an ASCII file which specifies the streams or files of those stations you want to process. Specifying a 'Coordinates file' is optional. If it exists, it should contain one record per station with the following parameters separated by blank character:<p><ul><li>Specify the station either by<ul><li>the 'Mountpoint' of the station's RTCM stream (when in real-time PPP mode), or</li><li>the 4-charater station ID of the RINEX Observations file (when in post processing PPP mode).</li></ul></li><li>Approximate X,Y,Z coordinate of station's Antenna Reference Point [m] (ARP, specify '0.0 0.0 0.0' if unknown).</li><li>North, East and Up component of antenna eccentricity [m] (specify '0.0 0.0 0.0' if unknown).</li><li>20 Characters describing the antenna type and radome following the IGS 'ANTEX file' standard (leave blank if unknown).</li><li>Receiver type following the naming conventions for IGS equipment.</li></ul></p><p>Records with exclamation mark '!' in the first column or blank records will be interpreted as comment lines and ignored.</p>"));
    1396   _pppWidgets._v3filenames->setWhatsThis(tr("<p>Tick 'Version 3 filenames' to let BNC create so-called extended filenames for PPP logfiles, NMEA files and SINEX Troposphere files following the RINEX Version 3 standard.</p><p>Default is an empty check box, meaning to create filenames following the RINEX Version 2 standard. The file content is not affected by this option. It only concerns the filenames.</p>"));
     1394  _pppWidgets._v2filenames->setWhatsThis(tr("<p>Tick 'Version 2 filenames' to let BNC create filenames for PPP logfiles , NMEA files and SINEX Troposphere files following the RINEX Version 2 standard.</p><p>Default is an empty check box, meaning to create filenames following the RINEX Version 3 standard. The file content is not affected by this option. It only concerns the filenames.</p>"));
    13971395  _pppWidgets._logPath->setWhatsThis(tr("<p>Specify a directory for saving daily PPP logfiles. If the specified directory does not exist, BNC will not create such files.</p><p>Default is an empty option field, meaning that no PPP logfiles shall be produced.</p>"));
    13981396  _pppWidgets._nmeaPath->setWhatsThis(tr("<p>Specify a directory for saving coordinates in daily NMEA files. If the specified directory does not exist, BNC will not create such files.</p><p>Default is an empty option field, meaning that no NMEA file shall be produced.</p>"));
     
    15151513  delete _rnxSkelLineEdit;
    15161514  delete _rnxScrpLineEdit;
    1517   delete _rnxV3CheckBox;
     1515  delete _rnxV2CheckBox;
    15181516  delete _rnxV2Priority;
    15191517  delete _ephPathLineEdit;
    15201518  delete _ephIntrComboBox;
    15211519  delete _ephOutPortLineEdit;
    1522   delete _ephV3CheckBox;
     1520  delete _ephV2CheckBox;
    15231521  delete _corrPathLineEdit;
    15241522  delete _corrIntrComboBox;
     
    19711969  settings.setValue("rnxScript",    _rnxScrpLineEdit->text());
    19721970  settings.setValue("rnxV2Priority",_rnxV2Priority->text());
    1973   settings.setValue("rnxV3",        _rnxV3CheckBox->checkState());
     1971  settings.setValue("rnxV2",        _rnxV2CheckBox->checkState());
    19741972// RINEX Ephemeris
    19751973  settings.setValue("ephPath",       _ephPathLineEdit->text());
    19761974  settings.setValue("ephIntr",       _ephIntrComboBox->currentText());
    19771975  settings.setValue("ephOutPort",    _ephOutPortLineEdit->text());
    1978   settings.setValue("ephV3",         _ephV3CheckBox->checkState());
     1976  settings.setValue("ephV2",         _ephV2CheckBox->checkState());
    19791977// Broadcast Corrections
    19801978  settings.setValue("corrPath",    _corrPathLineEdit->text());
     
    24592457    enableWidget(enable, _rnxScrpLineEdit);
    24602458    enableWidget(enable, _rnxV2Priority);
    2461     enableWidget(enable, _rnxV3CheckBox);
     2459    enableWidget(enable, _rnxV2CheckBox);
    24622460
    24632461    bool enable1 = true;
    2464     enable1 = _rnxV3CheckBox->isChecked();
     2462    enable1 = _rnxV2CheckBox->isChecked();
    24652463    if (enable && enable1) {
     2464      enableWidget(true, _rnxV2Priority);
     2465    }
     2466    if (enable && !enable1) {
    24662467      enableWidget(false, _rnxV2Priority);
    2467     }
    2468     if (enable && !enable1) {
    2469       enableWidget(true, _rnxV2Priority);
    24702468    }
    24712469  }
     
    24732471  // RINEX Observations, Signal Priority
    24742472  // -----------------------------------
    2475   if (sender() == 0 || sender() == _rnxV3CheckBox) {
     2473  if (sender() == 0 || sender() == _rnxV2CheckBox) {
    24762474    if (!_rnxPathLineEdit->text().isEmpty()) {
    24772475      enableWidget(enable, _rnxIntrComboBox);
    2478       enable = !_rnxV3CheckBox->isChecked();
     2476      enable = _rnxV2CheckBox->isChecked();
    24792477      enableWidget(enable, _rnxV2Priority);
    24802478    }
     
    24862484    enable = !_ephPathLineEdit->text().isEmpty() || !_ephOutPortLineEdit->text().isEmpty();
    24872485    enableWidget(enable, _ephIntrComboBox);
    2488     enableWidget(enable, _ephV3CheckBox);
     2486    enableWidget(enable, _ephV2CheckBox);
    24892487  }
    24902488
Note: See TracChangeset for help on using the changeset viewer.