Changeset 6602 in ntrip for trunk/BNC/src/ephemeris.cpp
- Timestamp:
- Feb 20, 2015, 10:57:31 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/ephemeris.cpp
r6601 r6602 1525 1525 } 1526 1526 1527 static const double gm Compass= 398.6004418e12;1528 static const double omega Compass= 7292115.0000e-11;1527 static const double gmBDS = 398.6004418e12; 1528 static const double omegaBDS = 7292115.0000e-11; 1529 1529 1530 1530 xc[0] = xc[1] = xc[2] = xc[3] = 0.0; … … 1538 1538 double a0 = _sqrt_A * _sqrt_A; 1539 1539 1540 double n0 = sqrt(gm Compass/(a0*a0*a0));1540 double n0 = sqrt(gmBDS/(a0*a0*a0)); 1541 1541 double tk = tt - _TOE; 1542 1542 double n = n0 + _Delta_n; … … 1575 1575 // ------------------ 1576 1576 if (_i0 > iMaxGEO) { 1577 double OM = _OMEGA0 + (_OMEGADOT - omega Compass)*tk - omegaCompass*toesec;1577 double OM = _OMEGA0 + (_OMEGADOT - omegaBDS)*tk - omegaBDS*toesec; 1578 1578 1579 1579 sinom = sin(OM); … … 1590 1590 // ------------- 1591 1591 else { 1592 double OM = _OMEGA0 + _OMEGADOT*tk - omega Compass*toesec;1593 double ll = omega Compass*tk;1592 double OM = _OMEGA0 + _OMEGADOT*tk - omegaBDS*toesec; 1593 double ll = omegaBDS*tk; 1594 1594 1595 1595 sinom = sin(OM);
Note:
See TracChangeset
for help on using the changeset viewer.