GNSS-SDR  0.0.14
An Open Source GNSS Software Defined Receiver
gps_almanac.h
Go to the documentation of this file.
1 /*!
2  * \file gps_almanac.h
3  * \brief Interface of a GPS ALMANAC storage
4  * \author Javier Arribas, 2013. jarribas(at)cttc.es
5  *
6  * -----------------------------------------------------------------------------
7  *
8  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
9  * This file is part of GNSS-SDR.
10  *
11  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
12  * SPDX-License-Identifier: GPL-3.0-or-later
13  *
14  * -----------------------------------------------------------------------------
15  */
16 
17 
18 #ifndef GNSS_SDR_GPS_ALMANAC_H
19 #define GNSS_SDR_GPS_ALMANAC_H
20 
21 #include <boost/serialization/nvp.hpp>
22 #include <cstdint>
23 
24 /** \addtogroup Core
25  * \{ */
26 /** \addtogroup System_Parameters
27  * \{ */
28 
29 
30 /*!
31  * \brief This class is a storage for the GPS SV ALMANAC data as described in IS-GPS-200K
32  *
33  * See https://www.gps.gov/technical/icwg/IS-GPS-200K.pdf Appendix II
34  */
36 {
37 public:
38  /*!
39  * Default constructor
40  */
41  Gps_Almanac() = default;
42 
43  uint32_t i_satellite_PRN{}; //!< SV PRN NUMBER
44  double d_Delta_i{}; //!< Inclination Angle at Reference Time (relative to i_0 = 0.30 semi-circles)
45  int32_t i_Toa{}; //!< Almanac data reference time of week (Ref. 20.3.3.4.3 IS-GPS-200K) [s]
46  int32_t i_WNa{}; //!< Almanac week number
47  double d_M_0{}; //!< Mean Anomaly at Reference Time [semi-circles]
48  double d_e_eccentricity{}; //!< Eccentricity [dimensionless]
49  double d_sqrt_A{}; //!< Square Root of the Semi-Major Axis [sqrt(m)]
50  double d_OMEGA0{}; //!< Longitude of Ascending Node of Orbit Plane at Weekly Epoch [semi-circles]
51  double d_OMEGA{}; //!< Argument of Perigee [semi-cicles]
52  double d_OMEGA_DOT{}; //!< Rate of Right Ascension [semi-circles/s]
53  int32_t i_SV_health{}; //!< SV Health
54  int32_t i_AS_status{}; //!< Anti-Spoofing Flags and SV Configuration
55  double d_A_f0{}; //!< Coefficient 0 of code phase offset model [s]
56  double d_A_f1{}; //!< Coefficient 1 of code phase offset model [s/s]
57 
58  template <class Archive>
59 
60  void serialize(Archive& ar, const unsigned int version)
61  {
62  if (version)
63  {
64  };
65  ar& BOOST_SERIALIZATION_NVP(i_satellite_PRN);
66  ar& BOOST_SERIALIZATION_NVP(d_Delta_i);
67  ar& BOOST_SERIALIZATION_NVP(i_Toa);
68  ar& BOOST_SERIALIZATION_NVP(i_WNa);
69  ar& BOOST_SERIALIZATION_NVP(d_M_0);
70  ar& BOOST_SERIALIZATION_NVP(d_e_eccentricity);
71  ar& BOOST_SERIALIZATION_NVP(d_sqrt_A);
72  ar& BOOST_SERIALIZATION_NVP(d_OMEGA0);
73  ar& BOOST_SERIALIZATION_NVP(d_OMEGA);
74  ar& BOOST_SERIALIZATION_NVP(d_OMEGA_DOT);
75  ar& BOOST_SERIALIZATION_NVP(i_SV_health);
76  ar& BOOST_SERIALIZATION_NVP(i_AS_status);
77  ar& BOOST_SERIALIZATION_NVP(d_A_f0);
78  ar& BOOST_SERIALIZATION_NVP(d_A_f1);
79  }
80 };
81 
82 
83 /** \} */
84 /** \} */
85 #endif // GNSS_SDR_GPS_ALMANAC_H
double d_OMEGA
Argument of Perigee [semi-cicles].
Definition: gps_almanac.h:51
double d_e_eccentricity
Eccentricity [dimensionless].
Definition: gps_almanac.h:48
double d_OMEGA0
Longitude of Ascending Node of Orbit Plane at Weekly Epoch [semi-circles].
Definition: gps_almanac.h:50
uint32_t i_satellite_PRN
SV PRN NUMBER.
Definition: gps_almanac.h:43
int32_t i_Toa
Almanac data reference time of week (Ref. 20.3.3.4.3 IS-GPS-200K) [s].
Definition: gps_almanac.h:45
double d_OMEGA_DOT
Rate of Right Ascension [semi-circles/s].
Definition: gps_almanac.h:52
double d_M_0
Mean Anomaly at Reference Time [semi-circles].
Definition: gps_almanac.h:47
double d_sqrt_A
Square Root of the Semi-Major Axis [sqrt(m)].
Definition: gps_almanac.h:49
int32_t i_AS_status
Anti-Spoofing Flags and SV Configuration.
Definition: gps_almanac.h:54
int32_t i_SV_health
SV Health.
Definition: gps_almanac.h:53
int32_t i_WNa
Almanac week number.
Definition: gps_almanac.h:46
double d_A_f0
Coefficient 0 of code phase offset model [s].
Definition: gps_almanac.h:55
double d_Delta_i
Inclination Angle at Reference Time (relative to i_0 = 0.30 semi-circles)
Definition: gps_almanac.h:44
This class is a storage for the GPS SV ALMANAC data as described in IS-GPS-200K.
Definition: gps_almanac.h:35
Gps_Almanac()=default
double d_A_f1
Coefficient 1 of code phase offset model [s/s].
Definition: gps_almanac.h:56