Firmware
Classes | Public Member Functions | Static Public Member Functions | List of all members
MavlinkCommandSender Class Reference

Public Member Functions

int handle_vehicle_command (const struct vehicle_command_s &command, mavlink_channel_t channel)
 Send a command on a channel and keep it in a queue for retransmission. More...
 
void check_timeout (mavlink_channel_t channel)
 Check timeouts to verify if an commands need retransmission. More...
 
void handle_mavlink_command_ack (const mavlink_command_ack_t &ack, uint8_t from_sysid, uint8_t from_compid)
 Handle mavlink command_ack. More...
 

Static Public Member Functions

static void initialize ()
 initialize: call this once on startup (this function is not thread-safe!)
 
static MavlinkCommandSenderinstance ()
 

Member Function Documentation

§ check_timeout()

void MavlinkCommandSender::check_timeout ( mavlink_channel_t  channel)

Check timeouts to verify if an commands need retransmission.

thread-safe

§ handle_mavlink_command_ack()

void MavlinkCommandSender::handle_mavlink_command_ack ( const mavlink_command_ack_t &  ack,
uint8_t  from_sysid,
uint8_t  from_compid 
)

Handle mavlink command_ack.

thread-safe

§ handle_vehicle_command()

int MavlinkCommandSender::handle_vehicle_command ( const struct vehicle_command_s &  command,
mavlink_channel_t  channel 
)

Send a command on a channel and keep it in a queue for retransmission.

thread-safe

Returns
0 on success, <0 otherwise

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