0.2.0
Loading...
Searching...
No Matches
NAV::UartPacket Class Reference

UART Packet storage class. More...

Public Member Functions

 UartPacket (uart::protocol::Packet &packet)
 Constructor.
 
- Public Member Functions inherited from NAV::NodeData
void addEvent (const std::string &text)
 Adds the event to the list.
 
virtual std::vector< std::string > dynamicDataDescriptors () const
 Returns a vector of data descriptors for the dynamic data.
 
const std::vector< std::string > & events () const
 Returns a vector of string events associated with this data.
 
virtual std::vector< std::pair< std::string, double > > getDynamicData () const
 Returns a vector of data descriptors and values for the dynamic data.
 
virtual std::optional< double > getDynamicDataAt (const std::string &) const
 Get the value for the descriptor.
 
virtual std::optional< double > getValueAt (size_t) const
 Get the value at the index.
 
double getValueAtOrNaN (size_t idx) const
 Get the value at the index or NaN if not in the observation.
 
 NodeData ()=default
 Default constructor.
 
 NodeData (const NodeData &)=default
 Copy constructor.
 
 NodeData (NodeData &&)=default
 Move constructor.
 
NodeDataoperator= (const NodeData &)=default
 Copy assignment operator.
 
NodeDataoperator= (NodeData &&)=default
 Move assignment operator.
 
virtual std::vector< std::string > staticDataDescriptors () const
 Returns a vector of data descriptors.
 
virtual size_t staticDescriptorCount () const
 Get the amount of descriptors.
 
virtual ~NodeData ()=default
 Destructor.
 

Static Public Member Functions

static std::vector< std::string > parentTypes ()
 Returns the parent types of the data class.
 
static std::string type ()
 Returns the type of the data class.
 
- Static Public Member Functions inherited from NAV::NodeData
static std::vector< std::string > GetStaticDataDescriptors ()
 Returns a vector of data descriptors.
 
static constexpr size_t GetStaticDescriptorCount ()
 Get the amount of descriptors.
 
static std::vector< std::string > parentTypes ()
 Returns the parent types of the data class.
 
static std::string type ()
 Returns the type of the data class.
 

Public Attributes

uart::protocol::Packet raw
 Complete message raw binary data.
 
- Public Attributes inherited from NAV::NodeData
InsTime insTime
 Time at which the message was received.
 

Additional Inherited Members

- Protected Attributes inherited from NAV::NodeData
std::vector< std::string > _events
 List of events.
 

Detailed Description

UART Packet storage class.

Constructor & Destructor Documentation

◆ UartPacket()

NAV::UartPacket::UartPacket ( uart::protocol::Packet & packet)
inlineexplicit

Constructor.

Parameters
[in]packetThe packet to copy into the raw data

Member Function Documentation

◆ parentTypes()

static std::vector< std::string > NAV::UartPacket::parentTypes ( )
inlinestatic

Returns the parent types of the data class.

Returns
The parent data types

◆ type()

static std::string NAV::UartPacket::type ( )
inlinestatic

Returns the type of the data class.

Returns
The data type

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