StdNavTimeOffset.hpp
Go to the documentation of this file.
1 //==============================================================================
2 //
3 // This file is part of GNSSTk, the ARL:UT GNSS Toolkit.
4 //
5 // The GNSSTk is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published
7 // by the Free Software Foundation; either version 3.0 of the License, or
8 // any later version.
9 //
10 // The GNSSTk is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with GNSSTk; if not, write to the Free Software Foundation,
17 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 //
19 // This software was developed by Applied Research Laboratories at the
20 // University of Texas at Austin.
21 // Copyright 2004-2022, The Board of Regents of The University of Texas System
22 //
23 //==============================================================================
24 
25 
26 //==============================================================================
27 //
28 // This software was developed by Applied Research Laboratories at the
29 // University of Texas at Austin, under contract to an agency or agencies
30 // within the U.S. Department of Defense. The U.S. Government retains all
31 // rights to use, duplicate, distribute, disclose, or release this software.
32 //
33 // Pursuant to DoD Directive 523024
34 //
35 // DISTRIBUTION STATEMENT A: This software has been approved for public
36 // release, distribution is unlimited.
37 //
38 //==============================================================================
39 #ifndef GNSSTK_STDNAVTIMEOFFSET_HPP
40 #define GNSSTK_STDNAVTIMEOFFSET_HPP
41 
42 #include "TimeOffsetData.hpp"
43 #include "TimeSystem.hpp"
44 
45 namespace gnsstk
46 {
48 
49 
73  {
74  public:
77 
82  void dump(std::ostream& s, DumpDetail dl) const override;
83 
94  bool getOffset(TimeSystem fromSys, TimeSystem toSys,
95  const CommonTime& when, double& offset)
96  const override;
97 
100  TimeCvtSet getConversions() const override;
101 
104  virtual double effStart() const
105  { return 6 * 3600; }
108  virtual double effEnd() const
109  { return 6 * 3600; }
110 
111  // These terms are referenced in the ICDs for multiple
112  // systems, but you can find their definition in places like
113  // IS-GPS-200 30.3.3.6.2. They occasionally have different
114  // names like wnot, t0t, wn0t, etc., but the terms originate
115  // from the nav message, though some may be zero (unused).
116  // They are meant to be set by the NavDataFactory classes,
117  // but are made available for the user to read. The user
118  // generally should not be changing these values.
119 
122  double a0;
123  double a1;
124  double a2;
125  double deltatLS;
128  double tot;
129  unsigned wnot;
130  // These terms are not used in computing an offset, they're
131  // more of a warning of an upcoming change in the offset. We
132  // keep them here for user convenience.
133  unsigned wnLSF;
134  unsigned dn;
135  double deltatLSF;
136  unsigned dnSun;
137  };
138 
140 
141 }
142 
143 #endif // GNSSTK_STDNAVTIMEOFFSET_HPP
TimeSystem.hpp
gnsstk::StdNavTimeOffset::deltatLSF
double deltatLSF
Current or future leap second count (UTC only).
Definition: StdNavTimeOffset.hpp:135
gnsstk::StdNavTimeOffset::effEnd
virtual double effEnd() const
Definition: StdNavTimeOffset.hpp:108
gnsstk::StdNavTimeOffset::dump
void dump(std::ostream &s, DumpDetail dl) const override
Definition: StdNavTimeOffset.cpp:97
gnsstk::StdNavTimeOffset::src
TimeSystem src
Source time system.
Definition: StdNavTimeOffset.hpp:120
gnsstk::StdNavTimeOffset::tgt
TimeSystem tgt
Target time system.
Definition: StdNavTimeOffset.hpp:121
gnsstk::StdNavTimeOffset::effStart
virtual double effStart() const
Definition: StdNavTimeOffset.hpp:104
gnsstk::StdNavTimeOffset::deltatLS
double deltatLS
Current or past leap second count (UTC only).
Definition: StdNavTimeOffset.hpp:125
gnsstk::StdNavTimeOffset::wnot
unsigned wnot
Time data reference week number (storage only).
Definition: StdNavTimeOffset.hpp:129
gnsstk::StdNavTimeOffset::dnSun
unsigned dnSun
dn value for Sunday.
Definition: StdNavTimeOffset.hpp:136
gnsstk::StdNavTimeOffset::wnLSF
unsigned wnLSF
Leap second reference week number (UTC only).
Definition: StdNavTimeOffset.hpp:133
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::StdNavTimeOffset::a1
double a1
Drift coefficient of source time scale.
Definition: StdNavTimeOffset.hpp:123
gnsstk::TimeCvtSet
std::set< TimeCvtKey > TimeCvtSet
Define a unique set of time system conversions.
Definition: TimeOffsetData.hpp:55
gnsstk::StdNavTimeOffset::dn
unsigned dn
Leap second reference day number (UTC only).
Definition: StdNavTimeOffset.hpp:134
gnsstk::StdNavTimeOffset::a2
double a2
Drift rate coefficient of source time scale.
Definition: StdNavTimeOffset.hpp:124
gnsstk::TimeOffsetData
Definition: TimeOffsetData.hpp:60
gnsstk::CommonTime
Definition: CommonTime.hpp:84
TimeOffsetData.hpp
gnsstk::StdNavTimeOffset::getConversions
TimeCvtSet getConversions() const override
Definition: StdNavTimeOffset.cpp:153
gnsstk::TimeSystem
TimeSystem
Definition of various time systems.
Definition: TimeSystem.hpp:51
gnsstk::StdNavTimeOffset::getOffset
bool getOffset(TimeSystem fromSys, TimeSystem toSys, const CommonTime &when, double &offset) const override
Definition: StdNavTimeOffset.cpp:56
gnsstk::StdNavTimeOffset::StdNavTimeOffset
StdNavTimeOffset()
Initialize all data to 0.
Definition: StdNavTimeOffset.cpp:47
gnsstk::DumpDetail
DumpDetail
Specify level of detail for dump output.
Definition: DumpDetail.hpp:51
gnsstk::StdNavTimeOffset::a0
double a0
Bias coefficient of source time scale.
Definition: StdNavTimeOffset.hpp:122
gnsstk::StdNavTimeOffset
Definition: StdNavTimeOffset.hpp:72
gnsstk::StdNavTimeOffset::effTime
CommonTime effTime
Effectivity time (wnLSF,dn).
Definition: StdNavTimeOffset.hpp:127
gnsstk::StdNavTimeOffset::refTime
CommonTime refTime
Reference time for computation.
Definition: StdNavTimeOffset.hpp:126
gnsstk::StdNavTimeOffset::tot
double tot
Time data reference time of week (storage only).
Definition: StdNavTimeOffset.hpp:128


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:41