GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
galileo_ephemeris.h
Go to the documentation of this file.
1 /*!
2  * \file galileo_ephemeris.h
3  * \brief Interface of a Galileo EPHEMERIS storage
4  * \author Javier Arribas, 2013. jarribas(at)cttc.es,
5  * \author Mara Branzanti 2013. mara.branzanti(at)gmail.com
6  *
7  * -----------------------------------------------------------------------------
8  *
9  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
10  * This file is part of GNSS-SDR.
11  *
12  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
13  * SPDX-License-Identifier: GPL-3.0-or-later
14  *
15  * -----------------------------------------------------------------------------
16  */
17 
18 
19 #ifndef GNSS_SDR_GALILEO_EPHEMERIS_H
20 #define GNSS_SDR_GALILEO_EPHEMERIS_H
21 
22 #include "gnss_ephemeris.h"
23 #include <boost/serialization/nvp.hpp>
24 #include <cstdint>
25 
26 /** \addtogroup Core
27  * \{ */
28 /** \addtogroup System_Parameters
29  * \{ */
30 
31 
32 /*!
33  * \brief This class is a storage and orbital model functions for the Galileo SV
34  * ephemeris data as described in Galileo ICD paragraph 5.1.1
35  *
36  * (See https://www.gsc-europa.eu/sites/default/files/sites/all/files/Galileo_OS_SIS_ICD_v2.0.pdf )
37  *
38  */
40 {
41 public:
43  {
44  this->System = 'E';
45  }
46 
47  double Galileo_System_Time(double week_number, double TOW); //!< Galileo System Time (GST), ICD paragraph 5.1.2
48 
49  int32_t IOD_ephemeris{};
50  int32_t IOD_nav{};
51 
52  // SV status
53  int32_t SISA{}; //!< Signal in space accuracy index
54  int32_t E5a_HS{}; //!< E5a Signal Health Status
55  int32_t E5b_HS{}; //!< E5b Signal Health Status
56  int32_t E1B_HS{}; //!< E1B Signal Health Status
57  bool E5a_DVS{}; //!< E5a Data Validity Status
58  bool E5b_DVS{}; //!< E5b Data Validity Status
59  bool E1B_DVS{}; //!< E1B Data Validity Status
60  double BGD_E1E5a{}; //!< E1-E5a Broadcast Group Delay [s]
61  double BGD_E1E5b{}; //!< E1-E5b Broadcast Group Delay [s]
62 
63  bool flag_all_ephemeris{};
64 
65  template <class Archive>
66 
67  /*!
68  * \brief Serialize is a boost standard method to be called by the boost XML
69  * serialization. Here is used to save the ephemeris data on disk file.
70  */
71  inline void serialize(Archive& archive, const uint32_t version)
72  {
73  if (version)
74  {
75  };
76 
77  archive& BOOST_SERIALIZATION_NVP(PRN);
78  archive& BOOST_SERIALIZATION_NVP(M_0);
79  archive& BOOST_SERIALIZATION_NVP(delta_n);
80  archive& BOOST_SERIALIZATION_NVP(ecc);
81  archive& BOOST_SERIALIZATION_NVP(sqrtA);
82  archive& BOOST_SERIALIZATION_NVP(OMEGA_0);
83  archive& BOOST_SERIALIZATION_NVP(i_0);
84  archive& BOOST_SERIALIZATION_NVP(omega);
85  archive& BOOST_SERIALIZATION_NVP(OMEGAdot);
86  archive& BOOST_SERIALIZATION_NVP(idot);
87  archive& BOOST_SERIALIZATION_NVP(Cuc);
88  archive& BOOST_SERIALIZATION_NVP(Cus);
89  archive& BOOST_SERIALIZATION_NVP(Crc);
90  archive& BOOST_SERIALIZATION_NVP(Crs);
91  archive& BOOST_SERIALIZATION_NVP(Cic);
92  archive& BOOST_SERIALIZATION_NVP(Cis);
93  archive& BOOST_SERIALIZATION_NVP(toe);
94  archive& BOOST_SERIALIZATION_NVP(toc);
95  archive& BOOST_SERIALIZATION_NVP(af0);
96  archive& BOOST_SERIALIZATION_NVP(af1);
97  archive& BOOST_SERIALIZATION_NVP(af2);
98  archive& BOOST_SERIALIZATION_NVP(WN);
99  archive& BOOST_SERIALIZATION_NVP(tow);
100  archive& BOOST_SERIALIZATION_NVP(satClkDrift);
101  archive& BOOST_SERIALIZATION_NVP(dtr);
102 
103  archive& BOOST_SERIALIZATION_NVP(IOD_ephemeris);
104  archive& BOOST_SERIALIZATION_NVP(IOD_nav);
105  archive& BOOST_SERIALIZATION_NVP(SISA);
106  archive& BOOST_SERIALIZATION_NVP(E5a_HS);
107  archive& BOOST_SERIALIZATION_NVP(E5b_HS);
108  archive& BOOST_SERIALIZATION_NVP(E1B_HS);
109  archive& BOOST_SERIALIZATION_NVP(E5a_DVS);
110  archive& BOOST_SERIALIZATION_NVP(E5b_DVS);
111  archive& BOOST_SERIALIZATION_NVP(E1B_DVS);
112  archive& BOOST_SERIALIZATION_NVP(BGD_E1E5a);
113  archive& BOOST_SERIALIZATION_NVP(BGD_E1E5b);
114  archive& BOOST_SERIALIZATION_NVP(flag_all_ephemeris);
115  }
116 };
117 
118 
119 /** \} */
120 /** \} */
121 #endif // GNSS_SDR_GALILEO_EPHEMERIS_H
int32_t E5a_HS
E5a Signal Health Status.
double i_0
Inclination angle at reference time [rad].
double OMEGA_0
Longitude of ascending node of orbital plane at weekly epoch [rad].
bool E5a_DVS
E5a Data Validity Status.
int32_t toc
Clock correction data reference Time of Week [sec].
double Crc
Amplitude of the cosine harmonic correction term to the orbit radius [meters].
int32_t SISA
Signal in space accuracy index.
double af2
SV clock drift rate correction coefficient [s/s^2].
double BGD_E1E5a
E1-E5a Broadcast Group Delay [s].
bool E5b_DVS
E5b Data Validity Status.
uint32_t PRN
SV ID.
double Cis
Amplitude of the sine harmonic correction term to the angle of inclination [rad]. ...
double BGD_E1E5b
E1-E5b Broadcast Group Delay [s].
double af0
SV clock bias correction coefficient [s].
Base class for GNSS Ephemeris.
double ecc
Eccentricity.
bool E1B_DVS
E1B Data Validity Status.
double M_0
Mean anomaly at reference time [rad].
int32_t E1B_HS
E1B Signal Health Status.
int32_t WN
Week number.
int32_t toe
Ephemeris reference time [s].
int32_t tow
Time of Week.
double Cus
Amplitude of the sine harmonic correction term to the argument of latitude [rad]. ...
double OMEGAdot
Rate of right ascension [rad/sec].
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 delta_n
Mean motion difference from computed value [rad/sec].
double idot
Rate of inclination angle [rad/sec].
Base class for GNSS ephemeris storage.
double Galileo_System_Time(double week_number, double TOW)
Galileo System Time (GST), ICD paragraph 5.1.2.
double Cic
Amplitude of the cosine harmonic correction term to the angle of inclination [rad].
This class is a storage and orbital model functions for the Galileo SV ephemeris data as described in...
double Cuc
Amplitude of the cosine harmonic correction term to the argument of latitude [rad].
double omega
Argument of perigee [rad].
int32_t E5b_HS
E5b Signal Health Status.
double af1
SV clock drift correction coefficient [s/s].
double Crs
Amplitude of the sine harmonic correction term to the orbit radius [meters].
char System
Character ID of the GNSS system. &#39;G&#39;: GPS. &#39;E&#39;: Galileo. &#39;B&#39;: BeiDou.
double satClkDrift
SV clock drift.
double dtr
Relativistic clock correction term.
double sqrtA
Square root of the semi-major axis [meters^1/2].