GNSS-SDR  0.0.14
An Open Source GNSS Software Defined Receiver
gps_cnav_utc_model.h
Go to the documentation of this file.
1 /*!
2  * \file gps_cnav_utc_model.h
3  * \brief Interface of a GPS CNAV UTC MODEL storage
4  * \author Javier Arribas, 2013. jarribas(at)cttc.es
5  *
6  * -----------------------------------------------------------------------------
7  *
8  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
9  * This file is part of GNSS-SDR.
10  *
11  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
12  * SPDX-License-Identifier: GPL-3.0-or-later
13  *
14  * -----------------------------------------------------------------------------
15  */
16 
17 
18 #ifndef GNSS_SDR_GPS_CNAV_UTC_MODEL_H
19 #define GNSS_SDR_GPS_CNAV_UTC_MODEL_H
20 
21 #include <boost/serialization/nvp.hpp>
22 #include <cstdint>
23 
24 /** \addtogroup Core
25  * \{ */
26 /** \addtogroup System_Parameters
27  * \{ */
28 
29 
30 /*!
31  * \brief This class is a storage for the GPS UTC MODEL data as described in in IS-GPS-200K
32  *
33  * See https://www.gps.gov/technical/icwg/IS-GPS-200K.pdf Appendix III
34  */
36 {
37 public:
38  /*!
39  * Default constructor
40  */
41  Gps_CNAV_Utc_Model() = default;
42 
43  // UTC parameters
44  double d_A2{}; //!< 2nd order term of a model that relates GPS and UTC time (ref. 20.3.3.5.2.4 IS-GPS-200K) [s/s]
45  double d_A1{}; //!< 1st order term of a model that relates GPS and UTC time (ref. 20.3.3.5.2.4 IS-GPS-200K) [s/s]
46  double d_A0{}; //!< Constant of a model that relates GPS and UTC time (ref. 20.3.3.5.2.4 IS-GPS-200K) [s]
47  int32_t d_t_OT{}; //!< Reference time for UTC data (reference 20.3.4.5 and 20.3.3.5.2.4 IS-GPS-200K) [s]
48  int32_t i_WN_T{}; //!< UTC reference week number [weeks]
49  int32_t d_DeltaT_LS{}; //!< delta time due to leap seconds [s]. Number of leap seconds since 6-Jan-1980 as transmitted by the GPS almanac.
50  int32_t i_WN_LSF{}; //!< Week number at the end of which the leap second becomes effective [weeks]
51  int32_t i_DN{}; //!< Day number (DN) at the end of which the leap second becomes effective [days]
52  int32_t d_DeltaT_LSF{}; //!< Scheduled future or recent past (relative to NAV message upload) value of the delta time due to leap seconds [s]
53  bool valid{};
54 
55  template <class Archive>
56  /*
57  * \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.
58  */
59  inline void serialize(Archive& archive, const uint32_t version)
60  {
61  using boost::serialization::make_nvp;
62  if (version)
63  {
64  };
65  archive& make_nvp("d_A1", d_A1);
66  archive& make_nvp("d_A0", d_A0);
67  archive& make_nvp("d_t_OT", d_t_OT);
68  archive& make_nvp("i_WN_T", i_WN_T);
69  archive& make_nvp("d_DeltaT_LS", d_DeltaT_LS);
70  archive& make_nvp("i_WN_LSF", i_WN_LSF);
71  archive& make_nvp("i_DN", i_DN);
72  archive& make_nvp("d_DeltaT_LSF", d_DeltaT_LSF);
73  archive& make_nvp("valid", valid);
74  }
75 };
76 
77 
78 /** \} */
79 /** \} */
80 #endif // GNSS_SDR_GPS_CNAV_UTC_MODEL_H
int32_t i_WN_T
UTC reference week number [weeks].
double d_A0
Constant of a model that relates GPS and UTC time (ref. 20.3.3.5.2.4 IS-GPS-200K) [s]...
int32_t d_DeltaT_LS
delta time due to leap seconds [s]. Number of leap seconds since 6-Jan-1980 as transmitted by the GPS...
double d_A2
2nd order term of a model that relates GPS and UTC time (ref. 20.3.3.5.2.4 IS-GPS-200K) [s/s] ...
int32_t i_DN
Day number (DN) at the end of which the leap second becomes effective [days].
double d_A1
1st order term of a model that relates GPS and UTC time (ref. 20.3.3.5.2.4 IS-GPS-200K) [s/s] ...
This class is a storage for the GPS UTC MODEL data as described in in IS-GPS-200K.
int32_t i_WN_LSF
Week number at the end of which the leap second becomes effective [weeks].
Gps_CNAV_Utc_Model()=default
int32_t d_t_OT
Reference time for UTC data (reference 20.3.4.5 and 20.3.3.5.2.4 IS-GPS-200K) [s].
int32_t d_DeltaT_LSF
Scheduled future or recent past (relative to NAV message upload) value of the delta time due to leap ...