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


Ignore:
Timestamp:
Jun 20, 2022, 4:54:59 PM (22 months ago)
Author:
stuerze
Message:

some more changes to consider RINEX Version 4 nav file (EPH key only)

File:
1 edited

Legend:

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

    r9673 r9765  
    1919  enum e_type {unknown, GPS, QZSS, GLONASS, Galileo, SBAS, BDS, IRNSS};
    2020  enum e_checkState {unchecked, ok, bad, outdated, unhealthy};
     21  enum e_navType {undefined, LNAV, FDMA, FNAV, INAF, D1, D2, SBASL1, CNAV, CNV1, CNV2, CNV3};
    2122
    2223  t_eph();
     
    3031  bncTime TOC() const {return _TOC;}
    3132  bool    isNewerThan(const t_eph* eph) const {return earlierTime(eph, this);}
     33  void setCheckState(e_checkState checkState) {_checkState = checkState;}
    3234  e_checkState checkState() const {return _checkState;}
    3335  QString checkStateToString() {
    3436    switch (_checkState) {
    35       case unchecked:
    36         return "unchecked";
    37       case ok:
    38         return "ok";
    39       case bad:
    40         return "bad";
    41       case outdated:
    42         return "outdated";
    43       case unhealthy:
    44         return "unhealthy";
    45       default:
    46         return "unknown";
     37      case unchecked:  return "unchecked";
     38      case ok:         return "ok";
     39      case bad:        return "bad";
     40      case outdated:   return "outdated";
     41      case unhealthy:  return "unhealthy";
     42      default:         return "unknown";
    4743    }
    4844  }
    49   void    setCheckState(e_checkState checkState) {_checkState = checkState;}
     45  e_navType navType() const {return _navType;}
     46  t_irc setNavType(QString navTypeStr);
     47
    5048  t_prn   prn() const {return _prn;}
    5149  t_irc   getCrd(const bncTime& tt, ColumnVector& xc, ColumnVector& vv, bool useCorr) const;
     
    5654  static QString rinexDateStr(const bncTime& tt, const t_prn& prn, double version);
    5755  static QString rinexDateStr(const bncTime& tt, const QString& prnStr, double version);
     56  static QString navTypeString(e_navType navType, const t_prn& prn, double version);
    5857  static bool earlierTime(const t_eph* eph1, const t_eph* eph2) {return eph1->_TOC < eph2->_TOC;}
    5958  static bool prnSort(const t_eph* eph1, const t_eph* eph2) {return eph1->prn() < eph2->prn();}
     
    6160 protected:
    6261  virtual t_irc position(int GPSweek, double GPSweeks, double* xc, double* vv) const = 0;
    63   t_prn        _prn;
    64   bncTime      _TOC;
    65   QDateTime    _receptDateTime;
    66   QString      _receptStaID;
    67   e_checkState _checkState;
    68   t_orbCorr*   _orbCorr;
    69   t_clkCorr*   _clkCorr;
    70 };
    71 
     62  t_prn            _prn;
     63  bncTime          _TOC;
     64  QDateTime        _receptDateTime;
     65  QString          _receptStaID;
     66  e_checkState     _checkState;
     67  e_navType        _navType; // defined in RINEX 4
     68  t_orbCorr*       _orbCorr;
     69  t_clkCorr*       _clkCorr;
     70};
    7271
    7372class t_ephGPS : public t_eph {
Note: See TracChangeset for help on using the changeset viewer.