Changeset 11195 in ntrip for trunk/BNC/src/ephemeris.h
- Timestamp:
- Nov 10, 2026, 6:14:20 PM (2 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/src/ephemeris.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/ephemeris.h
r11194 r11195 2 2 #define EPHEMERIS_H 3 3 4 #include <cmath> 4 5 #include <newmat.h> 5 6 #include <QtCore> … … 36 37 bool matchesSsrIOD(unsigned int iod) const { 37 38 return (system() == Galileo) ? ((IOD() & 0xFF) == (iod & 0xFF)) : (IOD() == iod); 39 } 40 // Geostationary satellite (BDS/QZSS/NavIC GEO: inclination below 10 deg, 41 // SBAS: always) 42 virtual bool isGeo() const {return false;} 43 // Velocity defining the along/cross directions of an SSR orbit correction 44 // (IGS SSR v1.00 4.2): the ECEF velocity, for GEOs (ECEF velocity nearly 45 // zero) the velocity in the non-rotating frame parallel to ITRF at the 46 // SSR epoch, vv + Omega_e x r. xc: position [m], vv: ECEF velocity [m/s] 47 ColumnVector ssrFrameVel(const ColumnVector& xc, const ColumnVector& vv) const { 48 ColumnVector vel = vv.Rows(1, 3); 49 if (isGeo()) { 50 vel(1) -= t_CST::omega * xc(2); 51 vel(2) += t_CST::omega * xc(1); 52 } 53 return vel; 38 54 } 39 55 bool sameDataSet(const t_eph* eph) const {return _TOC == eph->_TOC && IOD() == eph->IOD();} … … 163 179 virtual unsigned int isUnhealthy() const; 164 180 double TGD() const {return _TGD;} // Timing Group Delay (P1-P2 DCB) 181 virtual bool isGeo() const { 182 return (system() == t_eph::QZSS || system() == t_eph::NavIC) && _i0 < 10.0 / 180.0 * M_PI; 183 } 165 184 166 185 private: … … 515 534 516 535 virtual e_system system() const {return t_eph::SBAS;} 536 virtual bool isGeo() const {return true;} 517 537 virtual unsigned int IOD() const; 518 538 virtual unsigned int isUnhealthy() const; … … 601 621 602 622 virtual e_system system() const {return t_eph::BDS;} 623 virtual bool isGeo() const {return _i0 <= 10.0 / 180.0 * M_PI;} 603 624 virtual unsigned int IOD() const; 604 625 virtual unsigned int isUnhealthy() const;
Note:
See TracChangeset
for help on using the changeset viewer.
