GNSS-SDR  0.0.14
An Open Source GNSS Software Defined Receiver
beidou_dnav_utc_model.h
Go to the documentation of this file.
1 /*!
2  * \file beidou_dnav_utc_model.h
3  * \brief Interface of a BeiDou UTC MODEL storage
4  * \author Damian Miralles, 2018. dmiralles2009@gmail.com
5  * \author Sergi Segura, 2018. sergi.segura.munoz(at)gmail.com
6  *
7  * -----------------------------------------------------------------------------
8  *
9  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
10  * This file is part of GNSS-SDR.
11  *
12  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
13  * SPDX-License-Identifier: GPL-3.0-or-later
14  *
15  * -----------------------------------------------------------------------------
16  */
17 
18 
19 #ifndef GNSS_SDR_BEIDOU_DNAV_UTC_MODEL_H
20 #define GNSS_SDR_BEIDOU_DNAV_UTC_MODEL_H
21 
22 #include <boost/serialization/nvp.hpp>
23 
24 /** \addtogroup Core
25  * \{ */
26 /** \addtogroup System_Parameters
27  * \{ */
28 
29 
30 /*!
31  * \brief This class is a storage for the BeiDou DNAV UTC Model.
32  * \details Implementation follows the interface described in the Open Service Signal (Version 2.1)
33  *
34  */
36 {
37 public:
38  Beidou_Dnav_Utc_Model() = default;
39 
40  // BeiDou UTC parameters
41  double d_A0_UTC{}; //!< BDT clock bias relative to UTC [s]
42  double d_A1_UTC{}; //!< BDT clock rate relative to UTC [s/s]
43  int i_DeltaT_LS{}; //!< Delta time due to leap seconds before the new leap second effective
44  int i_WN_LSF{}; //!< Week number of the new leap second
45  int i_DN{}; //!< Day number of week of the new leap second
46  double d_DeltaT_LSF{}; //!< Delta time due to leap seconds after the new leap second effective [s]
47 
48  // BeiDou to GPS time corrections
49  double d_A0_GPS{}; //!< BDT clock bias relative to GPS time [s]
50  double d_A1_GPS{}; //!< BDT clock rate relative to GPS time [s/s]
51 
52  // BeiDou to Galileo time corrections
53  double d_A0_GAL{}; //!< BDT clock bias relative to GAL time [s]
54  double d_A1_GAL{}; //!< BDT clock rate relative to GAL time [s/s]
55 
56  // BeiDou to GLONASS time corrections
57  double d_A0_GLO{}; //!< BDT clock bias relative to GLO time [s]
58  double d_A1_GLO{}; //!< BDT clock rate relative to GLO time [s/s]
59 
60  bool valid{};
61 
62  template <class Archive>
63  /*
64  * \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.
65  */
66  inline void serialize(Archive& archive, const unsigned int version)
67  {
68  using boost::serialization::make_nvp;
69  if (version)
70  {
71  };
72  archive& make_nvp("d_A1", d_A1_UTC);
73  archive& make_nvp("d_A0", d_A0_UTC);
74  archive& make_nvp("i_DeltaT_LS", i_DeltaT_LS);
75  archive& make_nvp("i_WN_LSF", i_WN_LSF);
76  archive& make_nvp("i_DN", i_DN);
77  archive& make_nvp("d_DeltaT_LSF", d_DeltaT_LSF);
78  archive& make_nvp("d_A0_GPS", d_A0_GPS);
79  archive& make_nvp("d_A0_GPS", d_A1_GPS);
80  archive& make_nvp("d_A0_GPS", d_A0_GAL);
81  archive& make_nvp("d_A0_GPS", d_A1_GAL);
82  archive& make_nvp("d_A0_GPS", d_A0_GLO);
83  archive& make_nvp("d_A0_GPS", d_A1_GLO);
84  archive& make_nvp("valid", valid);
85  }
86 };
87 
88 
89 /** \} */
90 /** \} */
91 #endif // GNSS_SDR_BEIDOU_DNAV_UTC_MODEL_H
int i_DN
Day number of week of the new leap second.
double d_A1_UTC
BDT clock rate relative to UTC [s/s].
double d_A0_GPS
BDT clock bias relative to GPS time [s].
double d_DeltaT_LSF
Delta time due to leap seconds after the new leap second effective [s].
This class is a storage for the BeiDou DNAV UTC Model.
double d_A0_UTC
BDT clock bias relative to UTC [s].
double d_A0_GAL
BDT clock bias relative to GAL time [s].
double d_A1_GLO
BDT clock rate relative to GLO time [s/s].
int i_WN_LSF
Week number of the new leap second.
double d_A1_GPS
BDT clock rate relative to GPS time [s/s].
int i_DeltaT_LS
Delta time due to leap seconds before the new leap second effective.
double d_A0_GLO
BDT clock bias relative to GLO time [s].
double d_A1_GAL
BDT clock rate relative to GAL time [s/s].