Skip to main content

pamoja_mavlink_command_confirmation

Function pamoja_mavlink_command_confirmation 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_mavlink_command_confirmation( command: *const PamojaMavlinkCommand, ) -> u8
Expand description

Returns the confirmation count to stamp on the command being sent.

It is zero for the first transmission and increments on each retransmission, which is how an autopilot distinguishes a resend from a new command.

§Arguments

  • command - the tracker.

§Returns

The current confirmation count, or 0 if command is null.

§Safety

command must be a live tracker handle or null.