Changeset 1771 in ntrip


Ignore:
Timestamp:
Mar 24, 2009, 10:02:33 AM (15 years ago)
Author:
weber
Message:

* empty log message *

Location:
trunk/BNS
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.pro

    r1697 r1771  
    2828HEADERS =             bns.h   bnswindow.h   bnshlpdlg.h   bnshtml.h   \
    2929          bnseph.h    bnsutils.h bnsrinex.h bnssp3.h bnsoutf.h        \
    30           bnscaster.h RTCM/clock_orbit_rtcm.h bnssettings.h bnsapp.h
     30          bnscaster.h RTCM/clock_orbit_rtcm.h bnssettings.h bnsapp.h  \
     31          bnscustomtrafo.h
    3132
    3233HEADERS += newmat/controlw.h newmat/include.h newmat/myexcept.h  \
     
    3637SOURCES = bnsmain.cpp bns.cpp bnswindow.cpp bnshlpdlg.cpp bnshtml.cpp  \
    3738          bnseph.cpp  bnsutils.cpp bnsrinex.cpp bnssp3.cpp bnsoutf.cpp \
    38           bnscaster.cpp bnssettings.cpp bnsapp.cpp                     \
     39          bnscaster.cpp bnssettings.cpp bnsapp.cpp bnscustomtrafo.cpp  \
    3940          RTCM/clock_orbit_rtcm.c
    4041
  • trunk/BNS/bnshelp.html

    r1764 r1771  
    338338<ul>
    339339<li>IGS05 which stands for the GNSS-based IGS realization of the International Terrestrial Reference Frame 2005 (ITRF2005), and</li>
    340 <li>ETRF2000 which stands for the European Terestrial Reference Frame 2000 adopted by EUREF.</li>
     340<li>ETRF2000 which stands for the European Terestrial Reference Frame 2000 adopted by EUREF, and</li>
     341<li>'Custom' which allows a transformation of Broadcast Corrections from the IGS05 system to any other system through specifying up to 14 Helmert Transformation Parameters.</li>
    341342</ul>
    342343</p>
     
    368369</p>
    369370<p>
    370 Contact [igs-ip@bkg.bund.de] if you would like to see further Helmert transformation parameters implemented in BNS to support other national or regional reference system.
    371 <p>
     371<u>Custom:</u> The default numbers shown as an example are those for a transformation from ITRF2005 to ETRF2000'.
     372</p>
    372373
    373374
  • trunk/BNS/bnssettings.cpp

    r1728 r1771  
    6262    setValue("outFile_3",   "");
    6363
     64    setValue("dx",    "0.0541");
     65    setValue("dy",    "0.0502");
     66    setValue("dz",   "-0.0538");
     67    setValue("dxr",  "-0.0002");
     68    setValue("dyr",   "0.0001");
     69    setValue("dzr",  "-0.0018");
     70    setValue("ox",     "0.891");
     71    setValue("oy",     "5.390");
     72    setValue("oz",    "-8.712");
     73    setValue("oxr",    "0.081");
     74    setValue("oyr",    "0.490");
     75    setValue("ozr",   "-0.792");
     76    setValue("sc",      "0.40");
     77    setValue("scr",     "0.08");
     78    setValue("t0",    "2000.0");
     79
    6480    setValue("rnxPath",     "");
    6581    setValue("rnxIntr",     "1 min");
  • trunk/BNS/bnswindow.cpp

    r1728 r1771  
    2121#include "bnshlpdlg.h"
    2222#include "bnssettings.h"
     23#include "bnscustomtrafo.h"
    2324
    2425using namespace std;
     
    178179  _refSys_1_ComboBox = new QComboBox;
    179180  _refSys_1_ComboBox->setEditable(false);
    180   _refSys_1_ComboBox->addItems(QString("IGS05,ETRF2000").split(","));
     181  _refSys_1_ComboBox->addItems(QString("IGS05,ETRF2000,Custom").split(","));
    181182  int ii = _refSys_1_ComboBox->findText(settings.value("refSys_1").toString());
    182183  if (ii != -1) {
     
    196197  _refSys_2_ComboBox = new QComboBox;
    197198  _refSys_2_ComboBox->setEditable(false);
    198   _refSys_2_ComboBox->addItems(QString("IGS05,ETRF2000").split(","));
     199  _refSys_2_ComboBox->addItems(QString("IGS05,ETRF2000,Custom").split(","));
    199200  ii = _refSys_2_ComboBox->findText(settings.value("refSys_2").toString());
    200201  if (ii != -1) {
     
    214215  _refSys_3_ComboBox = new QComboBox;
    215216  _refSys_3_ComboBox->setEditable(false);
    216   _refSys_3_ComboBox->addItems(QString("IGS05,ETRF2000").split(","));
     217  _refSys_3_ComboBox->addItems(QString("IGS05,ETRF2000,Custom").split(","));
    217218  ii = _refSys_3_ComboBox->findText(settings.value("refSys_3").toString());
    218219  if (ii != -1) {
     
    437438
    438439  tab_cas1->setLayout(layout_cas1);
    439 
     440  connect(_refSys_1_ComboBox, SIGNAL(currentIndexChanged(const QString &)),
     441          this, SLOT(customTrafo(const QString)));
    440442  connect(_outHost_1_LineEdit, SIGNAL(textChanged(const QString &)),
    441443          this, SLOT(bnsText(const QString &)));
     
    488490
    489491  tab_cas2->setLayout(layout_cas2);
    490 
     492  connect(_refSys_2_ComboBox, SIGNAL(currentIndexChanged(const QString &)),
     493          this, SLOT(customTrafo(const QString)));
    491494  connect(_outHost_2_LineEdit, SIGNAL(textChanged(const QString &)),
    492495          this, SLOT(bnsText(const QString &)));
     
    539542
    540543  tab_cas3->setLayout(layout_cas3);
    541 
     544  connect(_refSys_3_ComboBox, SIGNAL(currentIndexChanged(const QString &)),
     545          this, SLOT(customTrafo(const QString)));
    542546  connect(_outHost_3_LineEdit, SIGNAL(textChanged(const QString &)),
    543547          this, SLOT(bnsText(const QString &)));
     
    814818  settings.setValue("outFile_3",   _outFile_3_LineEdit->text());
    815819  settings.setValue("beClocks3",   _beClocks2CheckBox->checkState());
    816 
    817820  settings.setValue("rnxPath",     _rnxPathLineEdit->text());
    818821  settings.setValue("rnxIntr",     _rnxIntrComboBox->currentText());
     
    954957    _ephPortLineEdit->setStyleSheet("background-color: white");
    955958    _ephEchoLineEdit->setStyleSheet("background-color: white");
     959    _ephPortLineEdit->setEnabled(true);
    956960    _ephEchoLineEdit->setEnabled(true);
    957961    } else {
    958962    _ephPortLineEdit->setStyleSheet("background-color: lightGray");
    959963    _ephEchoLineEdit->setStyleSheet("background-color: lightGray");
     964    _ephPortLineEdit->setEnabled(false);
    960965    _ephEchoLineEdit->setEnabled(false);
    961966    }
     
    11091114
    11101115}
     1116
     1117//  Custom transformation parameters
     1118////////////////////////////////////////////////////////////////////////////
     1119void bnsWindow::customTrafo(const QString &text){
     1120  if (text == "Custom" ) {
     1121    bnsCustomTrafo* dlg = new bnsCustomTrafo(this);
     1122    dlg->exec();
     1123    delete dlg;
     1124  }
     1125}
     1126 
  • trunk/BNS/bnswindow.h

    r1728 r1771  
    44#include <QtGui>
    55#include <QWhatsThis>
     6#include <QMessageBox>
    67
    78#include "bns.h"
     
    3334  void slotError(const QByteArray msg);
    3435  void bnsText(const QString &text);
     36  void customTrafo(const QString &text);
    3537
    3638 private slots:
Note: See TracChangeset for help on using the changeset viewer.