- Timestamp:
- Apr 15, 2010, 1:42:35 PM (15 years ago)
- Location:
- trunk/BNS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r2427 r2429 426 426 xx(5) *= 1e-6; // rel. corr. 427 427 // xx(6), xx(7), xx(8) ... PhaseCent - CoM 428 xx(9) /= 0.299792458; // xx(9) ... P1-C1 DCB in ns429 xx(10) /= 0.299792458; // xx(10) ... P1-P2 DCB in ns428 // xx(9) ... P1-C1 DCB in meters 429 // xx(10) ... P1-P2 DCB in meters 430 430 // xx(11) ... dT 431 431 xx(12) *= 1e3; // x-crd at time + dT -
trunk/BNS/bnseph.cpp
r2285 r2429 454 454 tc += (GPSweek - _GPSweek) * secPerWeek; 455 455 } 456 xc(4) = _clock_bias + _clock_drift*tc + _clock_driftrate*tc*tc 457 - 4.442807633e-10 * _e * sqrt(a0) *sin(E); 456 xc(4) = _clock_bias + _clock_drift*tc + _clock_driftrate*tc*tc; 458 457 459 458 // Velocity … … 480 479 481 480 vv(3) = sini *doty + yp*cosi *doti; 481 482 // Relativistic Correction 483 // ----------------------- 484 // xc(4) -= 4.442807633e-10 * _e * sqrt(a0) *sin(E); 485 const static double c_vel = 299792458.0; 486 xc(4) -= 2.0 * DotProduct(xc.Rows(1,3),vv) / c_vel / c_vel; 482 487 } 483 488
Note:
See TracChangeset
for help on using the changeset viewer.