1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-30 08:53:15 +00:00
gnss-sdr/src/core/system_parameters/galileo_almanac.h

82 lines
2.6 KiB
C
Raw Normal View History

/*!
* \file galileo_almanac.h
* \brief Interface of a Galileo ALMANAC storage
2018-10-24 15:28:12 +00:00
* \author Carles Fernandez, 2018. cfernandez(at)cttc.cat
*
* -------------------------------------------------------------------------
*
* Copyright (C) 2010-2019 (see AUTHORS file for a list of contributors)
*
* GNSS-SDR is a software defined Global Navigation
* Satellite Systems receiver
*
* This file is part of GNSS-SDR.
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
* -------------------------------------------------------------------------
*/
2018-10-24 15:28:12 +00:00
#ifndef GNSS_SDR_GALILEO_ALMANAC_H_
#define GNSS_SDR_GALILEO_ALMANAC_H_
2018-10-24 15:28:12 +00:00
#include <boost/serialization/nvp.hpp>
#include <cstdint>
/*!
2018-10-24 15:28:12 +00:00
* \brief This class is a storage for the Galileo SV ALMANAC data
*/
class Galileo_Almanac
{
public:
2018-10-24 15:28:12 +00:00
uint32_t i_satellite_PRN; //!< SV PRN NUMBER
int32_t i_Toa;
int32_t i_WNa;
int32_t i_IODa;
double d_Delta_i; //!< Inclination at reference time relative to i0 = 56º [semi-circles]
2018-10-24 15:28:12 +00:00
double d_M_0; //!< Mean Anomaly at Reference Time [semi-circles]
double d_e_eccentricity; //!< Eccentricity [dimensionless]
double d_Delta_sqrt_A; //!< Square Root of the Semi-Major Axis [sqrt(m)]
double d_OMEGA0; //!< Longitude of Ascending Node of Orbit Plane at Weekly Epoch [semi-circles]
double d_OMEGA; //!< Argument of Perigee [semi-cicles]
double d_OMEGA_DOT; //!< Rate of Right Ascension [semi-circles/s]
double d_A_f0; //!< Coefficient 0 of code phase offset model [s]
double d_A_f1; //!< Coefficient 1 of code phase offset model [s/s]
int32_t E5b_HS;
int32_t E1B_HS;
int32_t E5a_HS;
2018-10-24 15:28:12 +00:00
/*!
* Default constructor
*/
Galileo_Almanac();
2018-10-24 15:28:12 +00:00
template <class Archive>
2018-10-24 15:28:12 +00:00
void serialize(Archive& ar, const unsigned int version)
{
if (version)
{
};
ar& BOOST_SERIALIZATION_NVP(i_satellite_PRN);
ar& BOOST_SERIALIZATION_NVP(i_Toa);
ar& BOOST_SERIALIZATION_NVP(i_WNa);
ar& BOOST_SERIALIZATION_NVP(i_IODa);
2018-10-24 15:28:12 +00:00
ar& BOOST_SERIALIZATION_NVP(d_Delta_i);
ar& BOOST_SERIALIZATION_NVP(d_M_0);
ar& BOOST_SERIALIZATION_NVP(d_e_eccentricity);
ar& BOOST_SERIALIZATION_NVP(d_Delta_sqrt_A);
ar& BOOST_SERIALIZATION_NVP(d_OMEGA0);
ar& BOOST_SERIALIZATION_NVP(d_OMEGA);
ar& BOOST_SERIALIZATION_NVP(d_OMEGA_DOT);
ar& BOOST_SERIALIZATION_NVP(d_A_f0);
ar& BOOST_SERIALIZATION_NVP(d_A_f1);
ar& BOOST_SERIALIZATION_NVP(E5b_HS);
ar& BOOST_SERIALIZATION_NVP(E1B_HS);
ar& BOOST_SERIALIZATION_NVP(E5a_HS);
}
};
#endif