0.5.0
Loading...
Searching...
No Matches
NAV::BaroHgt Class Reference

Barometric height storage class. More...

Public Member Functions

std::string getType () const override
 Returns the type of the data class.
std::optional< double > getValueAt (size_t idx) const override
 Get the value at the index.
bool setValueAt (size_t idx, double value) override
 Set the value at the index.
std::vector< std::string > staticDataDescriptors () const override
 Returns a vector of data descriptors.
size_t staticDescriptorCount () const override
 Get the amount of descriptors.
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.
double getValueAtOrNaN (size_t idx) const
 Get the value at the index or NaN if not in the observation.
virtual void guiTooltip (bool detailView, bool firstOpen, const char *displayName, const char *id, int *rootWindow) const
 Shows a GUI tooltip to look into details of the observation.
virtual bool hasTooltip () const
 Return whether this data has a tooltip.
 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 bool setDynamicDataAt (const std::string &, double)
 Set the value for the descriptor.
virtual ~NodeData ()=default
 Destructor.

Static Public Member Functions

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

Data Fields

double baro_height
 Barometric height [m].
std::optional< double > baro_heightStdev
 Standard deviation of barometric height [m].
Data Fields 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

Barometric height storage class.

Definition at line 23 of file BaroHgt.hpp.

Member Function Documentation

◆ GetStaticDataDescriptors()

std::vector< std::string > NAV::BaroHgt::GetStaticDataDescriptors ( )
inlinestaticnodiscard

Returns a vector of data descriptors.

Definition at line 45 of file BaroHgt.hpp.

◆ GetStaticDescriptorCount()

constexpr size_t NAV::BaroHgt::GetStaticDescriptorCount ( )
inlinestaticnodiscardconstexpr

Get the amount of descriptors.

Definition at line 54 of file BaroHgt.hpp.

◆ getType()

std::string NAV::BaroHgt::getType ( ) const
inlinenodiscardoverridevirtual

Returns the type of the data class.

Returns
The data type

Reimplemented from NAV::NodeData.

Definition at line 35 of file BaroHgt.hpp.

◆ getValueAt()

std::optional< double > NAV::BaroHgt::getValueAt ( size_t idx) const
inlinenodiscardoverridevirtual

Get the value at the index.

Parameters
idxIndex corresponding to data descriptor order
Returns
Value if in the observation

Reimplemented from NAV::NodeData.

Definition at line 65 of file BaroHgt.hpp.

◆ parentTypes()

std::vector< std::string > NAV::BaroHgt::parentTypes ( )
inlinestaticnodiscard

Returns the parent types of the data class.

Returns
The parent data types

Definition at line 39 of file BaroHgt.hpp.

◆ setValueAt()

bool NAV::BaroHgt::setValueAt ( size_t idx,
double value )
inlinenodiscardoverridevirtual

Set the value at the index.

Parameters
idxIndex corresponding to data descriptor order
valueValue to set
Returns
True if the value was updated

Reimplemented from NAV::NodeData.

Definition at line 84 of file BaroHgt.hpp.

◆ staticDataDescriptors()

std::vector< std::string > NAV::BaroHgt::staticDataDescriptors ( ) const
inlinenodiscardoverridevirtual

Returns a vector of data descriptors.

Reimplemented from NAV::NodeData.

Definition at line 57 of file BaroHgt.hpp.

◆ staticDescriptorCount()

size_t NAV::BaroHgt::staticDescriptorCount ( ) const
inlinenodiscardoverridevirtual

Get the amount of descriptors.

Reimplemented from NAV::NodeData.

Definition at line 60 of file BaroHgt.hpp.

◆ type()

std::string NAV::BaroHgt::type ( )
inlinestaticnodiscard

Returns the type of the data class.

Returns
The data type

Definition at line 28 of file BaroHgt.hpp.

Field Documentation

◆ baro_height

double NAV::BaroHgt::baro_height

Barometric height [m].

Definition at line 103 of file BaroHgt.hpp.

◆ baro_heightStdev

std::optional<double> NAV::BaroHgt::baro_heightStdev

Standard deviation of barometric height [m].

Definition at line 106 of file BaroHgt.hpp.


The documentation for this class was generated from the following file:
  • /home/runner/work/INSTINCT/INSTINCT/src/NodeData/Baro/BaroHgt.hpp