Public Member Functions | Public Attributes | List of all members
gnsstk::GLOFNavUT1TimeOffset 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 what's in StdNavTimeOffset (in that the time difference is between the ephemeris and almanac times rather than some reference time and the desired time) that it's implemented apart from StdNavTimeOffset.

Definition at line 59 of file GLOFNavUT1TimeOffset.hpp.

#include <GLOFNavUT1TimeOffset.hpp>

Inheritance diagram for gnsstk::GLOFNavUT1TimeOffset:
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
 
 GLOFNavUT1TimeOffset ()
 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 B1
 Time bias in seconds. More...
 
double B2
 Time drift in s/s. More...
 
unsigned KP
 Leap second indicator. More...
 
unsigned NA
 Almanac days since leap year. More...
 
unsigned NT
 Ephemeris days since leap year. More...
 
double tauc
 Non-integer correction between UTC(SU) and GLONASS. 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

◆ GLOFNavUT1TimeOffset()

gnsstk::GLOFNavUT1TimeOffset::GLOFNavUT1TimeOffset ( )

Initialize all data to 0.

Definition at line 47 of file GLOFNavUT1TimeOffset.cpp.

Member Function Documentation

◆ clone()

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

Create a deep copy of this object.

Implements gnsstk::NavData.

Definition at line 65 of file GLOFNavUT1TimeOffset.hpp.

◆ dump()

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

Print the contents of this object in a human-readable format.

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 59 of file GLOFNavUT1TimeOffset.cpp.

◆ dumpTerse()

void gnsstk::GLOFNavUT1TimeOffset::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 129 of file GLOFNavUT1TimeOffset.cpp.

◆ getConversions()

TimeCvtSet gnsstk::GLOFNavUT1TimeOffset::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 172 of file GLOFNavUT1TimeOffset.cpp.

◆ getOffset()

bool gnsstk::GLOFNavUT1TimeOffset::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 149 of file GLOFNavUT1TimeOffset.cpp.

◆ validate()

bool gnsstk::GLOFNavUT1TimeOffset::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 181 of file GLOFNavUT1TimeOffset.cpp.

Member Data Documentation

◆ B1

double gnsstk::GLOFNavUT1TimeOffset::B1

Time bias in seconds.

Definition at line 104 of file GLOFNavUT1TimeOffset.hpp.

◆ B2

double gnsstk::GLOFNavUT1TimeOffset::B2

Time drift in s/s.

Definition at line 105 of file GLOFNavUT1TimeOffset.hpp.

◆ KP

unsigned gnsstk::GLOFNavUT1TimeOffset::KP

Leap second indicator.

Definition at line 106 of file GLOFNavUT1TimeOffset.hpp.

◆ NA

unsigned gnsstk::GLOFNavUT1TimeOffset::NA

Almanac days since leap year.

Definition at line 108 of file GLOFNavUT1TimeOffset.hpp.

◆ NT

unsigned gnsstk::GLOFNavUT1TimeOffset::NT

Ephemeris days since leap year.

Definition at line 107 of file GLOFNavUT1TimeOffset.hpp.

◆ tauc

double gnsstk::GLOFNavUT1TimeOffset::tauc

Non-integer correction between UTC(SU) and GLONASS.

Definition at line 103 of file GLOFNavUT1TimeOffset.hpp.


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


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