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

#include <msp_msg.hpp>

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

Public Member Functions

virtual bool decode (const ByteVector &data) override
 Decode message contents from a ByteVector. More...
 
virtual ID id () const override
 get the ID of the message More...
 
 OsdConfig (FirmwareVariant v)
 
- 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...
 
virtual std::ostream & print (std::ostream &s) const
 
void setFirmwareVariant (FirmwareVariant v)
 Set the firmware the message should work with. More...
 
virtual ~Message ()
 Message destructor. More...
 

Public Attributes

Value< uint16_t > alt_alarm
 
Value< uint16_t > battery_cap_warn
 
Value< uint16_t > dist_alarm
 
std::array< uint16_t, OSD_ITEM_COUNTitem_pos
 
Value< uint16_t > neg_alt_alarm
 
Value< uint8_t > osd_flags
 
Value< uint8_t > rssi_alarm
 
Value< uint16_t > time_alarm
 
Value< uint8_t > units
 
Value< uint8_t > video_system
 

Additional Inherited Members

- Protected Attributes inherited from msp::Message
FirmwareVariant fw_variant
 

Detailed Description

Definition at line 2151 of file msp_msg.hpp.

Constructor & Destructor Documentation

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

Definition at line 2152 of file msp_msg.hpp.

Member Function Documentation

virtual bool msp::msg::OsdConfig::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 2167 of file msp_msg.hpp.

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

get the ID of the message

Returns
ID

Implements msp::Message.

Definition at line 2154 of file msp_msg.hpp.

Member Data Documentation

Value<uint16_t> msp::msg::OsdConfig::alt_alarm

Definition at line 2162 of file msp_msg.hpp.

Value<uint16_t> msp::msg::OsdConfig::battery_cap_warn

Definition at line 2160 of file msp_msg.hpp.

Value<uint16_t> msp::msg::OsdConfig::dist_alarm

Definition at line 2163 of file msp_msg.hpp.

std::array<uint16_t, OSD_ITEM_COUNT> msp::msg::OsdConfig::item_pos

Definition at line 2165 of file msp_msg.hpp.

Value<uint16_t> msp::msg::OsdConfig::neg_alt_alarm

Definition at line 2164 of file msp_msg.hpp.

Value<uint8_t> msp::msg::OsdConfig::osd_flags

Definition at line 2156 of file msp_msg.hpp.

Value<uint8_t> msp::msg::OsdConfig::rssi_alarm

Definition at line 2159 of file msp_msg.hpp.

Value<uint16_t> msp::msg::OsdConfig::time_alarm

Definition at line 2161 of file msp_msg.hpp.

Value<uint8_t> msp::msg::OsdConfig::units

Definition at line 2158 of file msp_msg.hpp.

Value<uint8_t> msp::msg::OsdConfig::video_system

Definition at line 2157 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