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,
}
matrixpilot
only.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 more