VSM C++ SDK
Vehicle Specific Modules SDK
ugcs::vsm::mavlink::Message< message_id, Extension_type > Class Template Reference

Specific Mavlink message with sender information from the header. More...

#include <mavlink.h>

Public Types

typedef std::shared_ptr< MessagePtr
 Pointer type.
 
typedef std::weak_ptr< MessageWeak_ptr
 Pointer type.
 

Public Member Functions

 Message (System_id_common system_id, uint8_t component_id, uint32_t request_id, Io_buffer::Ptr buffer)
 Construct message based on Mavlink payload and fixed header important fields. More...
 
System_id_common Get_sender_system_id () const
 Get system id of the sender. More...
 
uint8_t Get_sender_component_id () const
 Get component id of the sender. More...
 
uint32_t Get_sender_request_id () const
 Get component id of the sender. More...
 

Static Public Member Functions

template<typename... Args>
static Ptr Create (Args &&...args)
 Create an instance. More...
 

Public Attributes

Payload_type_mapper< message_id, Extension_type >::type payload
 Payload of the message. More...
 

Detailed Description

template<MESSAGE_ID_TYPE message_id, class Extension_type = Extension>
class ugcs::vsm::mavlink::Message< message_id, Extension_type >

Specific Mavlink message with sender information from the header.

Constructor & Destructor Documentation

template<MESSAGE_ID_TYPE message_id, class Extension_type = Extension>
ugcs::vsm::mavlink::Message< message_id, Extension_type >::Message ( System_id_common  system_id,
uint8_t  component_id,
uint32_t  request_id,
Io_buffer::Ptr  buffer 
)
inline

Construct message based on Mavlink payload and fixed header important fields.

Exceptions
Invalid_param_exceptionif size of the buffer is less than expected payload size.

Member Function Documentation

template<MESSAGE_ID_TYPE message_id, class Extension_type = Extension>
template<typename... Args>
static Ptr ugcs::vsm::mavlink::Message< message_id, Extension_type >::Create ( Args &&...  args)
inlinestatic

Create an instance.

template<MESSAGE_ID_TYPE message_id, class Extension_type = Extension>
uint8_t ugcs::vsm::mavlink::Message< message_id, Extension_type >::Get_sender_component_id ( ) const
inline

Get component id of the sender.

template<MESSAGE_ID_TYPE message_id, class Extension_type = Extension>
uint32_t ugcs::vsm::mavlink::Message< message_id, Extension_type >::Get_sender_request_id ( ) const
inline

Get component id of the sender.

template<MESSAGE_ID_TYPE message_id, class Extension_type = Extension>
System_id_common ugcs::vsm::mavlink::Message< message_id, Extension_type >::Get_sender_system_id ( ) const
inline

Get system id of the sender.

Member Data Documentation

template<MESSAGE_ID_TYPE message_id, class Extension_type = Extension>
Payload_type_mapper<message_id, Extension_type>::type ugcs::vsm::mavlink::Message< message_id, Extension_type >::payload

Payload of the message.


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