Changeset 6602 in ntrip
- Timestamp:
- Feb 20, 2015, 10:57:31 AM (10 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 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); -
trunk/BNC/src/ephemeris.h
r6600 r6602 19 19 class t_eph { 20 20 public: 21 enum e_type {unknown, GPS, QZSS, GLONASS, Galileo, SBAS, Compass};21 enum e_type {unknown, GPS, QZSS, GLONASS, Galileo, SBAS, BDS}; 22 22 enum e_checkState {unchecked, ok, bad}; 23 23 … … 247 247 248 248 void set(const bdsephemeris* ee); 249 virtual e_type type() const {return t_eph:: Compass;}249 virtual e_type type() const {return t_eph::BDS;} 250 250 virtual int IOD() const {return _AODC;} 251 251 virtual QString toString(double version) const; -
trunk/BNC/src/rinex/reqcedit.cpp
r6600 r6602 521 521 ephs.append(new t_ephSBAS(*dynamic_cast<t_ephSBAS*>(eph))); 522 522 } 523 else if (eph->type() == t_eph:: Compass) {523 else if (eph->type() == t_eph::BDS) { 524 524 ephs.append(new t_ephBDS(*dynamic_cast<t_ephBDS*>(eph))); 525 525 }
Note:
See TracChangeset
for help on using the changeset viewer.