Changeset 9765 in ntrip for trunk/BNC/src/ephemeris.h
- Timestamp:
- Jun 20, 2022, 4:54:59 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/ephemeris.h
r9673 r9765 19 19 enum e_type {unknown, GPS, QZSS, GLONASS, Galileo, SBAS, BDS, IRNSS}; 20 20 enum e_checkState {unchecked, ok, bad, outdated, unhealthy}; 21 enum e_navType {undefined, LNAV, FDMA, FNAV, INAF, D1, D2, SBASL1, CNAV, CNV1, CNV2, CNV3}; 21 22 22 23 t_eph(); … … 30 31 bncTime TOC() const {return _TOC;} 31 32 bool isNewerThan(const t_eph* eph) const {return earlierTime(eph, this);} 33 void setCheckState(e_checkState checkState) {_checkState = checkState;} 32 34 e_checkState checkState() const {return _checkState;} 33 35 QString checkStateToString() { 34 36 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"; 47 43 } 48 44 } 49 void setCheckState(e_checkState checkState) {_checkState = checkState;} 45 e_navType navType() const {return _navType;} 46 t_irc setNavType(QString navTypeStr); 47 50 48 t_prn prn() const {return _prn;} 51 49 t_irc getCrd(const bncTime& tt, ColumnVector& xc, ColumnVector& vv, bool useCorr) const; … … 56 54 static QString rinexDateStr(const bncTime& tt, const t_prn& prn, double version); 57 55 static QString rinexDateStr(const bncTime& tt, const QString& prnStr, double version); 56 static QString navTypeString(e_navType navType, const t_prn& prn, double version); 58 57 static bool earlierTime(const t_eph* eph1, const t_eph* eph2) {return eph1->_TOC < eph2->_TOC;} 59 58 static bool prnSort(const t_eph* eph1, const t_eph* eph2) {return eph1->prn() < eph2->prn();} … … 61 60 protected: 62 61 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 }; 72 71 73 72 class t_ephGPS : public t_eph {
Note:
See TracChangeset
for help on using the changeset viewer.