GNSS-SDR  0.0.14
An Open Source GNSS Software Defined Receiver
beidou_dnav_almanac.h
Go to the documentation of this file.
1 /*!
2  * \file beidou_dnav_almanac.h
3  * \brief Interface of a Beidou DNAV Almanac storage
4  * \author Sergi Segura, 2018. sergi.segura.munoz(at)gmail.com
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_BEIDOU_DNAV_ALMANAC_H
19 #define GNSS_SDR_BEIDOU_DNAV_ALMANAC_H
20 
21 #include <boost/serialization/nvp.hpp>
22 
23 /** \addtogroup Core
24  * \{ */
25 /** \addtogroup System_Parameters
26  * \{ */
27 
28 
29 /*!
30  * \brief This class is a storage for the BeiDou D1 almanac
31  */
33 {
34 public:
35  /*!
36  * Default constructor
37  */
38  Beidou_Dnav_Almanac() = default;
39 
40  unsigned int i_satellite_PRN{}; //!< SV PRN NUMBER
41  double d_Delta_i{};
42  double d_Toa{}; //!< Almanac data reference time of week [s]
43  double d_M_0{}; //!< Mean Anomaly at Reference Time [semi-circles]
44  double d_e_eccentricity{}; //!< Eccentricity [dimensionless]
45  double d_sqrt_A{}; //!< Square Root of the Semi-Major Axis [sqrt(m)]
46  double d_OMEGA0{}; //!< Longitude of Ascending Node of Orbit Plane at Weekly Epoch [semi-circles]
47  double d_OMEGA{}; //!< Argument of Perigee [semi-cicles]
48  double d_OMEGA_DOT{}; //!< Rate of Right Ascension [semi-circles/s]
49  int i_SV_health{}; //!< SV Health
50  double d_A_f0{}; //!< Coefficient 0 of code phase offset model [s]
51  double d_A_f1{}; //!< Coefficient 1 of code phase offset model [s/s]
52 
53  template <class Archive>
54 
55  void serialize(Archive& ar, const unsigned int version)
56  {
57  if (version)
58  {
59  };
60  ar& BOOST_SERIALIZATION_NVP(i_satellite_PRN);
61  ar& BOOST_SERIALIZATION_NVP(d_Delta_i);
62  ar& BOOST_SERIALIZATION_NVP(d_Toa);
63  // ar& BOOST_SERIALIZATION_NVP(i_WNa);
64  ar& BOOST_SERIALIZATION_NVP(d_M_0);
65  ar& BOOST_SERIALIZATION_NVP(d_e_eccentricity);
66  ar& BOOST_SERIALIZATION_NVP(d_sqrt_A);
67  ar& BOOST_SERIALIZATION_NVP(d_OMEGA0);
68  ar& BOOST_SERIALIZATION_NVP(d_OMEGA);
69  ar& BOOST_SERIALIZATION_NVP(d_OMEGA_DOT);
70  ar& BOOST_SERIALIZATION_NVP(i_SV_health);
71  // ar& BOOST_SERIALIZATION_NVP(i_AS_status);
72  ar& BOOST_SERIALIZATION_NVP(d_A_f0);
73  ar& BOOST_SERIALIZATION_NVP(d_A_f1);
74  }
75 };
76 
77 
78 /** \} */
79 /** \} */
80 #endif // GNSS_SDR_BEIDOU_DNAV_ALMANAC_H
This class is a storage for the BeiDou D1 almanac.
Beidou_Dnav_Almanac()=default
double d_A_f1
Coefficient 1 of code phase offset model [s/s].
int i_SV_health
SV Health.
double d_A_f0
Coefficient 0 of code phase offset model [s].
double d_OMEGA0
Longitude of Ascending Node of Orbit Plane at Weekly Epoch [semi-circles].
double d_OMEGA_DOT
Rate of Right Ascension [semi-circles/s].
double d_OMEGA
Argument of Perigee [semi-cicles].
double d_M_0
Mean Anomaly at Reference Time [semi-circles].
double d_e_eccentricity
Eccentricity [dimensionless].
double d_sqrt_A
Square Root of the Semi-Major Axis [sqrt(m)].
double d_Toa
Almanac data reference time of week [s].
unsigned int i_satellite_PRN
SV PRN NUMBER.