#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_mavlink_command_on_frame(
command: *const PamojaMavlinkCommand,
frame: *const PamojaMavlinkFrame,
out_kind: *mut u32,
out_value: *mut u8,
) -> PamojaStatusExpand description
Classifies an incoming frame against the command in flight.
§Arguments
command- the tracker.frame- the frame off the link.out_kind- set toPAMOJA_MAVLINK_ACK_UNRELATED,PAMOJA_MAVLINK_ACK_IN_PROGRESS,PAMOJA_MAVLINK_ACK_FINAL, orPAMOJA_MAVLINK_STEP_IGNOREDif the frame is not aCOMMAND_ACK.out_value- set to the progress percent when in progress, or theMAV_RESULTwhen final.
§Returns
PamojaStatus::Ok on success, including when the frame was ignored.
§Errors
Returns PamojaStatus::InvalidArgument if any pointer is null.
§Safety
command must be a live tracker handle, frame a live frame handle, and each out
pointer must point at writable storage for its value.