Public Member Functions | List of all members
gnsstk::GenericNavFilterData Class Referenceabstract

Detailed Description

Abstract base class for any nav data to be used by NavFilter.

Todo:
in the long term it might be preferable to put this functionality into NavFilterKey and eliminate this class, but that would require redoing the existing filters to reflect the more abstract implementation using getBits.

Definition at line 54 of file GenericNavFilterData.hpp.

#include <GenericNavFilterData.hpp>

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

Public Member Functions

void dump (std::ostream &s) const override
 
virtual uint32_t getBits (unsigned start, unsigned num) const =0
 
uint32_t getBitsSplit (unsigned firstBit1, unsigned numBits1, unsigned firstBit2, unsigned numBits2, unsigned firstBit3=0, unsigned numBits3=0) const
 
- Public Member Functions inherited from gnsstk::NavFilterKey
 NavFilterKey ()
 Initialize key members to empty defaults. More...
 

Additional Inherited Members

- Public Attributes inherited from gnsstk::NavFilterKey
CarrierBand carrier
 carrier band of navigation message More...
 
gnsstk::TrackingCode code
 ranging code of navigation message More...
 
uint32_t prn
 identifier of broadcasting satellite More...
 
std::string rxID
 receiver identifier for data source More...
 
std::string stationID
 site/station identifier for data source More...
 
gnsstk::CommonTime timeStamp
 
- Protected Member Functions inherited from gnsstk::NavFilterKey
virtual void dummy ()
 

Member Function Documentation

◆ dump()

void gnsstk::GenericNavFilterData::dump ( std::ostream &  s) const
inlineoverridevirtual

Dump the contents of this message to the given stream.

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

Reimplemented from gnsstk::NavFilterKey.

Definition at line 96 of file GenericNavFilterData.hpp.

◆ getBits()

virtual uint32_t gnsstk::GenericNavFilterData::getBits ( unsigned  start,
unsigned  num 
) const
pure virtual

Get a value, up to 32 bits, out of the nav message.

Parameters
[in]startThe first bit (counting from 1 through the maximum number of bits in a single subframe) of the desired bits.
[in]numThe number of consecutive bits to retrieve.
Returns
The value extracted from the nav message starting at start and ending at (start-1+num).

◆ getBitsSplit()

uint32_t gnsstk::GenericNavFilterData::getBitsSplit ( unsigned  firstBit1,
unsigned  numBits1,
unsigned  firstBit2,
unsigned  numBits2,
unsigned  firstBit3 = 0,
unsigned  numBits3 = 0 
) const
inline

Similar to getBits, but aggregates bits that are split across multiple locations (in a single subframe).

Parameters
[in]firstBit1The position in the D1 nav message of the first bit of the numBits1 MSBs to return. This is numbered 1-300.
[in]numBits1The number of bits to extract from the subframe starting at firstBit1. This can be numbered 1-30.
[in]firstBit2The position in the D1 nav message of the first bit of the numBits2 LSBs to return. This is numbered 1-300.
[in]numBits2The number of bits to extract from the subframe starting at firstBit2. This can be numbered 1-30.
Exceptions
AssertionFailureif numBits1 or numBits2 is >30.
Returns
bits ((firstBit1..firstBit1+numBits1) << numBits2 + (firstBit2..firstBit2+numBits2).

Definition at line 82 of file GenericNavFilterData.hpp.


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


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