VSM C++ SDK
Vehicle Specific Modules SDK
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

template<typename Mavlink_kind >
Io_buffer::Ptr Encode (const mavlink::Payload_base &payload, typename Mavlink_kind::System_id system_id, uint8_t component_id)
 Encode Mavlink message. More...
 
template<typename Mavlink_kind >
Io_buffer::Ptr Encode (const mavlink::Payload_base &payload, typename Mavlink_kind::System_id system_id, uint8_t component_id, uint32_t request_id)
 Encode Mavlink message. More...
 

Detailed Description

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

Member Function Documentation

template<typename Mavlink_kind >
Io_buffer::Ptr ugcs::vsm::Mavlink_encoder::Encode ( const mavlink::Payload_base payload,
typename Mavlink_kind::System_id  system_id,
uint8_t  component_id 
)
inline

Encode Mavlink message.

Parameters
payloadPayload.
system_idSystem id.
component_idComponent id.
Returns
Byte buffer ready to be directly written on to the wire.
template<typename Mavlink_kind >
Io_buffer::Ptr ugcs::vsm::Mavlink_encoder::Encode ( const mavlink::Payload_base payload,
typename Mavlink_kind::System_id  system_id,
uint8_t  component_id,
uint32_t  request_id 
)
inline

Encode Mavlink message.

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

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