Struct mavlink::paparazzi::COMMAND_ACK_DATA
source · pub struct COMMAND_ACK_DATA {
pub command: MavCmd,
pub result: MavResult,
pub progress: u8,
pub result_param2: i32,
pub target_system: u8,
pub target_component: u8,
}
Expand description
id: 77 Report status of a command. Includes feedback whether the command was executed. The command microservice is documented at https://mavlink.io/en/services/command.html.
Fields§
§command: MavCmd
Command ID (of acknowledged command)..
result: MavResult
Result of command..
progress: u8
Also used as result_param1, it can be set with an enum containing the errors reasons of why the command was denied, or the progress percentage when result is MAV_RESULT_IN_PROGRESS (UINT8_MAX if the progress is unknown)..
result_param2: i32
Additional parameter of the result, example: which parameter of MAV_CMD_NAV_WAYPOINT caused it to be denied..
target_system: u8
System ID of the target recipient. This is the ID of the system that sent the command for which this COMMAND_ACK is an acknowledgement..
target_component: u8
Component ID of the target recipient. This is the ID of the system that sent the command for which this COMMAND_ACK is an acknowledgement..
Implementations§
source§impl COMMAND_ACK_DATA
impl COMMAND_ACK_DATA
pub const ENCODED_LEN: usize = 10usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for COMMAND_ACK_DATA
impl Clone for COMMAND_ACK_DATA
source§fn clone(&self) -> COMMAND_ACK_DATA
fn clone(&self) -> COMMAND_ACK_DATA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for COMMAND_ACK_DATA
impl Debug for COMMAND_ACK_DATA
source§impl Default for COMMAND_ACK_DATA
impl Default for COMMAND_ACK_DATA
source§impl<'de> Deserialize<'de> for COMMAND_ACK_DATA
impl<'de> Deserialize<'de> for COMMAND_ACK_DATA
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl MessageData for COMMAND_ACK_DATA
impl MessageData for COMMAND_ACK_DATA
type Message = MavMessage
const ID: u32 = 77u32
const NAME: &'static str = "COMMAND_ACK"
const EXTRA_CRC: u8 = 143u8
const ENCODED_LEN: usize = 10usize
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for COMMAND_ACK_DATA
impl PartialEq for COMMAND_ACK_DATA
source§fn eq(&self, other: &COMMAND_ACK_DATA) -> bool
fn eq(&self, other: &COMMAND_ACK_DATA) -> bool
self
and other
values to be equal, and is used
by ==
.