Changeset 2221 in ntrip for trunk/BNC/RTCM3/ephemeris.h
- Timestamp:
- Jan 12, 2010, 8:36:29 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/ephemeris.h
r2040 r2221 1 1 #ifndef EPHEMERIS_H 2 2 #define EPHEMERIS_H 3 4 #include <newmat.h> 3 5 4 6 #include <stdio.h> … … 19 21 20 22 virtual void position(int GPSweek, double GPSweeks, 21 22 23 double* xc, 24 double* vv) const = 0; 23 25 24 26 void position(int GPSweek, double GPSweeks, 25 27 double& xx, double& yy, double& zz, double& cc) const { 26 28 double tmp_xx[4]; 27 29 double tmp_vv[4]; … … 49 51 public: 50 52 t_ephGPS() { } 51 ~t_ephGPS() {}53 virtual ~t_ephGPS() {} 52 54 double TOC() const {return _TOC;} 53 55 … … 55 57 56 58 void set(int prn, 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 59 int GPSWeek, 60 double toc, double toe, double tot, 61 double IODE, double IODC, 62 double clock_bias, double clock_drift, double clock_driftrate, 63 double OMEGA0, double OMEGADOT, 64 double i0, double IDOT, 65 double omega, 66 double M0, double Delta_n, 67 double sqrt_A, 68 double e, 69 double Crc, double Crs, 70 double Cic, double Cis, 71 double Cuc, double Cus, 72 double TGD, 73 int health); 72 74 73 v oid position(int GPSweek, double GPSweeks,74 75 75 virtual void position(int GPSweek, double GPSweeks, 76 double* xc, 77 double* vv) const; 76 78 77 int IOD() const { return static_cast<int>(_IODC); }79 virtual int IOD() const { return static_cast<int>(_IODC); } 78 80 79 v oid print(std::ostream& out) const;81 virtual void print(std::ostream& out) const; 80 82 81 83 private: … … 109 111 }; 110 112 113 class t_ephGlo : public t_eph { 114 public: 115 t_ephGlo() { _gps_utc = 0.0; _xv.ReSize(6); } 116 117 virtual ~t_ephGlo() {} 118 119 virtual void position(int GPSweek, double GPSweeks, 120 double* xc, 121 double* vv) const; 122 123 virtual int IOD() const; 124 125 virtual void print(std::ostream& out) const; 126 127 void set(const glonassephemeris* ee); 128 129 private: 130 static ColumnVector glo_deriv(double /* tt */, const ColumnVector& xv); 131 132 mutable double _tt; // time in seconds of GPSweek 133 mutable ColumnVector _xv; // status vector (position, velocity) at time _tt 134 135 double _gps_utc; // GPS - UTC in seconds 136 double _E; // [days] 137 double _tau; // [s] 138 double _gamma; // 139 double _x_pos; // [km] 140 double _x_velocity; // [km/s] 141 double _x_acceleration; // [km/s^2] 142 double _y_pos; // [km] 143 double _y_velocity; // [km/s] 144 double _y_acceleration; // [km/s^2] 145 double _z_pos; // [km] 146 double _z_velocity; // [km/s] 147 double _z_acceleration; // [km/s^2] 148 double _health; // 0 = O.K. 149 double _frequency_number; // ICD-GLONASS data position 150 double _tki; // message frame time 151 }; 152 111 153 #endif
Note:
See TracChangeset
for help on using the changeset viewer.