GNSS-SDR  0.0.13
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  *
5  * \author Sergi Segura, 2018. sergi.segura.munoz(at)gmail.com
6  *
7  * -----------------------------------------------------------------------------
8  *
9  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
10  *
11  * GNSS-SDR is a software defined Global Navigation
12  * Satellite Systems receiver
13  *
14  * This file is part of GNSS-SDR.
15  *
16  * SPDX-License-Identifier: GPL-3.0-or-later
17  *
18  * -----------------------------------------------------------------------------
19  */
20 
21 
22 #ifndef GNSS_SDR_BEIDOU_DNAV_ALMANAC_H
23 #define GNSS_SDR_BEIDOU_DNAV_ALMANAC_H
24 
25 #include <boost/serialization/nvp.hpp>
26 
27 
28 /*!
29  * \brief This class is a storage for the BeiDou D1 almanac
30  */
32 {
33 public:
34  /*!
35  * Default constructor
36  */
37  Beidou_Dnav_Almanac() = default;
38 
39  unsigned int i_satellite_PRN{}; //!< SV PRN NUMBER
40  double d_Delta_i{};
41  double d_Toa{}; //!< Almanac data reference time of week [s]
42  double d_M_0{}; //!< Mean Anomaly at Reference Time [semi-circles]
43  double d_e_eccentricity{}; //!< Eccentricity [dimensionless]
44  double d_sqrt_A{}; //!< Square Root of the Semi-Major Axis [sqrt(m)]
45  double d_OMEGA0{}; //!< Longitude of Ascending Node of Orbit Plane at Weekly Epoch [semi-circles]
46  double d_OMEGA{}; //!< Argument of Perigee [semi-cicles]
47  double d_OMEGA_DOT{}; //!< Rate of Right Ascension [semi-circles/s]
48  int i_SV_health{}; //!< SV Health
49  double d_A_f0{}; //!< Coefficient 0 of code phase offset model [s]
50  double d_A_f1{}; //!< Coefficient 1 of code phase offset model [s/s]
51 
52  template <class Archive>
53 
54  void serialize(Archive& ar, const unsigned int version)
55  {
56  if (version)
57  {
58  };
59  ar& BOOST_SERIALIZATION_NVP(i_satellite_PRN);
60  ar& BOOST_SERIALIZATION_NVP(d_Delta_i);
61  ar& BOOST_SERIALIZATION_NVP(d_Toa);
62  // ar& BOOST_SERIALIZATION_NVP(i_WNa);
63  ar& BOOST_SERIALIZATION_NVP(d_M_0);
64  ar& BOOST_SERIALIZATION_NVP(d_e_eccentricity);
65  ar& BOOST_SERIALIZATION_NVP(d_sqrt_A);
66  ar& BOOST_SERIALIZATION_NVP(d_OMEGA0);
67  ar& BOOST_SERIALIZATION_NVP(d_OMEGA);
68  ar& BOOST_SERIALIZATION_NVP(d_OMEGA_DOT);
69  ar& BOOST_SERIALIZATION_NVP(i_SV_health);
70  // ar& BOOST_SERIALIZATION_NVP(i_AS_status);
71  ar& BOOST_SERIALIZATION_NVP(d_A_f0);
72  ar& BOOST_SERIALIZATION_NVP(d_A_f1);
73  }
74 };
75 
76 #endif
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.