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