Public Member Functions | Public Attributes | List of all members
gnsstk::GLOCNavUT1TimeOffset Class Reference

Detailed Description

Defines the class that provides the ability to convert GLONASS to/from UT1 (UTC Greenwich, to distinguish it from UTC(SU)), using data extracted from GLONASS navigation messages. The algorithm is sufficiently different from StdNavTimeOffset as to warrant its own implementation. This is mainly due to the terms of the polynomial being referenced to the time difference in days rather than seconds like the rest of the world.

Definition at line 58 of file GLOCNavUT1TimeOffset.hpp.

#include <GLOCNavUT1TimeOffset.hpp>

Inheritance diagram for gnsstk::GLOCNavUT1TimeOffset:
Inheritance graph
[legend]

Public Member Functions

NavDataPtr clone () const override
 Create a deep copy of this object. More...
 
void dump (std::ostream &s, DumpDetail dl) const override
 
void dumpTerse (std::ostream &s) const
 
TimeCvtSet getConversions () const override
 
bool getOffset (TimeSystem fromSys, TimeSystem toSys, const CommonTime &when, double &offset) const override
 
 GLOCNavUT1TimeOffset ()
 Initialize all data to 0. More...
 
bool validate () const override
 
- Public Member Functions inherited from gnsstk::TimeOffsetData
std::list< std::string > compare (const NavDataPtr &right) const override
 
CommonTime getNearTime () const override
 
bool isSameData (const NavDataPtr &right) const override
 
 TimeOffsetData ()
 Set the messageType. More...
 
virtual ~TimeOffsetData ()
 Obligatory virtual destructor. More...
 
- Public Member Functions inherited from gnsstk::NavData
virtual std::string getClassName () const
 
std::string getDumpTime (DumpDetail dl, const CommonTime &t) const
 
std::string getDumpTimeHdr (DumpDetail dl) const
 
std::string getSignalString () const
 
bool getSVN (const SatID &sat, const gnsstk::CommonTime &when, std::string &svn) const
 
virtual CommonTime getUserTime () const
 
 NavData ()
 Initialize internal data fields. More...
 

Public Attributes

double B0
 Time bias in seconds. More...
 
double B1
 Time drift in s/s. More...
 
double B2
 Time drift rate in s/s**2. More...
 
unsigned NB
 Day since the most recent leap year-aligned 4 years. More...
 
CommonTime refTime
 Reference time for computation. More...
 
double UTCTAI
 Leap seconds - not really used. More...
 
- Public Attributes inherited from gnsstk::NavData
NavMessageID signal
 Source signal identification for this navigation message data. More...
 
CommonTime timeStamp
 
std::string weekFmt
 

Additional Inherited Members

- Static Public Member Functions inherited from gnsstk::NavData
static gnsstk::SatMetaDataStoregetSatMetaDataStore ()
 Accessor for python. More...
 
static void setSatMetaDataStore (gnsstk::SatMetaDataStore *smds)
 Accessor for python. More...
 
- Static Public Attributes inherited from gnsstk::NavData
static const GNSSTK_EXPORT std::string dumpTimeFmt
 Time format used for the dump method (Full). More...
 
static const GNSSTK_EXPORT std::string dumpTimeFmtBrief
 Time format used for the dump method (Brief). More...
 
static GNSSTK_EXPORT gnsstk::SatMetaDataStoresatMetaDataStore = nullptr
 Set this to a valid store to get PRN->SVN translations in dump(). More...
 
- Protected Attributes inherited from gnsstk::NavData
double msgLenSec
 

Constructor & Destructor Documentation

◆ GLOCNavUT1TimeOffset()

gnsstk::GLOCNavUT1TimeOffset::GLOCNavUT1TimeOffset ( )

Initialize all data to 0.

Definition at line 47 of file GLOCNavUT1TimeOffset.cpp.

Member Function Documentation

◆ clone()

NavDataPtr gnsstk::GLOCNavUT1TimeOffset::clone ( ) const
inlineoverridevirtual

Create a deep copy of this object.

Implements gnsstk::NavData.

Definition at line 64 of file GLOCNavUT1TimeOffset.hpp.

◆ dump()

void gnsstk::GLOCNavUT1TimeOffset::dump ( std::ostream &  s,
DumpDetail  dl 
) const
overridevirtual

Print the contents of this object in a human-readable format. Uses parameters for GLONASS instead of generalized.

Parameters
[in,out]sThe stream to write the data to.
[in]dlThe level of detail the output should contain.

Reimplemented from gnsstk::NavData.

Definition at line 57 of file GLOCNavUT1TimeOffset.cpp.

◆ dumpTerse()

void gnsstk::GLOCNavUT1TimeOffset::dumpTerse ( std::ostream &  s) const

Print the contents of this object in a terse format.

Parameters
[in,out]sThe stream to write the data to.

Definition at line 108 of file GLOCNavUT1TimeOffset.cpp.

◆ getConversions()

TimeCvtSet gnsstk::GLOCNavUT1TimeOffset::getConversions ( ) const
overridevirtual

The set of time system conversions this class is capable of making.

Returns
a set of supported time system conversion to/from pairs.

Implements gnsstk::TimeOffsetData.

Definition at line 146 of file GLOCNavUT1TimeOffset.cpp.

◆ getOffset()

bool gnsstk::GLOCNavUT1TimeOffset::getOffset ( TimeSystem  fromSys,
TimeSystem  toSys,
const CommonTime when,
double &  offset 
) const
overridevirtual

Get the offset, in seconds, to apply to times when converting them from fromSys to toSys.

Parameters
[in]fromSysThe time system to convert from.
[in]toSysThe time system to convert to.
[in]whenThe time being converted, in the same time system as fromSys.
[out]offsetThe offset in seconds where when(toSys)=when(fromSys)-offset.
Exceptions
AssertionFailureif when's time system is not fromSys.
Returns
true if an offset is available, false if not.

Implements gnsstk::TimeOffsetData.

Definition at line 124 of file GLOCNavUT1TimeOffset.cpp.

◆ validate()

bool gnsstk::GLOCNavUT1TimeOffset::validate ( ) const
overridevirtual

Checks the contents of this message against known validity rules as defined in the appropriate ICD.

Returns
true if this message is valid according to ICD criteria.
Todo:
add some checks.

Implements gnsstk::NavData.

Definition at line 155 of file GLOCNavUT1TimeOffset.cpp.

Member Data Documentation

◆ B0

double gnsstk::GLOCNavUT1TimeOffset::B0

Time bias in seconds.

Definition at line 103 of file GLOCNavUT1TimeOffset.hpp.

◆ B1

double gnsstk::GLOCNavUT1TimeOffset::B1

Time drift in s/s.

Definition at line 104 of file GLOCNavUT1TimeOffset.hpp.

◆ B2

double gnsstk::GLOCNavUT1TimeOffset::B2

Time drift rate in s/s**2.

Definition at line 105 of file GLOCNavUT1TimeOffset.hpp.

◆ NB

unsigned gnsstk::GLOCNavUT1TimeOffset::NB

Day since the most recent leap year-aligned 4 years.

Definition at line 102 of file GLOCNavUT1TimeOffset.hpp.

◆ refTime

CommonTime gnsstk::GLOCNavUT1TimeOffset::refTime

Reference time for computation.

Definition at line 101 of file GLOCNavUT1TimeOffset.hpp.

◆ UTCTAI

double gnsstk::GLOCNavUT1TimeOffset::UTCTAI

Leap seconds - not really used.

Definition at line 106 of file GLOCNavUT1TimeOffset.hpp.


The documentation for this class was generated from the following files:


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