Changeset 2718 in ntrip for trunk/BNC/bncwindow.cpp


Ignore:
Timestamp:
Nov 27, 2010, 11:56:26 AM (14 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r2652 r2718  
    338338  // -----------
    339339  _pppMountLineEdit    = new QLineEdit(settings.value("pppMount").toString());
    340   _pppUsePhaseCheckBox = new QCheckBox();
    341340  _pppNMEALineEdit     = new QLineEdit(settings.value("nmeaFile").toString());
    342341  _pppNMEAPortLineEdit = new QLineEdit(settings.value("nmeaPort").toString());
    343342  _pppSigCLineEdit     = new QLineEdit(settings.value("pppSigmaCode").toString());
     343  _pppSigPLineEdit     = new QLineEdit(settings.value("pppSigmaPhase").toString());
     344  _pppSigCrd0          = new QLineEdit(settings.value("pppSigCrd0").toString());
     345  _pppSigCrdP          = new QLineEdit(settings.value("pppSigCrdP").toString());
     346  _pppSigTrp0          = new QLineEdit(settings.value("pppSigTrp0").toString());
     347  _pppSigTrpP          = new QLineEdit(settings.value("pppSigTrpP").toString());
    344348  _pppAverageLineEdit  = new QLineEdit(settings.value("pppAverage").toString());
    345349  _pppRefCrdXLineEdit  = new QLineEdit(settings.value("pppRefCrdX").toString());
     
    349353  _pppOriginComboBox = new QComboBox();
    350354  _pppOriginComboBox->setEditable(false);
    351   _pppOriginComboBox->addItems(QString("None,Plot - Start position,Plot - X Y Z,QuickStart - Static,QuickStart - Mobile").split(","));
     355  _pppOriginComboBox->addItems(QString("None,PPP,Plot-Only").split(","));
    352356  int ij = _pppOriginComboBox->findText(settings.value("pppOrigin").toString());
    353357  if (ij != -1) {
     
    362366    _pppSPPComboBox->setCurrentIndex(ik);
    363367  }
    364   _pppStaticCheckBox   = new QCheckBox();
    365   _pppStaticCheckBox->setCheckState(Qt::CheckState(
    366                                     settings.value("pppStatic").toInt()));
    367368  _pppUsePhaseCheckBox = new QCheckBox();
    368369  _pppUsePhaseCheckBox->setCheckState(Qt::CheckState(
     
    374375  _pppGLONASSCheckBox->setCheckState(Qt::CheckState(
    375376                                    settings.value("pppGLONASS").toInt()));
     377
     378 
     379  _pppPlotCoordinates = new QCheckBox();
     380  _pppPlotCoordinates->setCheckState(Qt::CheckState(
     381                                settings.value("pppPlotCoordinates").toInt()));
    376382
    377383  connect(_pppMountLineEdit, SIGNAL(textChanged(const QString &)),
     
    462468  _pppMountLineEdit->setWhatsThis(tr("<p>Specify a mountpoint if you want BNC to estimate coordinates for the affected receiver position through a PPP solution.</p><p>Note that PPP in BNC requires to also pull a stream carrying RTCM Version 3 satellite orbit and clock corrections to Broadcast Ephemeris referring to the satellites' Antenna Phase Centers (APC). Stream CLK11 on NTRIP broadcaster www.igs-ip.net is an example.</p><p>Pulling in addition a third stream carrying Broadcast Ephemeris messages in high repetition rate is suggested if such messages are comeing from the receiver only in low repetition rate or dont come at all from there.</p>"));
    463469  _pppSPPComboBox->setWhatsThis(tr("<p>Choose between plain Single Point Positioning (SPP) and Precise Point Positioning (PPP).</p><p>Note that SPP doesn not require to pull a stream of Broadcast Ephemeris Corrections.</p>"));
    464   _pppStaticCheckBox->setWhatsThis(tr("<p>By default BNC considers the rover receiver as mobile.</p><p>Tick 'Static' to consider a static observation sitatuion and adapt appropriate filter characteristics for that.</p>"));
    465470  _pppUsePhaseCheckBox->setWhatsThis(tr("<p>By default BNC applies a PPP solution using an ionosphere free P3 linear combination of code observations.</p><p>Tick 'Use phase obs' for an ionosphere free L3 linear combination of phase observations.</p>"));
    466471  _pppEstTropoCheckBox->setWhatsThis(tr("<p>By default BNC does not introduce troposphere parameters when estimating coordinates.</p><p>Tick 'Estimate tropo' to introduce troposphere parameters when estimating coordinates.</p>"));
     
    468473  _pppNMEALineEdit->setWhatsThis(tr("<p>Specify the full path to a file where PPP results are saved as NMEA messages.</p>"));
    469474  _pppNMEAPortLineEdit->setWhatsThis(tr("<p>Specify an IP port number to output PPP results as NMEA messages through an IP port.</p>"));
    470   _pppOriginComboBox->setWhatsThis(tr("<p>Select an origin for a North/East/Up displacements time series plot in the 'PPP Plot' section or for operating BNC in QuickStart mode starting at a known position.</p><p> - 'Plot - Start position' will let BNC run in normal mode and plot a time series referred to the very first determined set of coordinate components.</p><p> - 'Plot - X Y Z' will let BNC run in normal mode and plot a time series referred to entered coordinate components XYZ.</p><p> - 'QuickStart - Static' allows to run BNC in QuickStart mode with observations from a stationary receiver located at known position XYZ</p><p> - 'QuickStart - Mobile' also allows to run BNC in QuickStart mode. However, the receiver may leave its known initial XYZ start position after staying there for two minutes.</p><p>Note that displacements time series plots make only sense for a stationary receiver.</p>"));
     475  _pppOriginComboBox->setWhatsThis(tr("<p>Select an origin for a North/East/Up displacements time series plot in the 'PPP Plot' section or for operating BNC in QuickStart mode starting at a known position.</p><p> - 'Plot - Start position' will let BNC run in normal mode and plot a time series referred to the very first determined set of coordinate components.</p><p> - 'Plot - X Y Z' will let BNC run in normal mode and plot a time series referred to entered coordinate components XYZ.</p><p> - 'PPP' allows to run BNC in QuickStart mode with observations from a stationary receiver located at known position XYZ</p><p> Note that displacements time series plots make only sense for a stationary receiver.</p>"));
    471476  _pppSigCLineEdit->setWhatsThis(tr("<p>Enter a sigma for your code observations in meters.</p><p>5.0 (default) is likely to be an appropriate choice.</p>"));
     477  _pppSigPLineEdit->setWhatsThis(tr("<p>Enter a sigma for your phase observations in meters.</p><p>0.02 (default) is likely to be an appropriate choice.</p>"));
    472478  _pppAverageLineEdit->setWhatsThis(tr("<p>Enter the length of a sliding time window in minutes. BNC will continuously output moving average positions computed from those individual positions obtained most recently throughout this period.</p><p>An empty option field (default) means that you don't wont BNC to output moving average positions.</p>"));
    473479  _pppRefCrdXLineEdit->setWhatsThis(tr("<p>Enter reference coordinate X of the receiver's position.</p>"));
     
    709715  QGridLayout* pppLayout = new QGridLayout;
    710716  _pppSigCLineEdit->setMaximumWidth(5*ww);
     717  _pppSigPLineEdit->setMaximumWidth(5*ww);
     718  _pppSigCrd0->setMaximumWidth(5*ww);
     719  _pppSigCrdP->setMaximumWidth(5*ww);
     720  _pppSigTrp0->setMaximumWidth(5*ww);
     721  _pppSigTrpP->setMaximumWidth(5*ww);
    711722  _pppAverageLineEdit->setMaximumWidth(5*ww);
    712723  _pppRefCrdXLineEdit->setMaximumWidth(14*ww);
     
    720731  pppLayout->addWidget(_pppSPPComboBox,                      0, 4);
    721732  pppLayout->addWidget(new QLabel("Options"),                1, 0);
    722   pppLayout->addWidget(_pppStaticCheckBox,                   1, 1);
    723   pppLayout->addWidget(new QLabel("Static                "), 1, 2);
    724   pppLayout->addWidget(_pppUsePhaseCheckBox,                 1, 3);
    725   pppLayout->addWidget(new QLabel("Use phase obs         "), 1, 4);
    726   pppLayout->addWidget(_pppEstTropoCheckBox,                 1, 5);
    727   pppLayout->addWidget(new QLabel("Estimate tropo        "), 1, 6);
    728   pppLayout->addWidget(_pppGLONASSCheckBox,                  1, 7);
    729   pppLayout->addWidget(new QLabel("Use GLONASS"),            1, 8);
    730   pppLayout->addWidget(new QLabel("Options cont'd"),         2, 0);
     733  pppLayout->addWidget(_pppUsePhaseCheckBox,                 1, 1);
     734  pppLayout->addWidget(new QLabel("Use phase obs         "), 1, 2);
     735  pppLayout->addWidget(_pppEstTropoCheckBox,                 1, 3);
     736  pppLayout->addWidget(new QLabel("Estimate tropo        "), 1, 4);
     737  pppLayout->addWidget(_pppGLONASSCheckBox,                  1, 5);
     738  pppLayout->addWidget(new QLabel("Use GLONASS"),            1, 6);
     739  pppLayout->addWidget(_pppPlotCoordinates,                  1, 7);
     740  pppLayout->addWidget(new QLabel("Plot Coordinates"),       1, 8);
     741  pppLayout->addWidget(new QLabel("Observation Sigmas"),     2, 0);
    731742  pppLayout->addWidget(_pppSigCLineEdit,                     2, 1);
    732743  pppLayout->addWidget(new QLabel("Sigma code"),             2, 2);
    733   pppLayout->addWidget(_pppAverageLineEdit,                  2, 4);
    734   pppLayout->addWidget(new QLabel("Averaging"),              2, 4, Qt::AlignRight); 
    735   pppLayout->addWidget(new QLabel("Origin"),                 3, 0);
    736   pppLayout->addWidget(_pppOriginComboBox,                   3, 1, 1, 2);
    737   pppLayout->addWidget(new QLabel(" X"),                     3, 3, Qt::AlignRight);
    738   pppLayout->addWidget(_pppRefCrdXLineEdit,                  3, 4);
    739   pppLayout->addWidget(new QLabel(" Y"),                     3, 5, Qt::AlignRight);
    740   pppLayout->addWidget(_pppRefCrdYLineEdit,                  3, 6);
    741   pppLayout->addWidget(new QLabel(" Z"),                     3, 7, Qt::AlignRight);
    742   pppLayout->addWidget(_pppRefCrdZLineEdit,                  3, 8);
    743   pppLayout->addWidget(new QLabel("NMEA File (full path)"),  4, 0);
    744   pppLayout->addWidget(_pppNMEALineEdit,                     4, 1, 1, 6);
    745   pppLayout->addWidget(new QLabel("Port"),                   4, 7);
    746   pppLayout->addWidget(_pppNMEAPortLineEdit,                 4, 8);
    747 
    748   pppLayout->addWidget(new QLabel("Coordinates from Precise Point Positioning (PPP)."),5, 0,1,15);
     744  pppLayout->addWidget(_pppSigPLineEdit,                     2, 3);
     745  pppLayout->addWidget(new QLabel("Sigma phase"),            2, 4);
     746  pppLayout->addWidget(new QLabel("Parameter Sigmas"),       3, 0);
     747  pppLayout->addWidget(_pppSigCrd0,                          3, 1);
     748  pppLayout->addWidget(new QLabel("XYZ Init"),               3, 2);
     749  pppLayout->addWidget(_pppSigCrdP,                          3, 3);
     750  pppLayout->addWidget(new QLabel("XYZ White Noise"),        3, 4);
     751  pppLayout->addWidget(_pppSigTrp0,                          3, 5);
     752  pppLayout->addWidget(new QLabel("Tropo Init"),             3, 6);
     753  pppLayout->addWidget(_pppSigTrpP,                          3, 7);
     754  pppLayout->addWidget(new QLabel("Tropo White Noise"),      3, 8);
     755  pppLayout->addWidget(new QLabel("Origin"),                 4, 0);
     756  pppLayout->addWidget(_pppOriginComboBox,                   4, 1, 1, 2);
     757  pppLayout->addWidget(new QLabel(" X"),                     4, 3, Qt::AlignRight);
     758  pppLayout->addWidget(_pppRefCrdXLineEdit,                  4, 4);
     759  pppLayout->addWidget(new QLabel(" Y"),                     4, 5, Qt::AlignRight);
     760  pppLayout->addWidget(_pppRefCrdYLineEdit,                  4, 6);
     761  pppLayout->addWidget(new QLabel(" Z"),                     4, 7, Qt::AlignRight);
     762  pppLayout->addWidget(_pppRefCrdZLineEdit,                  4, 8);
     763  pppLayout->addWidget(new QLabel("Averaging") ,             5, 0); 
     764  pppLayout->addWidget(_pppAverageLineEdit,                  5, 1);
     765  pppLayout->addWidget(new QLabel("minutes")  ,              5, 2); 
     766  pppLayout->addWidget(new QLabel("NMEA File (full path)"),  6, 0);
     767  pppLayout->addWidget(_pppNMEALineEdit,                     6, 1, 1, 6);
     768  pppLayout->addWidget(new QLabel("Port"),                   6, 7);
     769  pppLayout->addWidget(_pppNMEAPortLineEdit,                 6, 8);
     770
     771  pppLayout->addWidget(new QLabel("Coordinates from Precise Point Positioning (PPP)."),7, 0,1,15);
    749772  pppgroup->setLayout(pppLayout);
    750773
     
    10611084  settings.setValue("nmeaPort",    _pppNMEAPortLineEdit->text());
    10621085  settings.setValue("pppSigmaCode",_pppSigCLineEdit->text());
     1086  settings.setValue("pppSigmaPhase",_pppSigPLineEdit->text());
     1087  settings.setValue("pppSigCrd0",_pppSigCrd0->text());
     1088  settings.setValue("pppSigCrdP",_pppSigCrdP->text());
     1089  settings.setValue("pppSigTrp0",_pppSigTrp0->text());
     1090  settings.setValue("pppSigTrpP",_pppSigTrpP->text());
    10631091  settings.setValue("pppAverage",  _pppAverageLineEdit->text());
    10641092  settings.setValue("pppRefCrdX",  _pppRefCrdXLineEdit->text());
    10651093  settings.setValue("pppRefCrdY",  _pppRefCrdYLineEdit->text());
    10661094  settings.setValue("pppRefCrdZ",  _pppRefCrdZLineEdit->text());
    1067   settings.setValue("pppStatic",   _pppStaticCheckBox->checkState());
    10681095  settings.setValue("pppUsePhase", _pppUsePhaseCheckBox->checkState());
     1096  settings.setValue("pppPlotCoordinates", _pppPlotCoordinates->checkState());
    10691097  settings.setValue("pppEstTropo", _pppEstTropoCheckBox->checkState());
    10701098  settings.setValue("pppGLONASS",  _pppGLONASSCheckBox->checkState());
     
    16041632  // PPP Client
    16051633  // ----------
    1606   if (sender() == 0 || sender() == _pppMountLineEdit
    1607      || sender() == _pppOriginComboBox || sender() == _pppUsePhaseCheckBox ) {
     1634  if (sender() == 0
     1635     || sender() == _pppMountLineEdit
     1636     || sender() == _pppOriginComboBox
     1637     || sender() == _pppUsePhaseCheckBox ) {
    16081638    if (!_pppMountLineEdit->text().isEmpty()) {
    16091639      _pppSPPComboBox->setPalette(palette_white);
     
    16131643      _pppRefCrdYLineEdit->setPalette(palette_white);
    16141644      _pppRefCrdZLineEdit->setPalette(palette_white);
    1615       _pppStaticCheckBox->setPalette(palette_white);
    16161645      _pppUsePhaseCheckBox->setPalette(palette_white);
     1646      _pppPlotCoordinates->setPalette(palette_white);
    16171647      _pppEstTropoCheckBox->setPalette(palette_white);
    16181648      _pppGLONASSCheckBox->setPalette(palette_white);
     
    16241654      _pppRefCrdYLineEdit->setEnabled(true);
    16251655      _pppRefCrdZLineEdit->setEnabled(true);
    1626       _pppStaticCheckBox->setEnabled(true);
    16271656      _pppUsePhaseCheckBox->setEnabled(true);
     1657      _pppPlotCoordinates->setEnabled(true);
    16281658      _pppEstTropoCheckBox->setEnabled(true);
    16291659      _pppGLONASSCheckBox->setEnabled(true);
    16301660      _pppOriginComboBox->setEnabled(true);
    1631       if (_pppOriginComboBox->currentText() == "Plot - X Y Z" ||
    1632           _pppOriginComboBox->currentText() == "QuickStart - Static" ||
    1633           _pppOriginComboBox->currentText() == "QuickStart - Mobile" ) {
     1661      if (_pppOriginComboBox->currentText() != "None") {
    16341662        _pppRefCrdXLineEdit->setPalette(palette_white);
    16351663        _pppRefCrdXLineEdit->setEnabled(true);
     
    16381666        _pppRefCrdZLineEdit->setPalette(palette_white);
    16391667        _pppRefCrdZLineEdit->setEnabled(true);
     1668        if (_pppOriginComboBox->currentText() == "PPP") {
     1669          _pppAverageLineEdit->setPalette(palette_white);
     1670          _pppAverageLineEdit->setEnabled(true);
     1671        }
    16401672      }
    16411673      else {
     
    16461678        _pppRefCrdZLineEdit->setPalette(palette_gray);
    16471679        _pppRefCrdZLineEdit->setEnabled(false);
    1648       }
    1649       if (_pppOriginComboBox->currentText() != "None" &&
    1650           _pppOriginComboBox->currentText() != "Plot - Start position" &&
    1651           _pppOriginComboBox->currentText() != "QuickStart - Mobile" ) {
    1652         _pppAverageLineEdit->setPalette(palette_white);
    1653         _pppAverageLineEdit->setEnabled(true);
    1654       }
    1655       else {
    16561680        _pppAverageLineEdit->setPalette(palette_gray);
    16571681        _pppAverageLineEdit->setEnabled(false);
    16581682      }
     1683      _pppSigCLineEdit->setPalette(palette_white);
     1684      _pppSigCLineEdit->setEnabled(true);
     1685      _pppSigCrd0->setPalette(palette_white);
     1686      _pppSigCrd0->setEnabled(true);
     1687      _pppSigCrdP->setPalette(palette_white);
     1688      _pppSigCrdP->setEnabled(true);
     1689      _pppSigTrp0->setPalette(palette_white);
     1690      _pppSigTrp0->setEnabled(true);
     1691      _pppSigTrpP->setPalette(palette_white);
     1692      _pppSigTrpP->setEnabled(true);
    16591693      if (_pppUsePhaseCheckBox->isChecked()
    16601694         && !_pppMountLineEdit->text().isEmpty()) {
    1661         _pppSigCLineEdit->setPalette(palette_white);
    1662         _pppSigCLineEdit->setEnabled(true);
     1695        _pppSigPLineEdit->setPalette(palette_white);
     1696        _pppSigPLineEdit->setEnabled(true);
    16631697      }
    16641698      else {
    1665         _pppSigCLineEdit->setPalette(palette_gray);
    1666         _pppSigCLineEdit->setEnabled(false);
     1699        _pppSigPLineEdit->setPalette(palette_gray);
     1700        _pppSigPLineEdit->setEnabled(false);
    16671701      }
    16681702    } else {
     
    16731707      _pppRefCrdYLineEdit->setPalette(palette_gray);
    16741708      _pppRefCrdZLineEdit->setPalette(palette_gray);
    1675       _pppStaticCheckBox->setPalette(palette_gray);
    16761709      _pppUsePhaseCheckBox->setPalette(palette_gray);
     1710      _pppPlotCoordinates->setPalette(palette_gray);
    16771711      _pppEstTropoCheckBox->setPalette(palette_gray);
    16781712      _pppGLONASSCheckBox->setPalette(palette_gray);
    16791713      _pppOriginComboBox->setPalette(palette_gray);
    16801714      _pppSigCLineEdit->setPalette(palette_gray);
     1715      _pppSigPLineEdit->setPalette(palette_gray);
     1716      _pppSigCrd0->setPalette(palette_gray);
     1717      _pppSigCrdP->setPalette(palette_gray);
     1718      _pppSigTrp0->setPalette(palette_gray);
     1719      _pppSigTrpP->setPalette(palette_gray);
    16811720      _pppAverageLineEdit->setPalette(palette_gray);
    16821721      _pppSPPComboBox->setEnabled(false);
     
    16861725      _pppRefCrdYLineEdit->setEnabled(false);
    16871726      _pppRefCrdZLineEdit->setEnabled(false);
    1688       _pppStaticCheckBox->setEnabled(false);
    16891727      _pppUsePhaseCheckBox->setEnabled(false);
     1728      _pppPlotCoordinates->setEnabled(false);
    16901729      _pppEstTropoCheckBox->setEnabled(false);
    16911730      _pppGLONASSCheckBox->setEnabled(false);
    16921731      _pppOriginComboBox->setEnabled(false);
    16931732      _pppSigCLineEdit->setEnabled(false);
     1733      _pppSigPLineEdit->setEnabled(false);
     1734      _pppSigCrd0->setEnabled(false);
     1735      _pppSigCrdP->setEnabled(false);
     1736      _pppSigTrp0->setEnabled(false);
     1737      _pppSigTrpP->setEnabled(false);
    16941738      _pppAverageLineEdit->setEnabled(false);
    16951739    }
Note: See TracChangeset for help on using the changeset viewer.