Skip to main content

pamoja_mavlink_command_new

Function pamoja_mavlink_command_new 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_mavlink_command_new( command: u16, max_retries: u8, ) -> *mut PamojaMavlinkCommand
Expand description

Starts tracking a command.

§Arguments

  • command - the MAV_CMD id being sent.
  • max_retries - how many times the command may be resent after a timeout before the caller gives up; PAMOJA_MAVLINK_MAX_RETRIES is the usual choice.

§Returns

A tracker the caller releases with pamoja_mavlink_command_free.