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