pub struct CommandLong {
pub target_system: u8,
pub target_component: u8,
pub command: MavCmd,
pub confirmation: u8,
pub param1: f32,
pub param2: f32,
pub param3: f32,
pub param4: f32,
pub param5: f32,
pub param6: f32,
pub param7: f32,
}
Expand description
MAVLink COMMAND_LONG
message.
The minimum supported MAVLink version is MAVLink 1
.
§Description
Send a command with up to seven parameters to the MAV. COMMAND_INT is generally preferred when sending MAV_CMD commands that include positional information; it offers higher precision and allows the MAV_FRAME to be specified (which may otherwise be ambiguous, particularly for altitude). 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
CommandLong
(encoding) and [IntoPayload
] (decoding) traits.
These traits are implemented by Message
proc macro.
Fields§
§target_system: u8
MAVLink field target_system
.
System which should execute the command
target_component: u8
MAVLink field target_component
.
Component which should execute the command, 0 for all components
command: MavCmd
MAVLink field command
.
Command ID (of command to send).
confirmation: u8
MAVLink field confirmation
.
0: First transmission of this command. 1-255: Confirmation transmissions (e.g. for kill command)
param1: f32
MAVLink field param1
.
Parameter 1 (for the specific command).
param2: f32
MAVLink field param2
.
Parameter 2 (for the specific command).
param3: f32
MAVLink field param3
.
Parameter 3 (for the specific command).
param4: f32
MAVLink field param4
.
Parameter 4 (for the specific command).
param5: f32
MAVLink field param5
.
Parameter 5 (for the specific command).
param6: f32
MAVLink field param6
.
Parameter 6 (for the specific command).
param7: f32
MAVLink field param7
.
Parameter 7 (for the specific command).
Implementations§
Source§impl CommandLong
impl CommandLong
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 CommandLong
impl Clone for CommandLong
Source§fn clone(&self) -> CommandLong
fn clone(&self) -> CommandLong
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CommandLong
impl Debug for CommandLong
Source§impl Default for CommandLong
impl Default for CommandLong
Source§fn default() -> CommandLong
fn default() -> CommandLong
Source§impl<'de> Deserialize<'de> for CommandLong
impl<'de> Deserialize<'de> for CommandLong
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandLong, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandLong, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<CommandLong> for Development
impl From<CommandLong> for Development
Source§fn from(value: CommandLong) -> Development
fn from(value: CommandLong) -> Development
Source§impl IntoPayload for CommandLong
impl IntoPayload for CommandLong
Source§impl MessageSpec for CommandLong
impl MessageSpec for CommandLong
Source§impl MessageSpecStatic for CommandLong
impl MessageSpecStatic for CommandLong
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 CommandLong
impl NamedType for CommandLong
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 CommandLong
impl PartialEq for CommandLong
Source§impl Serialize for CommandLong
impl Serialize for CommandLong
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 CommandLong
impl TryFrom<&Payload> for CommandLong
Source§impl Type for CommandLong
impl Type for CommandLong
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.