Changeset 11195 in ntrip for trunk/BNC/src/ephemeris.h


Ignore:
Timestamp:
Nov 10, 2026, 6:14:20 PM (2 weeks ago)
Author:
stuerze
Message:

Structured logging improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/ephemeris.h

    r11194 r11195  
    22#define EPHEMERIS_H
    33
     4#include <cmath>
    45#include <newmat.h>
    56#include <QtCore>
    … …  
    3637  bool    matchesSsrIOD(unsigned int iod) const {
    3738    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;
    3854  }
    3955  bool    sameDataSet(const t_eph* eph) const {return _TOC == eph->_TOC && IOD() == eph->IOD();}
    … …  
    163179  virtual unsigned int isUnhealthy() const;
    164180  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  }
    165184
    166185 private:
    … …  
    515534
    516535  virtual e_system  system() const {return t_eph::SBAS;}
     536  virtual bool isGeo() const {return true;}
    517537  virtual unsigned int IOD() const;
    518538  virtual unsigned int  isUnhealthy() const;
    … …  
    601621
    602622  virtual e_system  system() const {return t_eph::BDS;}
     623  virtual bool isGeo() const {return _i0 <= 10.0 / 180.0 * M_PI;}
    603624  virtual unsigned int IOD() const;
    604625  virtual unsigned int isUnhealthy() const;
Note: See TracChangeset for help on using the changeset viewer.