Changeset 8905 in ntrip for trunk/BNC/src/pppWidgets.cpp


Ignore:
Timestamp:
Mar 18, 2020, 11:13:50 AM (5 years ago)
Author:
stuerze
Message:

some developments regarding PPP, not completed!

File:
1 edited

Legend:

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

    r8773 r8905  
    8282  _lcGalileo    = new QComboBox();     _lcGalileo   ->setObjectName("PPP/lcGalileo");    _widgets << _lcGalileo;
    8383  _lcBDS        = new QComboBox();     _lcBDS       ->setObjectName("PPP/lcBDS");        _widgets << _lcBDS;
     84  _modelObs     = new QComboBox();     _modelObs    ->setObjectName("PPP/modelObs");     _widgets << _modelObs;
     85  _pseudoObs    = new QComboBox();     _pseudoObs   ->setObjectName("PPP/pseudoObs");    _widgets << _pseudoObs;
    8486  _sigmaC1      = new QLineEdit();     _sigmaC1     ->setObjectName("PPP/sigmaC1");      _widgets << _sigmaC1;
    8587  _sigmaL1      = new QLineEdit();     _sigmaL1     ->setObjectName("PPP/sigmaL1");      _widgets << _sigmaL1;
     
    111113  _dataSource->addItems(QString(",Real-Time Streams,RINEX Files").split(","));
    112114  connect(_dataSource, SIGNAL(currentIndexChanged(const QString&)), this, SLOT(slotEnableWidgets()));
    113 
    114   connect(_snxtroPath, SIGNAL(textChanged(const QString &)),
    115          this, SLOT(slotPPPTextChanged()));
    116 
    117   connect(_snxtroAc, SIGNAL(textChanged(const QString &)),
    118          this, SLOT(slotPPPTextChanged()));
    119 
    120   connect(_snxtroSol, SIGNAL(textChanged(const QString &)),
    121          this, SLOT(slotPPPTextChanged()));
     115  connect(_modelObs, SIGNAL(currentIndexChanged(const QString&)), this, SLOT(slotEnableWidgets()));
     116  connect(_snxtroPath, SIGNAL(textChanged(const QString &)), this, SLOT(slotPPPTextChanged()));
     117  connect(_snxtroAc, SIGNAL(textChanged(const QString &)), this, SLOT(slotPPPTextChanged()));
     118  connect(_snxtroSol, SIGNAL(textChanged(const QString &)), this, SLOT(slotPPPTextChanged()));
    122119
    123120  slotEnableWidgets();
     
    127124  _lcGPS->addItems(QString("P3,P3&L3").split(","));
    128125#else
    129   _lcGPS->addItems(QString("no,Pi,Li,Pi&Li,P3,L3,P3&L3").split(","));
     126  _lcGPS->addItems(QString("no,Pi,Li,Pi&Li").split(","));
    130127#endif
    131128
     
    134131   _lcGLONASS->addItems(QString("no,P3,L3,P3&L3").split(","));
    135132#else
    136   _lcGLONASS->addItems(QString("no,Pi,Li,Pi&Li,P3,L3,P3&L3").split(","));
     133  _lcGLONASS->addItems(QString("no,Pi,Li,Pi&Li").split(","));
    137134#endif
    138135
     
    141138  _lcGalileo->addItems(QString("no,P3,L3,P3&L3").split(","));
    142139#else
    143   _lcGalileo->addItems(QString("no,Pi,Li,Pi&Li,P3,L3,P3&L3").split(","));
     140  _lcGalileo->addItems(QString("no,Pi,Li,Pi&Li").split(","));
    144141#endif
    145142
     
    148145  _lcBDS->addItems(QString("no,P3,L3,P3&L3").split(","));
    149146#else
    150   _lcBDS->addItems(QString("no,Pi,Li,Pi&Li,P3,L3,P3&L3").split(","));
     147  _lcBDS->addItems(QString("no,Pi,Li,Pi&Li").split(","));
     148#endif
     149
     150  _modelObs->setEditable(false);
     151  _pseudoObs->setEditable(false);
     152#ifdef USE_PPP_SSR_I
     153  _modelObs->addItems(QString("Ionosphere-free PPP").split(","));
     154  _pseudoObs->addItems(QString("no").split(","));
     155#else
     156  _modelObs->addItems(QString("Ionosphere-free PPP,Uncombined PPP,PPP-RTK,DCM with Code Biases,DCM with Phase Biases").split(","));
     157  _pseudoObs->addItems(QString("no,Ionosphere").split(","));
    151158#endif
    152159
     
    247254  delete _lcGalileo;
    248255  delete _lcBDS;
     256  delete _modelObs;
     257  delete _pseudoObs;
    249258  delete _sigmaC1;
    250259  delete _sigmaL1;
     
    297306    _lcBDS->setCurrentIndex(ii);
    298307  }
     308  ii = _modelObs->findText(settings.value(_modelObs->objectName()).toString());
     309  if (ii != -1) {
     310    _modelObs->setCurrentIndex(ii);
     311  }
     312  ii = _pseudoObs->findText(settings.value(_pseudoObs->objectName()).toString());
     313  if (ii != -1) {
     314    _pseudoObs->setCurrentIndex(ii);
     315  }
    299316  ii = _snxtroIntr->findText(settings.value(_snxtroIntr->objectName()).toString());
    300317  if (ii != -1) {
     
    433450  settings.setValue(_lcGalileo   ->objectName(), _lcGalileo   ->currentText());
    434451  settings.setValue(_lcBDS       ->objectName(), _lcBDS       ->currentText());
     452  settings.setValue(_modelObs    ->objectName(), _modelObs    ->currentText());
     453  settings.setValue(_pseudoObs   ->objectName(), _pseudoObs   ->currentText());
    435454  settings.setValue(_sigmaC1     ->objectName(), _sigmaC1     ->text());
    436455  settings.setValue(_sigmaL1     ->objectName(), _sigmaL1     ->text());
     
    477496  bool realTime    = _dataSource->currentText() == "Real-Time Streams";
    478497  bool rinexFiles  = _dataSource->currentText() == "RINEX Files";
     498  bool enablePseudoObs;
     499  if (_modelObs->currentText() == "PPP-RTK" ||
     500    _modelObs->currentText() == "Ionosphere-free PPP") {
     501    enablePseudoObs = false;
     502  }
     503  else {
     504    enablePseudoObs = true;
     505  }
    479506
    480507  QListIterator<QWidget*> it(_widgets);
     
    490517  }
    491518  else if (rinexFiles) {
    492     _corrMount->setEnabled(false);
    493 //  _plotCoordinates->setEnabled(false);
    494 //  _audioResponse->setEnabled(false);
     519    _corrMount    ->setEnabled(false);
     520    _audioResponse->setEnabled(false);
    495521  }
    496522
     
    506532    _snxtroAc   ->setEnabled(false);
    507533    _snxtroSol  ->setEnabled(false);
     534  }
     535
     536  if (enablePseudoObs) {
     537    _pseudoObs->setEnabled(true);
     538  } else {
     539    _pseudoObs->setEnabled(false);
    508540  }
    509541
     
    592624    }
    593625  }
    594 }
     626
     627
     628}
Note: See TracChangeset for help on using the changeset viewer.