18 #ifndef GNSS_SDR_GPS_CNAV_EPHEMERIS_H 19 #define GNSS_SDR_GPS_CNAV_EPHEMERIS_H 21 #include <boost/serialization/nvp.hpp> 61 uint32_t i_satellite_PRN{};
132 bool b_l2c_phasing_flag{};
136 template <
class Archive>
141 inline void serialize(Archive& archive,
const uint32_t version)
143 using boost::serialization::make_nvp;
148 archive& make_nvp(
"i_satellite_PRN", i_satellite_PRN);
149 archive& make_nvp(
"d_TOW",
d_TOW);
150 archive& make_nvp(
"d_Crs",
d_Crs);
151 archive& make_nvp(
"d_M_0",
d_M_0);
152 archive& make_nvp(
"d_Cuc",
d_Cuc);
154 archive& make_nvp(
"d_Cus",
d_Cus);
155 archive& make_nvp(
"d_Toe1",
d_Toe1);
156 archive& make_nvp(
"d_Toe2",
d_Toe2);
157 archive& make_nvp(
"d_Toc",
d_Toc);
158 archive& make_nvp(
"d_Cic",
d_Cic);
159 archive& make_nvp(
"d_OMEGA0",
d_OMEGA0);
160 archive& make_nvp(
"d_Cis",
d_Cis);
161 archive& make_nvp(
"d_i_0",
d_i_0);
162 archive& make_nvp(
"d_Crc",
d_Crc);
163 archive& make_nvp(
"d_OMEGA",
d_OMEGA);
164 archive& make_nvp(
"d_IDOT",
d_IDOT);
166 archive& make_nvp(
"d_TGD",
d_TGD);
167 archive& make_nvp(
"d_ISCL1", d_ISCL1);
168 archive& make_nvp(
"d_ISCL2", d_ISCL2);
169 archive& make_nvp(
"d_ISCL5I", d_ISCL5I);
170 archive& make_nvp(
"d_ISCL5Q", d_ISCL5Q);
172 archive& make_nvp(
"d_DELTA_A",
d_DELTA_A);
173 archive& make_nvp(
"d_A_DOT",
d_A_DOT);
175 archive& make_nvp(
"d_A_f0",
d_A_f0);
176 archive& make_nvp(
"d_A_f1",
d_A_f1);
177 archive& make_nvp(
"d_A_f2",
d_A_f2);
185 double check_t(
double time);
191 #endif // GNSS_SDR_GPS_CNAV_EPHEMERIS_H double d_Cis
Amplitude of the Sine Harmonic Correction Term to the Angle of Inclination [rad]. ...
This class is a storage and orbital model functions for the GPS SV ephemeris data as described in IS-...
double d_satpos_X
Earth-fixed coordinate x of the satellite [m]. Intersection of the IERS Reference Meridian (IRM) and ...
double d_satvel_Z
Earth-fixed velocity coordinate z of the satellite [m].
double d_OMEGA
Argument of Perigee [semi-cicles].
double d_Delta_n
Mean Motion Difference From Computed Value [semi-circles/s].
double d_satClkDrift
GPS clock error.
double d_satvel_Y
Earth-fixed velocity coordinate y of the satellite [m].
double d_DELTA_A
Semi-major axis difference at reference time.
double d_OMEGA0
Longitude of Ascending Node of Orbit Plane at Weekly Epoch [semi-cicles].
double d_satpos_Y
Earth-fixed coordinate y of the satellite [m]. Completes a right-handed, Earth-Centered, Earth-Fixed orthogonal coordinate system.
double d_A_f1
Coefficient 1 of code phase offset model [s/s].
int32_t i_signal_health
Signal health (L1/L2/L5)
double d_DELTA_OMEGA_DOT
Rate of Right Ascension difference [semi-circles/s].
bool b_antispoofing_flag
If true, the AntiSpoofing mode is ON in that SV.
double d_M_0
Mean Anomaly at Reference Time [semi-circles].
double sv_clock_relativistic_term(double transmitTime)
Sets (d_dtr) and returns the clock relativistic correction term in seconds according to the User Algo...
int32_t d_Toe2
Ephemeris data reference time of week (Ref. 20.3.3.4.3 IS-GPS-200K) [s].
double d_A_f2
Coefficient 2 of code phase offset model [s/s^2].
double d_Cus
Amplitude of the Sine Harmonic Correction Term to the Argument of Latitude [rad]. ...
double d_Crs
Amplitude of the Sine Harmonic Correction Term to the Orbit Radius [m].
double d_IDOT
Rate of Inclination Angle [semi-circles/s].
double d_TGD
Estimated Group Delay Differential: L1-L2 correction term only for the benefit of "L1 P(Y)" or "L2 P(...
int32_t i_GPS_week
GPS week number, aka WN [week].
bool b_alert_flag
If true, indicates that the SV URA may be worse than indicated in d_SV_accuracy, use that SV at our o...
bool b_integrity_status_flag
If true, enhanced level of integrity assurance.
double d_Cic
Amplitude of the Cosine Harmonic Correction Term to the Angle of Inclination [rad].
void serialize(Archive &archive, const uint32_t version)
Serialize is a boost standard method to be called by the boost XML serialization. Here is used to sav...
double d_Crc
Amplitude of the Cosine Harmonic Correction Term to the Orbit Radius [m].
double d_satvel_X
Earth-fixed velocity coordinate x of the satellite [m].
int32_t d_Toe1
Ephemeris data reference time of week (Ref. 20.3.3.4.3 IS-GPS-200K) [s].
int32_t i_URA
ED Accuracy Index.
double sv_clock_drift(double transmitTime)
Sets (d_satClkDrift)and returns the clock drift in seconds according to the User Algorithm for SV Clo...
double d_A_DOT
Change rate in semi-major axis.
int32_t d_TOW
Time of GPS Week of the ephemeris set (taken from subframes TOW) [s].
double satellitePosition(double transmitTime)
Compute the ECEF SV coordinates and ECEF velocity Implementation of Table 20-IV (IS-GPS-200K) ...
double d_Cuc
Amplitude of the Cosine Harmonic Correction Term to the Argument of Latitude [rad].
double d_satpos_Z
Earth-fixed coordinate z of the satellite [m]. The direction of the IERS (International Earth Rotatio...
int32_t d_Top
Data predict time of week.
double d_URA0
NED Accuracy Index.
Gps_CNAV_Ephemeris()=default
double d_URA1
NED Accuracy Change Index.
int32_t d_Toc
clock data reference time (Ref. 20.3.3.3.3.1 IS-GPS-200K) [s]
double d_URA2
NED Accuracy Change Rate Index.
double d_A_f0
Coefficient 0 of code phase offset model [s].
double d_i_0
Inclination Angle at Reference Time [semi-circles].
double d_DELTA_DOT_N
Rate of mean motion difference from computed value.
double d_e_eccentricity
Eccentricity.
double d_dtr
relativistic clock correction term