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

92 lines
3.1 KiB
C
Raw Normal View History

2018-08-06 11:52:08 +00:00
/*!
2019-01-01 19:46:57 +00:00
* \file beidou_dnav_utc_model.h
* \brief Interface of a BeiDou UTC MODEL storage
* \author Damian Miralles, 2018. dmiralles2009@gmail.com
* \author Sergi Segura, 2018. sergi.segura.munoz(at)gmail.com
2018-08-06 11:52:08 +00:00
*
2020-07-28 14:57:15 +00:00
* -----------------------------------------------------------------------------
2018-08-06 11:52:08 +00:00
*
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
2018-08-06 11:52:08 +00:00
* This file is part of GNSS-SDR.
*
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
* SPDX-License-Identifier: GPL-3.0-or-later
2018-08-06 11:52:08 +00:00
*
2020-07-28 14:57:15 +00:00
* -----------------------------------------------------------------------------
2018-08-06 11:52:08 +00:00
*/
#ifndef GNSS_SDR_BEIDOU_DNAV_UTC_MODEL_H
#define GNSS_SDR_BEIDOU_DNAV_UTC_MODEL_H
2018-08-06 11:52:08 +00:00
#include <boost/serialization/nvp.hpp>
/** \addtogroup Core
* \{ */
/** \addtogroup System_Parameters
* \{ */
2018-08-06 11:52:08 +00:00
/*!
2019-01-01 19:46:57 +00:00
* \brief This class is a storage for the BeiDou DNAV UTC Model.
* \details Implementation follows the interface described in the Open Service Signal (Version 2.1)
2018-08-06 11:52:08 +00:00
*
*/
class Beidou_Dnav_Utc_Model
2018-08-06 11:52:08 +00:00
{
public:
Beidou_Dnav_Utc_Model() = default;
2019-01-01 19:46:57 +00:00
// BeiDou UTC parameters
double d_A0_UTC{}; //!< BDT clock bias relative to UTC [s]
double d_A1_UTC{}; //!< BDT clock rate relative to UTC [s/s]
int i_DeltaT_LS{}; //!< Delta time due to leap seconds before the new leap second effective
int i_WN_LSF{}; //!< Week number of the new leap second
int i_DN{}; //!< Day number of week of the new leap second
double d_DeltaT_LSF{}; //!< Delta time due to leap seconds after the new leap second effective [s]
2019-01-01 19:46:57 +00:00
// BeiDou to GPS time corrections
double d_A0_GPS{}; //!< BDT clock bias relative to GPS time [s]
double d_A1_GPS{}; //!< BDT clock rate relative to GPS time [s/s]
2019-01-01 19:46:57 +00:00
// BeiDou to Galileo time corrections
double d_A0_GAL{}; //!< BDT clock bias relative to GAL time [s]
double d_A1_GAL{}; //!< BDT clock rate relative to GAL time [s/s]
2019-01-01 19:46:57 +00:00
// BeiDou to GLONASS time corrections
double d_A0_GLO{}; //!< BDT clock bias relative to GLO time [s]
double d_A1_GLO{}; //!< BDT clock rate relative to GLO time [s/s]
2018-08-06 11:52:08 +00:00
bool valid{};
2018-08-06 11:52:08 +00:00
template <class Archive>
/*
* \brief Serialize is a boost standard method to be called by the boost XML serialization. Here is used to save the ephemeris data on disk file.
*/
inline void serialize(Archive& archive, const unsigned int version)
{
using boost::serialization::make_nvp;
if (version)
{
};
2019-01-01 19:46:57 +00:00
archive& make_nvp("d_A1", d_A1_UTC);
archive& make_nvp("d_A0", d_A0_UTC);
archive& make_nvp("i_DeltaT_LS", i_DeltaT_LS);
2018-08-06 11:52:08 +00:00
archive& make_nvp("i_WN_LSF", i_WN_LSF);
archive& make_nvp("i_DN", i_DN);
archive& make_nvp("d_DeltaT_LSF", d_DeltaT_LSF);
2019-01-01 19:46:57 +00:00
archive& make_nvp("d_A0_GPS", d_A0_GPS);
archive& make_nvp("d_A0_GPS", d_A1_GPS);
archive& make_nvp("d_A0_GPS", d_A0_GAL);
archive& make_nvp("d_A0_GPS", d_A1_GAL);
archive& make_nvp("d_A0_GPS", d_A0_GLO);
archive& make_nvp("d_A0_GPS", d_A1_GLO);
archive& make_nvp("valid", valid);
2018-08-06 11:52:08 +00:00
}
};
/** \} */
/** \} */
#endif // GNSS_SDR_BEIDOU_DNAV_UTC_MODEL_H