Changeset 1243 in ntrip


Ignore:
Timestamp:
Nov 28, 2008, 4:19:06 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r1217 r1243  
    491491void t_bns::crdTrafo(int GPSWeek, ColumnVector& xyz) {
    492492
     493  // Current epoch minus 2000.0 in years
     494  // ------------------------------------
     495  double dt = (GPSWeek - (1042.0+6.0/7.0)) / 365.2422 * 7.0;
     496
    493497  ColumnVector dx(3);
    494   dx(1) =  0.054;
    495   dx(2) =  0.051;
    496   dx(3) = -0.048;
     498  dx(1) =  0.0541 - dt * 0.0002;
     499  dx(2) =  0.0502 + dt * 0.0001;
     500  dx(3) = -0.0538 - dt * 0.0018;
     501
    497502  static const double arcSec = 180.0 * 3600.0 / M_PI;
    498   static const double ox =  0.000081 / arcSec;
    499   static const double oy =  0.000490 / arcSec;
    500   static const double oz = -0.000792 / arcSec;
     503
     504  static const double ox = ( 0.000891 + dt * 0.000081) / arcSec;
     505  static const double oy = ( 0.005390 + dt * 0.000490) / arcSec;
     506  static const double oz = (-0.008712 - dt * 0.000792) / arcSec;
    501507
    502508  Matrix rMat(3,3); rMat = 0.0;
     
    508514  rMat(3,2) =  ox;
    509515
    510   // Current epoch minus 1989.0 in years
    511   // ------------------------------------
    512   double dt = (GPSWeek - 469.0) / 365.2422 * 7.0;
    513 
    514   xyz += dx + dt * rMat * xyz;
    515 }
     516
     517  xyz += dx + rMat * xyz;
     518}
  • trunk/BNS/bnscaster.cpp

    r1208 r1243  
    5353  // ---------------
    5454  _crdTrafo = false;
    55   if (refSys == "ETRS89") {
     55  if (refSys == "ETRF2000") {
    5656    _crdTrafo = true;
    5757  }
  • trunk/BNS/bnswindow.cpp

    r1112 r1243  
    185185  _refSys_1_ComboBox->setMaximumWidth(10*ww);
    186186  _refSys_1_ComboBox->setEditable(false);
    187   _refSys_1_ComboBox->addItems(QString("IGS05,ETRS89").split(","));
     187  _refSys_1_ComboBox->addItems(QString("IGS05,ETRF2000").split(","));
    188188  int ii = _refSys_1_ComboBox->findText(settings.value("refSys_1").toString());
    189189  if (ii != -1) {
     
    194194  _refSys_2_ComboBox->setMaximumWidth(10*ww);
    195195  _refSys_2_ComboBox->setEditable(false);
    196   _refSys_2_ComboBox->addItems(QString("IGS05,ETRS89").split(","));
     196  _refSys_2_ComboBox->addItems(QString("IGS05,ETRF2000").split(","));
    197197  ii = _refSys_2_ComboBox->findText(settings.value("refSys_2").toString());
    198198  if (ii != -1) {
Note: See TracChangeset for help on using the changeset viewer.