Public Member Functions | Public Attributes | List of all members
msp::msg::Status Struct Reference

#include <msp_msg.hpp>

Inheritance diagram for msp::msg::Status:
Inheritance graph
[legend]

Public Member Functions

virtual bool decode (const ByteVector &data) override
 Decode message contents from a ByteVector. More...
 
bool hasAccelerometer () const
 
bool hasBarometer () const
 
bool hasGPS () const
 
bool hasMagnetometer () const
 
bool hasOpticalFlow () const
 
bool hasPitot () const
 
bool hasSonar () const
 
virtual ID id () const override
 get the ID of the message More...
 
bool isHealthy () const
 
virtual std::ostream & print (std::ostream &s) const override
 
 Status (FirmwareVariant v)
 
- Public Member Functions inherited from msp::msg::StatusBase
virtual bool pack_into (ByteVector &data) const
 
bool unpack_from (const ByteVector &data)
 
- Public Member Functions inherited from msp::Packable
virtual ~Packable ()
 
- Public Member Functions inherited from msp::Message
virtual ByteVectorUptr encode () const
 Encode all data into a ByteVector. More...
 
FirmwareVariant getFirmwareVariant () const
 Queries the firmware variant the message works with. More...
 
 Message (FirmwareVariant v)
 Message constructor accepting a FirmwareVariant. More...
 
void setFirmwareVariant (FirmwareVariant v)
 Set the firmware the message should work with. More...
 
virtual ~Message ()
 Message destructor. More...
 

Public Attributes

Value< uint16_t > avg_system_load_pct
 
Value< uint16_t > gyro_cycle_time
 
- Public Attributes inherited from msp::msg::StatusBase
std::set< size_t > box_mode_flags
 
Value< uint8_t > current_profile
 
Value< uint16_t > cycle_time
 
Value< uint16_t > i2c_errors
 
std::set< Sensorsensors
 

Additional Inherited Members

- Protected Attributes inherited from msp::Message
FirmwareVariant fw_variant
 

Detailed Description

Definition at line 2755 of file msp_msg.hpp.

Constructor & Destructor Documentation

msp::msg::Status::Status ( FirmwareVariant  v)
inline

Definition at line 2756 of file msp_msg.hpp.

Member Function Documentation

virtual bool msp::msg::Status::decode ( const ByteVector )
inlineoverridevirtual

Decode message contents from a ByteVector.

Parameters
dataSource of data
Returns
False. Override methods should return true on success

Reimplemented from msp::Message.

Definition at line 2763 of file msp_msg.hpp.

bool msp::msg::Status::hasAccelerometer ( ) const
inline

Definition at line 2774 of file msp_msg.hpp.

bool msp::msg::Status::hasBarometer ( ) const
inline

Definition at line 2778 of file msp_msg.hpp.

bool msp::msg::Status::hasGPS ( ) const
inline

Definition at line 2782 of file msp_msg.hpp.

bool msp::msg::Status::hasMagnetometer ( ) const
inline

Definition at line 2780 of file msp_msg.hpp.

bool msp::msg::Status::hasOpticalFlow ( ) const
inline

Definition at line 2786 of file msp_msg.hpp.

bool msp::msg::Status::hasPitot ( ) const
inline

Definition at line 2788 of file msp_msg.hpp.

bool msp::msg::Status::hasSonar ( ) const
inline

Definition at line 2784 of file msp_msg.hpp.

virtual ID msp::msg::Status::id ( ) const
inlineoverridevirtual

get the ID of the message

Returns
ID

Implements msp::Message.

Definition at line 2758 of file msp_msg.hpp.

bool msp::msg::Status::isHealthy ( ) const
inline

Definition at line 2790 of file msp_msg.hpp.

virtual std::ostream& msp::msg::Status::print ( std::ostream &  s) const
inlineoverridevirtual

Reimplemented from msp::Message.

Definition at line 2792 of file msp_msg.hpp.

Member Data Documentation

Value<uint16_t> msp::msg::Status::avg_system_load_pct

Definition at line 2760 of file msp_msg.hpp.

Value<uint16_t> msp::msg::Status::gyro_cycle_time

Definition at line 2761 of file msp_msg.hpp.


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


msp
Author(s): Christian Rauch
autogenerated on Tue Oct 6 2020 03:39:02