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

#include <msp_msg.hpp>

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

Public Member Functions

virtual ByteVectorUptr encode () const override
 Encode all data into a ByteVector. More...
 
virtual ID id () const override
 get the ID of the message More...
 
 SetWp (FirmwareVariant v)
 
- Public Member Functions inherited from msp::Message
virtual bool decode (const ByteVector &)
 Decode message contents from 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< uint8_t > action
 
Value< uint32_t > alt
 
Value< uint32_t > lat
 
Value< uint32_t > lon
 
Value< uint8_t > nav_flag
 
Value< uint16_t > p1
 
Value< uint16_t > p2
 
Value< uint16_t > p3
 
Value< uint8_t > wp_no
 

Additional Inherited Members

- Protected Attributes inherited from msp::Message
FirmwareVariant fw_variant
 

Detailed Description

Definition at line 4434 of file msp_msg.hpp.

Constructor & Destructor Documentation

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

Definition at line 4435 of file msp_msg.hpp.

Member Function Documentation

virtual ByteVectorUptr msp::msg::SetWp::encode ( ) const
inlineoverridevirtual

Encode all data into a ByteVector.

Returns
Unique pointer to a ByteVector of data

Reimplemented from msp::Message.

Definition at line 4450 of file msp_msg.hpp.

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

get the ID of the message

Returns
ID

Implements msp::Message.

Definition at line 4437 of file msp_msg.hpp.

Member Data Documentation

Value<uint8_t> msp::msg::SetWp::action

Definition at line 4440 of file msp_msg.hpp.

Value<uint32_t> msp::msg::SetWp::alt

Definition at line 4443 of file msp_msg.hpp.

Value<uint32_t> msp::msg::SetWp::lat

Definition at line 4441 of file msp_msg.hpp.

Value<uint32_t> msp::msg::SetWp::lon

Definition at line 4442 of file msp_msg.hpp.

Value<uint8_t> msp::msg::SetWp::nav_flag

Definition at line 4448 of file msp_msg.hpp.

Value<uint16_t> msp::msg::SetWp::p1

Definition at line 4445 of file msp_msg.hpp.

Value<uint16_t> msp::msg::SetWp::p2

Definition at line 4446 of file msp_msg.hpp.

Value<uint16_t> msp::msg::SetWp::p3

Definition at line 4447 of file msp_msg.hpp.

Value<uint8_t> msp::msg::SetWp::wp_no

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