pub struct CommandAck {
pub command: MavCmd,
pub result: MavResult,
pub progress: u8,
pub result_param2: i32,
pub target_system: u8,
pub target_component: u8,
}
Expand description
MAVLink COMMAND_ACK
message.
The minimum supported MAVLink version is MAVLink 1
.
§Description
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
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload>
for
CommandAck
(encoding) and [IntoPayload
] (decoding) traits.
These traits are implemented by Message
proc macro.
Fields§
§command: MavCmd
MAVLink field command
.
Command ID (of acknowledged command).
result: MavResult
MAVLink field result
.
Result of command.
progress: u8
MAVLink field progress
.
The progress percentage when result is MAV_RESULT_IN_PROGRESS. Values: [0-100], or UINT8_MAX if the progress is unknown.
result_param2: i32
MAVLink field result_param2
.
Additional result information. Can be set with a command-specific enum containing command-specific error reasons for why the command might be denied. If used, the associated enum must be documented in the corresponding MAV_CMD (this enum should have a 0 value to indicate “unused” or “unknown”).
target_system: u8
MAVLink field target_system
.
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
MAVLink field target_component
.
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 CommandAck
impl CommandAck
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> u32
pub const fn message_id() -> u32
Message ID
.
Sourcepub const fn min_supported_mavlink_version() -> MavLinkVersion
pub const fn min_supported_mavlink_version() -> MavLinkVersion
Minimum supported MAVLink version for this message.
Trait Implementations§
Source§impl Clone for CommandAck
impl Clone for CommandAck
Source§fn clone(&self) -> CommandAck
fn clone(&self) -> CommandAck
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CommandAck
impl Debug for CommandAck
Source§impl Default for CommandAck
impl Default for CommandAck
Source§fn default() -> CommandAck
fn default() -> CommandAck
Source§impl<'de> Deserialize<'de> for CommandAck
impl<'de> Deserialize<'de> for CommandAck
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandAck, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandAck, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<CommandAck> for CommandAck
impl From<CommandAck> for CommandAck
Source§fn from(value: CommandAck) -> CommandAck
fn from(value: CommandAck) -> CommandAck
Source§impl From<CommandAck> for PayloadMsrv
impl From<CommandAck> for PayloadMsrv
Source§fn from(value: CommandAck) -> PayloadMsrv
fn from(value: CommandAck) -> PayloadMsrv
Source§impl IntoPayload for CommandAck
impl IntoPayload for CommandAck
Source§impl MessageSpec for CommandAck
impl MessageSpec for CommandAck
Source§impl MessageSpecStatic for CommandAck
impl MessageSpecStatic for CommandAck
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> u32
fn message_id() -> u32
ID
.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for CommandAck
impl NamedType for CommandAck
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl PartialEq for CommandAck
impl PartialEq for CommandAck
Source§impl Serialize for CommandAck
impl Serialize for CommandAck
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl TryFrom<&Payload> for CommandAck
impl TryFrom<&Payload> for CommandAck
Source§impl TryFrom<CommandAck> for CommandAck
impl TryFrom<CommandAck> for CommandAck
Source§fn try_from(
value: CommandAck,
) -> Result<CommandAck, <CommandAck as TryFrom<CommandAck>>::Error>
fn try_from( value: CommandAck, ) -> Result<CommandAck, <CommandAck as TryFrom<CommandAck>>::Error>
Source§impl Type for CommandAck
impl Type for CommandAck
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition
will be put into the type map.