2013-07-15 17:07:10 +00:00
|
|
|
/*!
|
2013-10-18 18:26:06 +00:00
|
|
|
* \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
|
|
|
|
*
|
2013-07-15 17:07:10 +00:00
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*
|
2019-07-26 10:38:20 +00:00
|
|
|
* Copyright (C) 2010-2019 (see AUTHORS file for a list of contributors)
|
2013-07-15 17:07:10 +00:00
|
|
|
*
|
|
|
|
* GNSS-SDR is a software defined Global Navigation
|
|
|
|
* Satellite Systems receiver
|
|
|
|
*
|
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
2020-02-08 00:20:02 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2013-07-15 17:07:10 +00:00
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2018-10-24 15:28:12 +00:00
|
|
|
|
2013-07-15 17:07:10 +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>
|
2018-08-13 23:13:07 +00:00
|
|
|
#include <cstdint>
|
2013-07-15 17:07:10 +00:00
|
|
|
|
|
|
|
/*!
|
2018-10-24 15:28:12 +00:00
|
|
|
* \brief This class is a storage for the Galileo SV ALMANAC data
|
2013-07-15 17:07:10 +00:00
|
|
|
*/
|
|
|
|
class Galileo_Almanac
|
|
|
|
{
|
|
|
|
public:
|
2018-10-24 15:28:12 +00:00
|
|
|
uint32_t i_satellite_PRN; //!< SV PRN NUMBER
|
2018-11-07 21:25:09 +00:00
|
|
|
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]
|
2018-11-07 21:25:09 +00:00
|
|
|
int32_t E5b_HS;
|
|
|
|
int32_t E1B_HS;
|
|
|
|
int32_t E5a_HS;
|
2013-08-16 12:45:30 +00:00
|
|
|
|
2018-10-24 15:28:12 +00:00
|
|
|
/*!
|
|
|
|
* Default constructor
|
|
|
|
*/
|
|
|
|
Galileo_Almanac();
|
2013-11-23 13:05:38 +00:00
|
|
|
|
2018-10-24 15:28:12 +00:00
|
|
|
template <class Archive>
|
2014-05-09 11:04:05 +00:00
|
|
|
|
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);
|
2018-11-07 21:25:09 +00:00
|
|
|
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);
|
|
|
|
}
|
2013-07-15 17:07:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|