18 #ifndef GNSS_SDR_BEIDOU_DNAV_EPHEMERIS_H 19 #define GNSS_SDR_BEIDOU_DNAV_EPHEMERIS_H 21 #include <boost/serialization/nvp.hpp> 135 template <
class Archive>
140 void serialize(Archive& archive,
const unsigned int version)
142 using boost::serialization::make_nvp;
148 archive& make_nvp(
"d_TOW",
d_TOW);
149 archive& make_nvp(
"d_AODE",
d_AODE);
150 archive& make_nvp(
"d_Crs",
d_Crs);
151 archive& make_nvp(
"d_Delta_n",
d_Delta_n);
152 archive& make_nvp(
"d_M_0",
d_M_0);
153 archive& make_nvp(
"d_Cuc",
d_Cuc);
155 archive& make_nvp(
"d_Cus",
d_Cus);
156 archive& make_nvp(
"d_sqrt_A",
d_sqrt_A);
157 archive& make_nvp(
"d_Toe",
d_Toe);
158 archive& make_nvp(
"d_Toc",
d_Toe);
159 archive& make_nvp(
"d_Cic",
d_Cic);
160 archive& make_nvp(
"d_OMEGA0",
d_OMEGA0);
161 archive& make_nvp(
"d_Cis",
d_Cis);
162 archive& make_nvp(
"d_i_0",
d_i_0);
163 archive& make_nvp(
"d_Crc",
d_Crc);
164 archive& make_nvp(
"d_OMEGA",
d_OMEGA);
166 archive& make_nvp(
"d_IDOT",
d_IDOT);
169 archive& make_nvp(
"i_SV_health", i_SV_health);
170 archive& make_nvp(
"d_AODC",
d_AODC);
171 archive& make_nvp(
"d_TGD1",
d_TGD1);
172 archive& make_nvp(
"d_TGD2",
d_TGD2);
173 archive& make_nvp(
"i_AODO",
i_AODO);
176 archive& make_nvp(
"d_spare1", d_spare1);
177 archive& make_nvp(
"d_spare2", d_spare2);
179 archive& make_nvp(
"d_A_f0",
d_A_f0);
180 archive& make_nvp(
"d_A_f1",
d_A_f1);
181 archive& make_nvp(
"d_A_f2",
d_A_f2);
196 double check_t(
double time);
202 #endif // GNSS_SDR_BEIDOU_DNAV_EPHEMERIS_H double d_OMEGA
Argument of Perigee [semi-cicles].
double d_satvel_Y
Earth-fixed velocity coordinate y of the satellite [m].
double d_dtr
relativistic clock correction term
double d_TOW
Time of BEIDOU Week of the ephemeris set (taken from subframes TOW) [s].
int i_BEIDOU_week
BEIDOU week number, aka WN [week].
double d_A_f0
Coefficient 0 of code phase offset model [s].
double d_A_f2
Coefficient 2 of code phase offset model [s/s^2].
double d_satClkDrift
GPS clock error.
double d_M_0
Mean Anomaly at Reference Time [semi-circles].
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_OMEGA_DOT
Rate of Right Ascension [semi-circles/s].
double d_IDOT
Rate of Inclination Angle [semi-circles/s].
double d_eccentricity
Eccentricity [dimensionless].
double d_Delta_n
Mean Motion Difference From Computed Value [semi-circles/s].
double d_OMEGA0
Longitude of Ascending Node of Orbit Plane at Weekly Epoch [semi-circles].
double d_Cic
Amplitude of the Cosine Harmonic Correction Term to the Angle of Inclination [rad].
bool b_antispoofing_flag
If true, the AntiSpoofing mode is ON in that SV.
double satellitePosition(double transmitTime)
Compute the ECEF SV coordinates and ECEF velocity Implementation of Table 20-IV (IS-GPS-200K) and com...
void serialize(Archive &archive, const unsigned int version)
Serialize is a boost standard method to be called by the boost XML serialization. Here is used to sav...
double d_satvel_X
Earth-fixed velocity coordinate x of the satellite [m].
double d_satvel_Z
Earth-fixed velocity coordinate z of the satellite [m].
double d_i_0
Inclination Angle at Reference Time [semi-circles].
This class is a storage and orbital model functions for the GPS SV ephemeris data as described in Bei...
int i_SV_accuracy
User Range Accuracy (URA) index of the SV (reference paragraph 6.2.1) for the standard positioning se...
double d_TGD2
Estimated Group Delay Differential on B2I [s].
std::map< int, std::string > satelliteBlock
Map that stores to which block the PRN belongs.
double d_Cus
Amplitude of the Sine Harmonic Correction Term to the Argument of Latitude [rad]. ...
int i_nav_type
BDS: nav type (0:unknown,1:IGSO/MEO,2:GEO) */.
double d_satpos_X
Earth-fixed coordinate x of the satellite [m]. Intersection of the IERS Reference Meridian (IRM) and ...
double d_AODC
Age of Data, Clock.
double d_satpos_Y
Earth-fixed coordinate y of the satellite [m]. Completes a right-handed, Earth-Centered, Earth-Fixed orthogonal coordinate system.
bool b_fit_interval_flag
indicates the curve-fit interval used by the CS (Block II/IIA/IIR/IIR-M/IIF) and SS (Block IIIA) in d...
bool b_integrity_status_flag
If true, enhanced level of integrity assurance.
double d_Crc
Amplitude of the Cosine Harmonic Correction Term to the Orbit Radius [m].
double d_satpos_Z
Earth-fixed coordinate z of the satellite [m]. The direction of the IERS (International Earth Rotatio...
double d_TGD1
Estimated Group Delay Differential on B1I [s].
double d_Toe
Ephemeris data reference time of week (Ref. 20.3.3.4.3 IS-GPS-200K) [s].
double d_Cis
Amplitude of the Sine Harmonic Correction Term to the Angle of Inclination [rad]. ...
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...
double d_sqrt_A
Square Root of the Semi-Major Axis [sqrt(m)].
double d_AODE
Age of Data, Ephemeris.
double d_Cuc
Amplitude of the Cosine Harmonic Correction Term to the Argument of Latitude [rad].
int i_AODO
Age of Data Offset (AODO) term for the navigation message correction table (NMCT) contained in subfra...
unsigned int i_satellite_PRN
SV PRN NUMBER.
int i_sig_type
BDS: data source (0:unknown,1:B1I,2:B1Q,3:B2I,4:B2Q,5:B3I,6:B3Q) */.
double d_Toc
clock data reference time (Ref. 20.3.3.3.3.1 IS-GPS-200K) [s]
double d_Crs
Amplitude of the Sine Harmonic Correction Term to the Orbit Radius [m].
double d_A_f1
Coefficient 1 of code phase offset model [s/s].
double sv_clock_relativistic_term(double transmitTime)
Sets (d_dtr) and returns the clock relativistic correction term in seconds according to the User Algo...