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


Ignore:
Timestamp:
Dec 2, 2020, 12:11:45 PM (3 years ago)
Author:
stuerze
Message:

parameter added to be able to chose the corrections to be combined

File:
1 edited

Legend:

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

    r9252 r9292  
    492492  QPushButton* delCmbRowButton = new QPushButton("Delete");
    493493
    494   connect(_cmbTable, SIGNAL(itemSelectionChanged()),
    495           SLOT(slotBncTextChanged()));
     494  connect(_cmbTable, SIGNAL(itemSelectionChanged()), SLOT(slotBncTextChanged()));
    496495
    497496  _cmbMethodComboBox = new QComboBox();
     
    514513    enableWidget(false, _cmbSamplSpinBox);
    515514  }
     515  _cmbGpsCheckBox = new QCheckBox();
     516  _cmbGpsCheckBox->setCheckState(Qt::CheckState(settings.value("cmbGps").toInt()));
     517  _cmbGloCheckBox = new QCheckBox();
     518  _cmbGloCheckBox->setCheckState(Qt::CheckState(settings.value("cmbGlo").toInt()));
     519  _cmbGalCheckBox = new QCheckBox();
     520  _cmbGalCheckBox->setCheckState(Qt::CheckState(settings.value("cmbGal").toInt()));
     521  _cmbBdsCheckBox = new QCheckBox();
     522  _cmbBdsCheckBox->setCheckState(Qt::CheckState(settings.value("cmbBds").toInt()));
     523  _cmbQzssCheckBox = new QCheckBox();
     524  _cmbQzssCheckBox->setCheckState(Qt::CheckState(settings.value("cmbQzss").toInt()));
     525  _cmbSbasCheckBox = new QCheckBox();
     526  _cmbSbasCheckBox->setCheckState(Qt::CheckState(settings.value("cmbSbas").toInt()));
     527  _cmbIrnssCheckBox = new QCheckBox();
     528  _cmbIrnssCheckBox->setCheckState(Qt::CheckState(settings.value("cmbIrnss").toInt()));
     529
     530  connect(_cmbGpsCheckBox, SIGNAL(stateChanged(int)), this, SLOT(slotBncTextChanged()));
     531  connect(_cmbGloCheckBox, SIGNAL(stateChanged(int)), this, SLOT(slotBncTextChanged()));
     532  connect(_cmbGalCheckBox, SIGNAL(stateChanged(int)), this, SLOT(slotBncTextChanged()));
     533  connect(_cmbBdsCheckBox, SIGNAL(stateChanged(int)), this, SLOT(slotBncTextChanged()));
     534  connect(_cmbQzssCheckBox, SIGNAL(stateChanged(int)), this, SLOT(slotBncTextChanged()));
     535  connect(_cmbSbasCheckBox, SIGNAL(stateChanged(int)), this, SLOT(slotBncTextChanged()));
     536  connect(_cmbIrnssCheckBox, SIGNAL(stateChanged(int)), this, SLOT(slotBncTextChanged()));
    516537
    517538  // Upload Results
     
    12091230  cmbLayout->addWidget(_cmbTable,                                            0, 0, 8, 3);
    12101231  cmbLayout->addWidget(new QLabel(" Combine Broadcast Correction streams.<br>"), 1, 6, 1, 10);
    1211   cmbLayout->addWidget(addCmbRowButton,                                      2, 6);
    1212   cmbLayout->addWidget(delCmbRowButton,                                      2, 7);
    1213   cmbLayout->addWidget(new QLabel("Method"),                                 3, 6, Qt::AlignRight);
    1214   cmbLayout->addWidget(_cmbMethodComboBox,                                   3, 7);
    1215   cmbLayout->addWidget(new QLabel(" Maximal residuum"),                      4, 6, Qt::AlignRight);
    1216   cmbLayout->addWidget(_cmbMaxresLineEdit,                                   4, 7, Qt::AlignRight);
    1217   cmbLayout->addWidget(new QLabel("Sampling"),                               5, 6, Qt::AlignRight);
    1218   cmbLayout->addWidget(_cmbSamplSpinBox,                                     5, 7);
    1219   cmbLayout->setRowStretch(5, 999);
     1232  cmbLayout->addWidget(addCmbRowButton,                                      2,  6);
     1233  cmbLayout->addWidget(delCmbRowButton,                                      2,  7);
     1234  cmbLayout->addWidget(new QLabel("Method"),                                 3,  6, Qt::AlignRight);
     1235  cmbLayout->addWidget(_cmbMethodComboBox,                                   3,  7);
     1236  cmbLayout->addWidget(new QLabel(" Maximal residuum"),                      4,  6, Qt::AlignRight);
     1237  cmbLayout->addWidget(_cmbMaxresLineEdit,                                   4,  7, Qt::AlignRight);
     1238  cmbLayout->addWidget(new QLabel("Sampling"),                               5,  6, Qt::AlignRight);
     1239  cmbLayout->addWidget(_cmbSamplSpinBox,                                     5,  7);
     1240  cmbLayout->addWidget(new QLabel("GNSS"),                                   6,  6, Qt::AlignRight);
     1241  cmbLayout->addWidget(new QLabel("Systems"),                                6,  7, Qt::AlignLeft);
     1242  cmbLayout->addWidget(new QLabel("GPS"),                                    6,  8);
     1243  cmbLayout->addWidget(_cmbGpsCheckBox,                                      6,  9);
     1244  cmbLayout->addWidget(new QLabel("GLO"),                                    6, 10);
     1245  cmbLayout->addWidget(_cmbGloCheckBox,                                      6, 11);
     1246  cmbLayout->addWidget(new QLabel("Galileo"),                                6, 12);
     1247  cmbLayout->addWidget(_cmbGalCheckBox,                                      6, 13);
     1248  cmbLayout->addWidget(new QLabel("Beidou"),                                 6, 14);
     1249  cmbLayout->addWidget(_cmbBdsCheckBox,                                      6, 15);
     1250  cmbLayout->addWidget(new QLabel("QZSS"),                                   7,  8);
     1251  cmbLayout->addWidget(_cmbQzssCheckBox,                                     7,  9);
     1252  cmbLayout->addWidget(new QLabel("SBAS"),                                   7, 10);
     1253  cmbLayout->addWidget(_cmbSbasCheckBox,                                     7, 11);
     1254  cmbLayout->addWidget(new QLabel("IRNSS"),                                  7, 12);
     1255  cmbLayout->addWidget(_cmbIrnssCheckBox,                                    7, 13);
     1256  cmbLayout->setRowStretch(6, 999);
    12201257
    12211258  connect(addCmbRowButton, SIGNAL(clicked()), this, SLOT(slotAddCmbRow()));
     
    14261463  _cmbMaxresLineEdit->setWhatsThis(tr("<p>BNC combines all incoming clocks according to specified weights. Individual clock estimates that differ by more than 'Maximal residuum' meters from the average of all clocks will be ignored.<p></p>It is suggested to specify a value of about 0.2 m for the Kalman filter combination approach and a value of about 3.0 meters for the Single-Epoch combination approach.</p><p>Default is a value of '999.0'. <i>[key: cmbMaxres]</i></p>"));
    14271464  _cmbSamplSpinBox->setWhatsThis(tr("<p>Select a combination Sampling interval for the clocks. Clock corrections will be produced following that interval.</p><p>A value of 10 sec may be an appropriate choice. <i>[key: cmbSampl]</i></p>"));
     1465  _cmbGpsCheckBox->setWhatsThis(tr("<p>GPS corrections shall be combined. <i>[key: cmbGps]</i></p>"));
     1466  _cmbGloCheckBox->setWhatsThis(tr("<p>GLONASS corrections shall be combined; GPS Broadcast ephemeris and corrections are required. <i>[key: cmbGlo]</i></p>"));
     1467  _cmbGalCheckBox->setWhatsThis(tr("<p>Galileo corrections shall be combined; GLONASS Broadcast ephemeris and corrections are required. <i>[key: cmbGal]</i></p>"));
     1468  _cmbBdsCheckBox->setWhatsThis(tr("<p>Beidou corrections shall be combined; Galileo Broadcast ephemeris and corrections are required. <i>[key: cmbBds]</i></p>"));
     1469  _cmbQzssCheckBox->setWhatsThis(tr("<p>QZSS corrections shall be combined; QZSS Broadcast ephemeris and corrections are required. <i>[key: cmbQzss]</i></p>"));
     1470  _cmbSbasCheckBox->setWhatsThis(tr("<p>SBAS corrections shall be combined; SBAS Broadcast ephemeris and corrections are required. <i>[key: cmbSbas]</i></p>"));
     1471  _cmbIrnssCheckBox->setWhatsThis(tr("<p>IRNSS corrections shall be combined; IRNSS Broadcast ephemeris and corrections are required. <i>[key: cmbIrnss]</i></p>"));
    14281472
    14291473  // WhatsThis, Upload Corrections
     
    15541598  delete _cmbMaxresLineEdit;
    15551599  delete _cmbSamplSpinBox;
    1556   delete _cmbMethodComboBox;;
     1600  delete _cmbMethodComboBox;
     1601  delete _cmbGpsCheckBox;
     1602  delete _cmbGloCheckBox;
     1603  delete _cmbGalCheckBox;
     1604  delete _cmbBdsCheckBox;
     1605  delete _cmbQzssCheckBox;
     1606  delete _cmbSbasCheckBox;
     1607  delete _cmbIrnssCheckBox;
    15571608  _uploadEphTable->deleteLater();
    15581609  delete _uploadSamplRtcmEphCorrSpinBox;
     
    19862037  settings.setValue("outFile",     _outFileLineEdit->text());
    19872038  settings.setValue("outLockTime",_outLockTimeCheckBox->checkState());    settings.setValue("outUPort",    _outUPortLineEdit->text());
    1988 
    19892039// Serial Output
    19902040  settings.setValue("serialMountPoint",_serialMountPointLineEdit->text());
     
    20332083  settings.setValue("cmbMaxres",     _cmbMaxresLineEdit->text());
    20342084  settings.setValue("cmbSampl",      _cmbSamplSpinBox->value());
     2085  settings.setValue("cmbGps",        _cmbGpsCheckBox->checkState());
     2086  settings.setValue("cmbGlo",        _cmbGloCheckBox->checkState());
     2087  settings.setValue("cmbGal",        _cmbGalCheckBox->checkState());
     2088  settings.setValue("cmbBds",        _cmbBdsCheckBox->checkState());
     2089  settings.setValue("cmbQzss",       _cmbQzssCheckBox->checkState());
     2090  settings.setValue("cmbSbas",       _cmbSbasCheckBox->checkState());
     2091  settings.setValue("cmbIrnss",      _cmbIrnssCheckBox->checkState());
     2092
    20352093// Upload Corrections
    20362094  if (!uploadMountpointsOut.isEmpty()) {
     
    25482606      enableWidget(true, _cmbMaxresLineEdit);
    25492607      enableWidget(true, _cmbSamplSpinBox);
     2608      enableWidget(true, _cmbGpsCheckBox);
     2609      enableWidget(true, _cmbGloCheckBox);
     2610      enableWidget(true, _cmbGalCheckBox);
     2611      enableWidget(true, _cmbBdsCheckBox);
     2612      enableWidget(true, _cmbQzssCheckBox);
     2613      enableWidget(true, _cmbSbasCheckBox);
     2614      enableWidget(true, _cmbIrnssCheckBox);
    25502615    }
    25512616    else {
     
    25532618      enableWidget(false, _cmbMaxresLineEdit);
    25542619      enableWidget(false, _cmbSamplSpinBox);
     2620      enableWidget(false, _cmbGpsCheckBox);
     2621      enableWidget(false, _cmbGloCheckBox);
     2622      enableWidget(false, _cmbGalCheckBox);
     2623      enableWidget(false, _cmbBdsCheckBox);
     2624      enableWidget(false, _cmbQzssCheckBox);
     2625      enableWidget(false, _cmbSbasCheckBox);
     2626      enableWidget(false, _cmbIrnssCheckBox);
    25552627    }
    25562628  }
Note: See TracChangeset for help on using the changeset viewer.