Changeset 1245 in ntrip for trunk/BNS/bns.cpp


Ignore:
Timestamp:
Nov 29, 2008, 5:33:01 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r1243 r1245  
    501501
    502502  static const double arcSec = 180.0 * 3600.0 / M_PI;
    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;
    507 
    508   Matrix rMat(3,3); rMat = 0.0;
     503  double ox = ( 0.000891 + dt * 0.000081) / arcSec;
     504  double oy = ( 0.005390 + dt * 0.000490) / arcSec;
     505  double oz = (-0.008712 - dt * 0.000792) / arcSec;
     506
     507  double sc = 1.0 + 0.4e-9 + dt * 0.08e-9;
     508
     509  Matrix rMat(3,3);
     510  rMat(1,1) = 1.0;
    509511  rMat(1,2) = -oz;
    510512  rMat(1,3) =  oy;
    511513  rMat(2,1) =  oz;
     514  rMat(2,2) = 1.0;
    512515  rMat(2,3) = -ox;
    513516  rMat(3,1) = -oy;
    514517  rMat(3,2) =  ox;
    515 
    516 
    517   xyz += dx + rMat * xyz;
    518 }
     518  rMat(3,3) = 1.0;
     519
     520
     521  xyz = sc * rMat * xyz + dx;
     522}
Note: See TracChangeset for help on using the changeset viewer.