18 #ifndef GNSS_SDR_SERDES_GPS_EPH_H 19 #define GNSS_SDR_SERDES_GPS_EPH_H 22 #include "gps_ephemeris.pb.h" 43 GOOGLE_PROTOBUF_VERIFY_VERSION;
58 std::swap(this->monitor_, temp.monitor_);
68 std::swap(this->monitor_, other.monitor_);
77 monitor_.set_prn(monitor->PRN);
78 monitor_.set_m_0(monitor->M_0);
79 monitor_.set_delta_n(monitor->delta_n);
80 monitor_.set_ecc(monitor->ecc);
81 monitor_.set_sqrta(monitor->sqrtA);
82 monitor_.set_omega_0(monitor->OMEGA_0);
83 monitor_.set_i_0(monitor->i_0);
84 monitor_.set_omega(monitor->omega);
85 monitor_.set_omegadot(monitor->OMEGAdot);
86 monitor_.set_idot(monitor->idot);
87 monitor_.set_cuc(monitor->Cuc);
88 monitor_.set_cus(monitor->Cus);
89 monitor_.set_crc(monitor->Crc);
90 monitor_.set_crs(monitor->Crs);
91 monitor_.set_cic(monitor->Cic);
92 monitor_.set_cis(monitor->Cis);
93 monitor_.set_toe(monitor->toe);
94 monitor_.set_toc(monitor->toc);
95 monitor_.set_af0(monitor->af0);
96 monitor_.set_af1(monitor->af1);
97 monitor_.set_af2(monitor->af2);
98 monitor_.set_satclkdrift(monitor->satClkDrift);
99 monitor_.set_dtr(monitor->dtr);
100 monitor_.set_wn(monitor->WN);
101 monitor_.set_tow(monitor->tow);
104 monitor_.set_code_on_l2(monitor->code_on_L2);
105 monitor_.set_l2_p_data_flag(monitor->L2_P_data_flag);
106 monitor_.set_sv_accuracy(monitor->SV_accuracy);
107 monitor_.set_sv_health(monitor->SV_health);
108 monitor_.set_tgd(monitor->TGD);
109 monitor_.set_iodc(monitor->IODC);
110 monitor_.set_iode_sf2(monitor->IODE_SF2);
111 monitor_.set_iode_sf3(monitor->IODE_SF3);
112 monitor_.set_aodo(monitor->AODO);
113 monitor_.set_fit_interval_flag(monitor->fit_interval_flag);
114 monitor_.set_spare1(monitor->spare1);
115 monitor_.set_spare2(monitor->spare2);
116 monitor_.set_integrity_status_flag(monitor->integrity_status_flag);
117 monitor_.set_alert_flag(monitor->alert_flag);
118 monitor_.set_antispoofing_flag(monitor->antispoofing_flag);
120 monitor_.SerializeToString(&data);
128 monitor.
PRN = mon.prn();
129 monitor.
M_0 = mon.m_0();
130 monitor.
delta_n = mon.delta_n();
131 monitor.
ecc = mon.ecc();
132 monitor.
sqrtA = mon.sqrta();
133 monitor.
OMEGA_0 = mon.omega_0();
134 monitor.
i_0 = mon.i_0();
135 monitor.
omega = mon.omega();
137 monitor.
idot = mon.idot();
138 monitor.
Cuc = mon.cuc();
139 monitor.
Cus = mon.cus();
140 monitor.
Crc = mon.crc();
141 monitor.
Crs = mon.crs();
142 monitor.
Cic = mon.cic();
143 monitor.
Cis = mon.cis();
144 monitor.
toe = mon.toe();
145 monitor.
toc = mon.toc();
146 monitor.
af0 = mon.af0();
147 monitor.
af1 = mon.af1();
148 monitor.
af2 = mon.af2();
150 monitor.
dtr = mon.dtr();
151 monitor.
WN = mon.wn();
152 monitor.
tow = mon.tow();
159 monitor.
TGD = mon.tgd();
160 monitor.
IODC = mon.iodc();
163 monitor.
AODO = mon.aodo();
165 monitor.spare1 = mon.spare1();
166 monitor.spare2 = mon.spare2();
175 gnss_sdr::GpsEphemeris monitor_{};
181 #endif // GNSS_SDR_SERDES_GPS_EPH_H Gps_Ephemeris readProtobuffer(const gnss_sdr::GpsEphemeris &mon) const
< Deserialization
bool alert_flag
If true, indicates that the SV URA may be worse than indicated in d_SV_accuracy, use that SV at our o...
This class is a storage and orbital model functions for the GPS SV ephemeris data as described in IS-...
int32_t code_on_L2
If 1, P code ON in L2; if 2, C/A code ON in L2;.
bool integrity_status_flag
If true, enhanced level of integrity assurance.
int32_t AODO
Age of Data Offset (AODO) term for the navigation message correction table (NMCT) contained in subfra...
int32_t SV_accuracy
User Range Accuracy (URA) index of the SV (reference paragraph 6.2.1) for the standard positioning se...
double i_0
Inclination angle at reference time [rad].
Serdes_Gps_Eph & operator=(const Serdes_Gps_Eph &rhs) noexcept
< Copy assignment operator
double OMEGA_0
Longitude of ascending node of orbital plane at weekly epoch [rad].
int32_t IODE_SF3
Issue of Data, Ephemeris (IODE), subframe 3.
double TGD
Estimated Group Delay Differential: L1-L2 correction term only for the benefit of "L1 P(Y)" or "L2 P(...
int32_t toc
Clock correction data reference Time of Week [sec].
int32_t IODC
Issue of Data, Clock.
double Crc
Amplitude of the cosine harmonic correction term to the orbit radius [meters].
bool L2_P_data_flag
When true, indicates that the NAV data stream was commanded OFF on the P-code of the L2 channel...
double af2
SV clock drift rate correction coefficient [s/s^2].
bool antispoofing_flag
If true, the AntiSpoofing mode is ON in that SV.
double Cis
Amplitude of the sine harmonic correction term to the angle of inclination [rad]. ...
This class implements serialization and deserialization of Gps_Ephemeris objects using Protocol Buffe...
double af0
SV clock bias correction coefficient [s].
bool 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...
double M_0
Mean anomaly at reference time [rad].
int32_t toe
Ephemeris reference time [s].
double Cus
Amplitude of the sine harmonic correction term to the argument of latitude [rad]. ...
int32_t SV_health
Satellite heath status.
double OMEGAdot
Rate of right ascension [rad/sec].
double delta_n
Mean motion difference from computed value [rad/sec].
double idot
Rate of inclination angle [rad/sec].
Serdes_Gps_Eph & operator=(Serdes_Gps_Eph &&other) noexcept
< Move assignment operator
Interface of a GPS EPHEMERIS storage.
std::string createProtobuffer(const std::shared_ptr< Gps_Ephemeris > monitor)
double Cic
Amplitude of the cosine harmonic correction term to the angle of inclination [rad].
int32_t IODE_SF2
Issue of Data, Ephemeris (IODE), subframe 2.
double Cuc
Amplitude of the cosine harmonic correction term to the argument of latitude [rad].
double omega
Argument of perigee [rad].
double af1
SV clock drift correction coefficient [s/s].
double Crs
Amplitude of the sine harmonic correction term to the orbit radius [meters].
double satClkDrift
SV clock drift.
double dtr
Relativistic clock correction term.
double sqrtA
Square root of the semi-major axis [meters^1/2].