VSM C++ SDK
Vehicle Specific Modules SDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ugcs::vsm::Mavlink_encoder Class Reference

Encoder capable of creating byte buffers based on Mavlink payload and identifiers. More...

#include <mavlink_encoder.h>

Public Member Functions

Io_buffer::Ptr Encode_v1 (const mavlink::Payload_base &payload, uint8_t system_id, uint8_t component_id)
 Encode Mavlink version 1 message. More...
 
Io_buffer::Ptr Encode_v2 (const mavlink::Payload_base &payload, uint8_t system_id, uint8_t component_id)
 Encode Mavlink version 2 message. More...
 

Detailed Description

Encoder capable of creating byte buffers based on Mavlink payload and identifiers.

Member Function Documentation

Io_buffer::Ptr ugcs::vsm::Mavlink_encoder::Encode_v1 ( const mavlink::Payload_base payload,
uint8_t  system_id,
uint8_t  component_id 
)
inline

Encode Mavlink version 1 message.

Parameters
payloadPayload.
system_idSystem id.
component_idComponent id.
Returns
Byte buffer ready to be directly written on to the wire.
Io_buffer::Ptr ugcs::vsm::Mavlink_encoder::Encode_v2 ( const mavlink::Payload_base payload,
uint8_t  system_id,
uint8_t  component_id 
)
inline

Encode Mavlink version 2 message.

Parameters
payloadPayload.
system_idSystem id.
component_idComponent id.
Returns
Byte buffer ready to be directly written on to the wire.

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