class ugcs::vsm::Mavlink_encoder¶
Overview¶
Encoder capable of creating byte buffers based on Mavlink payload and identifiers. More…
#include <mavlink_encoder.h> class Mavlink_encoder { public: // methods Io_buffer::Ptr Encode_v1(const mavlink::Payload_base& payload, uint8_t system_id, uint8_t component_id); Io_buffer::Ptr Encode_v2(const mavlink::Payload_base& payload, uint8_t system_id, uint8_t component_id); };
Detailed Documentation¶
Encoder capable of creating byte buffers based on Mavlink payload and identifiers.
Methods¶
Io_buffer::Ptr Encode_v1(const mavlink::Payload_base& payload, uint8_t system_id, uint8_t component_id)
Encode Mavlink version 1 message.
Parameters:
payload |
Payload. |
system_id |
System id. |
component_id |
Component id. |
Returns:
Byte buffer ready to be directly written on to the wire.
Io_buffer::Ptr Encode_v2(const mavlink::Payload_base& payload, uint8_t system_id, uint8_t component_id)
Encode Mavlink version 2 message.
Parameters:
payload |
Payload. |
system_id |
System id. |
component_id |
Component id. |
Returns:
Byte buffer ready to be directly written on to the wire.