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

Detailed Description

Define a class for storing NavFilterKey data in a PackedNavBits object. This class is intended to be used as a template argument for NavFilterKey objects e.g. D1NavFilterData. It is not expected to be used directly by developers.

Definition at line 55 of file NavMsgDataPNB.hpp.

#include <NavMsgDataPNB.hpp>

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

Public Member Functions

void dump (std::ostream &s, unsigned totalBits) const override
 
uint32_t getBits (unsigned start, unsigned num) const override
 

Public Attributes

PackedNavBitssf
 The subframe contents. More...
 

Member Function Documentation

◆ dump()

void gnsstk::NavMsgDataPNB::dump ( std::ostream &  s,
unsigned  totalBits 
) const
overridevirtual

Dump the contents of this message to the given stream.

Parameters
[in,out]sThe stream to dump the data to.
[in]totalBitsThe total number of bits to dump (usually the number of bits in the subframe).
Todo:
eventually we'll likely want to make this a bit more configurable. This applies to GPS and BeiDou at the very least, but probably not GLONASS. Configuration shouldn't involve the use of variables in this class if it can be avoided, since there can be a large number of these objects when processing data. It would be better to figure out a way to make the nav code-specific derived classes set the configuration somehow via methods or static data or some such.

Implements gnsstk::NavMsgData.

Definition at line 51 of file NavMsgDataPNB.cpp.

◆ getBits()

uint32_t gnsstk::NavMsgDataPNB::getBits ( unsigned  start,
unsigned  num 
) const
overridevirtual

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).

Implements gnsstk::NavMsgData.

Definition at line 44 of file NavMsgDataPNB.cpp.

Member Data Documentation

◆ sf

PackedNavBits* gnsstk::NavMsgDataPNB::sf

The subframe contents.

Definition at line 74 of file NavMsgDataPNB.hpp.


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


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