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

Detailed Description

Defines the class that provide the ability to convert between BeiDou time (BDT) and a supported time system (UTC, GPS, GLONASS, Galileo), using data extracted from BDS navigation messages.

Note
The ICD isn't clear on the topic of reference times. While GPS LNAV has an explicit reference time in its time offset data, BeiDou does not. As such, when PNBBDSD2NavDataFactory decodes this data, it sets the reference time to our "best guess", which is the start of the transmit week (based on how tE is used).
This class is used to encapsulate the data from subframe 5, pages 9 and 10. Page 10 is for UTC conversion and has additional factors not present in page 9 (see the data fields). Additionally, the parameter subscripts differ depending on the target time system, however mathematically they are identical terms and generic names are used in this class to represent the data.

Definition at line 67 of file BDSD2NavTimeOffset.hpp.

#include <BDSD2NavTimeOffset.hpp>

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

Public Member Functions

 BDSD2NavTimeOffset ()
 Initialize all data to 0. More...
 
NavDataPtr clone () const override
 Create a deep copy of this object. More...
 
virtual double effEnd () const
 
virtual double effStart () const
 
bool validate () const override
 
- Public Member Functions inherited from gnsstk::StdNavTimeOffset
void dump (std::ostream &s, DumpDetail dl) const override
 
TimeCvtSet getConversions () const override
 
bool getOffset (TimeSystem fromSys, TimeSystem toSys, const CommonTime &when, double &offset) const override
 
 StdNavTimeOffset ()
 Initialize all data to 0. More...
 
- 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...
 

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...
 
- Public Attributes inherited from gnsstk::StdNavTimeOffset
double a0
 Bias coefficient of source time scale. More...
 
double a1
 Drift coefficient of source time scale. More...
 
double a2
 Drift rate coefficient of source time scale. More...
 
double deltatLS
 Current or past leap second count (UTC only). More...
 
double deltatLSF
 Current or future leap second count (UTC only). More...
 
unsigned dn
 Leap second reference day number (UTC only). More...
 
unsigned dnSun
 dn value for Sunday. More...
 
CommonTime effTime
 Effectivity time (wnLSF,dn). More...
 
CommonTime refTime
 Reference time for computation. More...
 
TimeSystem src
 Source time system. More...
 
TimeSystem tgt
 Target time system. More...
 
double tot
 Time data reference time of week (storage only). More...
 
unsigned wnLSF
 Leap second reference week number (UTC only). More...
 
unsigned wnot
 Time data reference week number (storage only). More...
 
- Public Attributes inherited from gnsstk::NavData
NavMessageID signal
 Source signal identification for this navigation message data. More...
 
CommonTime timeStamp
 
std::string weekFmt
 
- 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

◆ BDSD2NavTimeOffset()

gnsstk::BDSD2NavTimeOffset::BDSD2NavTimeOffset ( )

Initialize all data to 0.

Definition at line 49 of file BDSD2NavTimeOffset.cpp.

Member Function Documentation

◆ clone()

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

Create a deep copy of this object.

Implements gnsstk::NavData.

Definition at line 73 of file BDSD2NavTimeOffset.hpp.

◆ effEnd()

virtual double gnsstk::BDSD2NavTimeOffset::effEnd ( ) const
inlinevirtual

Return the number of seconds after the effectivity time (5/4 of a day) during which the standard delta t formula is used.

Reimplemented from gnsstk::StdNavTimeOffset.

Definition at line 84 of file BDSD2NavTimeOffset.hpp.

◆ effStart()

virtual double gnsstk::BDSD2NavTimeOffset::effStart ( ) const
inlinevirtual

Return the number of seconds prior to the effectivity time (2/3 of a day) during which the standard delta t formula is used.

Reimplemented from gnsstk::StdNavTimeOffset.

Definition at line 79 of file BDSD2NavTimeOffset.hpp.

◆ validate()

bool gnsstk::BDSD2NavTimeOffset::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.

Implements gnsstk::NavData.

Definition at line 59 of file BDSD2NavTimeOffset.cpp.


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


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