Changeset 2718 in ntrip for trunk/BNC/bncwindow.cpp
- Timestamp:
- Nov 27, 2010, 11:56:26 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r2652 r2718 338 338 // ----------- 339 339 _pppMountLineEdit = new QLineEdit(settings.value("pppMount").toString()); 340 _pppUsePhaseCheckBox = new QCheckBox();341 340 _pppNMEALineEdit = new QLineEdit(settings.value("nmeaFile").toString()); 342 341 _pppNMEAPortLineEdit = new QLineEdit(settings.value("nmeaPort").toString()); 343 342 _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()); 344 348 _pppAverageLineEdit = new QLineEdit(settings.value("pppAverage").toString()); 345 349 _pppRefCrdXLineEdit = new QLineEdit(settings.value("pppRefCrdX").toString()); … … 349 353 _pppOriginComboBox = new QComboBox(); 350 354 _pppOriginComboBox->setEditable(false); 351 _pppOriginComboBox->addItems(QString("None,P lot - Start position,Plot - X Y Z,QuickStart - Static,QuickStart - Mobile").split(","));355 _pppOriginComboBox->addItems(QString("None,PPP,Plot-Only").split(",")); 352 356 int ij = _pppOriginComboBox->findText(settings.value("pppOrigin").toString()); 353 357 if (ij != -1) { … … 362 366 _pppSPPComboBox->setCurrentIndex(ik); 363 367 } 364 _pppStaticCheckBox = new QCheckBox();365 _pppStaticCheckBox->setCheckState(Qt::CheckState(366 settings.value("pppStatic").toInt()));367 368 _pppUsePhaseCheckBox = new QCheckBox(); 368 369 _pppUsePhaseCheckBox->setCheckState(Qt::CheckState( … … 374 375 _pppGLONASSCheckBox->setCheckState(Qt::CheckState( 375 376 settings.value("pppGLONASS").toInt())); 377 378 379 _pppPlotCoordinates = new QCheckBox(); 380 _pppPlotCoordinates->setCheckState(Qt::CheckState( 381 settings.value("pppPlotCoordinates").toInt())); 376 382 377 383 connect(_pppMountLineEdit, SIGNAL(textChanged(const QString &)), … … 462 468 _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>")); 463 469 _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>"));465 470 _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>")); 466 471 _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>")); … … 468 473 _pppNMEALineEdit->setWhatsThis(tr("<p>Specify the full path to a file where PPP results are saved as NMEA messages.</p>")); 469 474 _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>")); 471 476 _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>")); 472 478 _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>")); 473 479 _pppRefCrdXLineEdit->setWhatsThis(tr("<p>Enter reference coordinate X of the receiver's position.</p>")); … … 709 715 QGridLayout* pppLayout = new QGridLayout; 710 716 _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); 711 722 _pppAverageLineEdit->setMaximumWidth(5*ww); 712 723 _pppRefCrdXLineEdit->setMaximumWidth(14*ww); … … 720 731 pppLayout->addWidget(_pppSPPComboBox, 0, 4); 721 732 pppLayout->addWidget(new QLabel("Options"), 1, 0); 722 pppLayout->addWidget(_ppp StaticCheckBox,1, 1);723 pppLayout->addWidget(new QLabel(" Static"), 1, 2);724 pppLayout->addWidget(_ppp UsePhaseCheckBox, 1, 3);725 pppLayout->addWidget(new QLabel(" Use phase obs"), 1, 4);726 pppLayout->addWidget(_ppp EstTropoCheckBox,1, 5);727 pppLayout->addWidget(new QLabel(" Estimate tropo "),1, 6);728 pppLayout->addWidget(_ppp GLONASSCheckBox, 1, 7);729 pppLayout->addWidget(new QLabel(" Use GLONASS"),1, 8);730 pppLayout->addWidget(new QLabel("O ptions 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); 731 742 pppLayout->addWidget(_pppSigCLineEdit, 2, 1); 732 743 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); 749 772 pppgroup->setLayout(pppLayout); 750 773 … … 1061 1084 settings.setValue("nmeaPort", _pppNMEAPortLineEdit->text()); 1062 1085 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()); 1063 1091 settings.setValue("pppAverage", _pppAverageLineEdit->text()); 1064 1092 settings.setValue("pppRefCrdX", _pppRefCrdXLineEdit->text()); 1065 1093 settings.setValue("pppRefCrdY", _pppRefCrdYLineEdit->text()); 1066 1094 settings.setValue("pppRefCrdZ", _pppRefCrdZLineEdit->text()); 1067 settings.setValue("pppStatic", _pppStaticCheckBox->checkState());1068 1095 settings.setValue("pppUsePhase", _pppUsePhaseCheckBox->checkState()); 1096 settings.setValue("pppPlotCoordinates", _pppPlotCoordinates->checkState()); 1069 1097 settings.setValue("pppEstTropo", _pppEstTropoCheckBox->checkState()); 1070 1098 settings.setValue("pppGLONASS", _pppGLONASSCheckBox->checkState()); … … 1604 1632 // PPP Client 1605 1633 // ---------- 1606 if (sender() == 0 || sender() == _pppMountLineEdit 1607 || sender() == _pppOriginComboBox || sender() == _pppUsePhaseCheckBox ) { 1634 if (sender() == 0 1635 || sender() == _pppMountLineEdit 1636 || sender() == _pppOriginComboBox 1637 || sender() == _pppUsePhaseCheckBox ) { 1608 1638 if (!_pppMountLineEdit->text().isEmpty()) { 1609 1639 _pppSPPComboBox->setPalette(palette_white); … … 1613 1643 _pppRefCrdYLineEdit->setPalette(palette_white); 1614 1644 _pppRefCrdZLineEdit->setPalette(palette_white); 1615 _pppStaticCheckBox->setPalette(palette_white);1616 1645 _pppUsePhaseCheckBox->setPalette(palette_white); 1646 _pppPlotCoordinates->setPalette(palette_white); 1617 1647 _pppEstTropoCheckBox->setPalette(palette_white); 1618 1648 _pppGLONASSCheckBox->setPalette(palette_white); … … 1624 1654 _pppRefCrdYLineEdit->setEnabled(true); 1625 1655 _pppRefCrdZLineEdit->setEnabled(true); 1626 _pppStaticCheckBox->setEnabled(true);1627 1656 _pppUsePhaseCheckBox->setEnabled(true); 1657 _pppPlotCoordinates->setEnabled(true); 1628 1658 _pppEstTropoCheckBox->setEnabled(true); 1629 1659 _pppGLONASSCheckBox->setEnabled(true); 1630 1660 _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") { 1634 1662 _pppRefCrdXLineEdit->setPalette(palette_white); 1635 1663 _pppRefCrdXLineEdit->setEnabled(true); … … 1638 1666 _pppRefCrdZLineEdit->setPalette(palette_white); 1639 1667 _pppRefCrdZLineEdit->setEnabled(true); 1668 if (_pppOriginComboBox->currentText() == "PPP") { 1669 _pppAverageLineEdit->setPalette(palette_white); 1670 _pppAverageLineEdit->setEnabled(true); 1671 } 1640 1672 } 1641 1673 else { … … 1646 1678 _pppRefCrdZLineEdit->setPalette(palette_gray); 1647 1679 _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 {1656 1680 _pppAverageLineEdit->setPalette(palette_gray); 1657 1681 _pppAverageLineEdit->setEnabled(false); 1658 1682 } 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); 1659 1693 if (_pppUsePhaseCheckBox->isChecked() 1660 1694 && !_pppMountLineEdit->text().isEmpty()) { 1661 _pppSig CLineEdit->setPalette(palette_white);1662 _pppSig CLineEdit->setEnabled(true);1695 _pppSigPLineEdit->setPalette(palette_white); 1696 _pppSigPLineEdit->setEnabled(true); 1663 1697 } 1664 1698 else { 1665 _pppSig CLineEdit->setPalette(palette_gray);1666 _pppSig CLineEdit->setEnabled(false);1699 _pppSigPLineEdit->setPalette(palette_gray); 1700 _pppSigPLineEdit->setEnabled(false); 1667 1701 } 1668 1702 } else { … … 1673 1707 _pppRefCrdYLineEdit->setPalette(palette_gray); 1674 1708 _pppRefCrdZLineEdit->setPalette(palette_gray); 1675 _pppStaticCheckBox->setPalette(palette_gray);1676 1709 _pppUsePhaseCheckBox->setPalette(palette_gray); 1710 _pppPlotCoordinates->setPalette(palette_gray); 1677 1711 _pppEstTropoCheckBox->setPalette(palette_gray); 1678 1712 _pppGLONASSCheckBox->setPalette(palette_gray); 1679 1713 _pppOriginComboBox->setPalette(palette_gray); 1680 1714 _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); 1681 1720 _pppAverageLineEdit->setPalette(palette_gray); 1682 1721 _pppSPPComboBox->setEnabled(false); … … 1686 1725 _pppRefCrdYLineEdit->setEnabled(false); 1687 1726 _pppRefCrdZLineEdit->setEnabled(false); 1688 _pppStaticCheckBox->setEnabled(false);1689 1727 _pppUsePhaseCheckBox->setEnabled(false); 1728 _pppPlotCoordinates->setEnabled(false); 1690 1729 _pppEstTropoCheckBox->setEnabled(false); 1691 1730 _pppGLONASSCheckBox->setEnabled(false); 1692 1731 _pppOriginComboBox->setEnabled(false); 1693 1732 _pppSigCLineEdit->setEnabled(false); 1733 _pppSigPLineEdit->setEnabled(false); 1734 _pppSigCrd0->setEnabled(false); 1735 _pppSigCrdP->setEnabled(false); 1736 _pppSigTrp0->setEnabled(false); 1737 _pppSigTrpP->setEnabled(false); 1694 1738 _pppAverageLineEdit->setEnabled(false); 1695 1739 }
Note:
See TracChangeset
for help on using the changeset viewer.