Changeset 891 in ntrip
- Timestamp:
- May 8, 2008, 5:27:36 PM (17 years ago)
- Location:
- trunk/BNS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bnseph.cpp
r890 r891 348 348 ColumnVector& vv) const { 349 349 350 } 351 350 const static double secPerWeek = 7 * 86400.0; 351 352 double dt = GPSweeks - _tt; 353 if (GPSweek != _GPSweek) { 354 dt += (GPSweek - _GPSweek) * secPerWeek; 355 } 356 357 const static double maxStep = 10.0; 358 359 double tt = 0.0; 360 while (tt < dt) { 361 double step = maxStep; 362 if (tt + step > dt) { 363 step = dt - tt; 364 } 365 _xv = rungeKutta4(tt, _xv, step, glo_deriv); 366 tt += step; 367 } 368 369 xc(1) = _xv(1); 370 xc(2) = _xv(2); 371 xc(3) = _xv(3); 372 373 xc(4) = 0.0; 374 375 vv(1) = _xv(4); 376 vv(2) = _xv(5); 377 vv(3) = _xv(6); 378 } 379 -
trunk/BNS/bnseph.h
r889 r891 38 38 private: 39 39 static ColumnVector glo_deriv(double /* tt */, const ColumnVector& xv); 40 double _tt; // time in seconds of GPSweek41 ColumnVector _xv; // status vector (position, velocity) at time _tt40 mutable double _tt; // time in seconds of GPSweek 41 mutable ColumnVector _xv; // status vector (position, velocity) at time _tt 42 42 43 43 double _E; // [days]
Note:
See TracChangeset
for help on using the changeset viewer.