#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_mavlink_mission_sender_add_item(
sender: *mut PamojaMavlinkMissionSender,
payload: *const u8,
payload_len: usize,
) -> PamojaStatusExpand description
Appends an item to the plan.
The sender stamps the sequence number, target ids, and mission type onto each item as it
is handed out, so the payload need only carry the item’s content: its command, frame,
position, and parameters. Build one by field name with the message schema for
MISSION_ITEM_INT and pass its payload.
§Arguments
sender- the plan to extend.payload- aMISSION_ITEM_INTpayload.payload_len- the payload length in bytes.
§Returns
PamojaStatus::Ok on success.
§Errors
Returns PamojaStatus::InvalidArgument if a pointer is null, and
PamojaStatus::Codec if the payload does not form an item.
§Safety
sender must be a live sender handle and payload must point at payload_len readable
bytes.