GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
glonass_gnav_almanac.h
Go to the documentation of this file.
1/*!
2 * \file glonass_gnav_almanac.h
3 * \brief Interface of a GLONASS GNAV ALMANAC storage
4 * \note Code added as part of GSoC 2017 program
5 * \author Damian Miralles, 2017. dmiralles2009(at)gmail.com
6 * \see <a href="http://russianspacesystems.ru/wp-content/uploads/2016/08/ICD_GLONASS_eng_v5.1.pdf">GLONASS ICD</a>
7 *
8 * -----------------------------------------------------------------------------
9 *
10 * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
11 * This file is part of GNSS-SDR.
12 *
13 * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
14 * SPDX-License-Identifier: GPL-3.0-or-later
15 *
16 * -----------------------------------------------------------------------------
17 */
18
19
20#ifndef GNSS_SDR_GLONASS_ALMANAC_H
21#define GNSS_SDR_GLONASS_ALMANAC_H
22
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 for the GLONASS SV ALMANAC data as described GLONASS ICD (Edition 5.1)
34 * \note Code added as part of GSoC 2017 program
35 * \see <a href="http://russianspacesystems.ru/wp-content/uploads/2016/08/ICD_GLONASS_eng_v5.1.pdf">GLONASS ICD</a>
36 */
38{
39public:
40 /*!
41 * Default constructor
42 */
44
45 double d_n_A{}; //!< Conventional number of satellite within GLONASS space segment [dimensionless]
46 double d_H_n_A{}; //!< Carrier frequency number of navigation RF signal transmitted by d_nA satellite as table 4.10 (0-31) [dimensionless]
47 double d_lambda_n_A{}; //!< Longitude of the first (within the d_NA day) ascending node of d_nA [radians]
48 double d_t_lambda_n_A{}; //!< Time of first ascending node passage [s]
49 double d_Delta_i_n_A{}; //!< Correction of the mean value of inclination of d_n_A satellite at instant t_lambda_n_A [radians]
50 double d_Delta_T_n_A{}; //!< Correction to the mean value of Draconian period of d_n_A satellite at instant t_lambda_n_A [s / orbital period]
51 double d_Delta_T_n_A_dot{}; //!< Rate of change of Draconian period of d_n_A satellite at instant t_lambda_n_A [s / orbital period^2]
52 double d_epsilon_n_A{}; //!< Eccentricity of d_n_A satellite at instant t_lambda_n_A [dimensionless]
53 double d_omega_n_A{}; //!< Argument of perigee of d_n_A satellite at instant t_lambdan_A [radians]
54 double d_M_n_A{}; //!< Type of satellite n_A [dimensionless]
55 double d_KP{}; //!< Notification on forthcoming leap second correction of UTC [dimensionless]
56 double d_tau_n_A{}; //!< Coarse value of d_n_A satellite time correction to GLONASS time at instant t_lambdan_A[s]
57 bool d_C_n{}; //!< Generalized “unhealthy flag” of n_A satellite at instant of almanac upload [dimensionless]
58 bool d_l_n{}; //!< Health flag for nth satellite; ln = 0 indicates the n-th satellite is helthy, ln = 1 indicates malfunction of this nth satellite [dimensionless]
59
60 // Satellite Identification Information
61 int32_t i_satellite_freq_channel{}; //!< SV Frequency Channel Number
62 uint32_t PRN{}; //!< SV PRN Number, equivalent to slot number for compatibility with GPS
63 uint32_t i_satellite_slot_number{}; //!< SV Slot Number
64
65 template <class Archive>
66 /*!
67 * \brief Serialize is a boost standard method to be called by the boost XML
68 * serialization. Here is used to save the almanac data on disk file.
69 */
70 void serialize(Archive& archive, const uint32_t version)
71 {
72 if (version)
73 {
74 };
75
76 archive& BOOST_SERIALIZATION_NVP(i_satellite_freq_channel);
77 archive& BOOST_SERIALIZATION_NVP(PRN);
78 archive& BOOST_SERIALIZATION_NVP(i_satellite_slot_number);
79 archive& BOOST_SERIALIZATION_NVP(d_n_A);
80 archive& BOOST_SERIALIZATION_NVP(d_H_n_A);
81 archive& BOOST_SERIALIZATION_NVP(d_lambda_n_A);
82 archive& BOOST_SERIALIZATION_NVP(d_t_lambda_n_A);
83 archive& BOOST_SERIALIZATION_NVP(d_Delta_i_n_A);
84 archive& BOOST_SERIALIZATION_NVP(d_Delta_T_n_A);
85 archive& BOOST_SERIALIZATION_NVP(d_Delta_T_n_A_dot);
86 archive& BOOST_SERIALIZATION_NVP(d_epsilon_n_A);
87 archive& BOOST_SERIALIZATION_NVP(d_omega_n_A);
88 archive& BOOST_SERIALIZATION_NVP(d_M_n_A);
89 archive& BOOST_SERIALIZATION_NVP(d_KP);
90 archive& BOOST_SERIALIZATION_NVP(d_tau_n_A);
91 archive& BOOST_SERIALIZATION_NVP(d_C_n);
92 archive& BOOST_SERIALIZATION_NVP(d_l_n);
93 }
94};
95
96
97/** \} */
98/** \} */
99#endif // GNSS_SDR_GLONASS_ALMANAC_H
double d_n_A
Conventional number of satellite within GLONASS space segment [dimensionless].
double d_lambda_n_A
Longitude of the first (within the d_NA day) ascending node of d_nA [radians].
bool d_l_n
Health flag for nth satellite; ln = 0 indicates the n-th satellite is helthy, ln = 1 indicates malfun...
double d_Delta_i_n_A
Correction of the mean value of inclination of d_n_A satellite at instant t_lambda_n_A [radians].
uint32_t i_satellite_slot_number
SV Slot Number.
Glonass_Gnav_Almanac()=default
int32_t i_satellite_freq_channel
SV Frequency Channel Number.
double d_omega_n_A
Argument of perigee of d_n_A satellite at instant t_lambdan_A [radians].
double d_H_n_A
Carrier frequency number of navigation RF signal transmitted by d_nA satellite as table 4....
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 d_t_lambda_n_A
Time of first ascending node passage [s].
bool d_C_n
Generalized “unhealthy flag” of n_A satellite at instant of almanac upload [dimensionless].
double d_epsilon_n_A
Eccentricity of d_n_A satellite at instant t_lambda_n_A [dimensionless].
double d_Delta_T_n_A
Correction to the mean value of Draconian period of d_n_A satellite at instant t_lambda_n_A [s / orbi...
double d_KP
Notification on forthcoming leap second correction of UTC [dimensionless].
double d_tau_n_A
Coarse value of d_n_A satellite time correction to GLONASS time at instant t_lambdan_A[s].
uint32_t PRN
SV PRN Number, equivalent to slot number for compatibility with GPS.
double d_M_n_A
Type of satellite n_A [dimensionless].
double d_Delta_T_n_A_dot
Rate of change of Draconian period of d_n_A satellite at instant t_lambda_n_A [s / orbital period^2].