Changeset 892 in ntrip


Ignore:
Timestamp:
May 8, 2008, 5:44:02 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnseph.cpp

    r891 r892  
    367367  }
    368368
     369  // Position and Velocity
     370  // ---------------------
    369371  xc(1) = _xv(1);
    370372  xc(2) = _xv(2);
    371373  xc(3) = _xv(3);
    372374
    373   xc(4) = 0.0;
    374  
    375375  vv(1) = _xv(4);
    376376  vv(2) = _xv(5);
    377377  vv(3) = _xv(6);
    378 }
    379 
     378
     379  // Clock Correction
     380  // ----------------
     381  double dtClk = GPSweeks - _GPSweeks;
     382  if (GPSweek != _GPSweek) { 
     383    dtClk += (GPSweek - _GPSweek) * secPerWeek;
     384  }
     385  xc(4) = _tau + _gamma * dtClk / 86400.0;
     386}
     387
Note: See TracChangeset for help on using the changeset viewer.