Struct mavlink::common::COMMAND_LONG_DATA
source · pub struct COMMAND_LONG_DATA {
pub param1: f32,
pub param2: f32,
pub param3: f32,
pub param4: f32,
pub param5: f32,
pub param6: f32,
pub param7: f32,
pub command: MavCmd,
pub target_system: u8,
pub target_component: u8,
pub confirmation: u8,
}
common
only.Expand description
id: 76 Send a command with up to seven parameters to the MAV. COMMAND_INT is generally preferred when sending MAV_CMD commands where param 5 and param 6 contain latitude/longitude data, as sending these in floats can result in a significant loss of precision. COMMAND_LONG is required for commands that mandate float values in params 5 and 6. The command microservice is documented at https://mavlink.io/en/services/command.html.
Fields§
§param1: f32
Parameter 1 (for the specific command)..
param2: f32
Parameter 2 (for the specific command)..
param3: f32
Parameter 3 (for the specific command)..
param4: f32
Parameter 4 (for the specific command)..
param5: f32
Parameter 5 (for the specific command)..
param6: f32
Parameter 6 (for the specific command)..
param7: f32
Parameter 7 (for the specific command)..
command: MavCmd
Command ID (of command to send)..
target_system: u8
System which should execute the command.
target_component: u8
Component which should execute the command, 0 for all components.
confirmation: u8
0: First transmission of this command. 1-255: Confirmation transmissions (e.g. for kill command).
Implementations§
source§impl COMMAND_LONG_DATA
impl COMMAND_LONG_DATA
pub const ENCODED_LEN: usize = 33usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for COMMAND_LONG_DATA
impl Clone for COMMAND_LONG_DATA
source§fn clone(&self) -> COMMAND_LONG_DATA
fn clone(&self) -> COMMAND_LONG_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_LONG_DATA
impl Debug for COMMAND_LONG_DATA
source§impl Default for COMMAND_LONG_DATA
impl Default for COMMAND_LONG_DATA
source§impl<'de> Deserialize<'de> for COMMAND_LONG_DATA
impl<'de> Deserialize<'de> for COMMAND_LONG_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_LONG_DATA
impl MessageData for COMMAND_LONG_DATA
const ID: u32 = 76u32
const NAME: &'static str = "COMMAND_LONG"
const EXTRA_CRC: u8 = 152u8
const ENCODED_LEN: usize = 33usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for COMMAND_LONG_DATA
impl PartialEq for COMMAND_LONG_DATA
source§impl Serialize for COMMAND_LONG_DATA
impl Serialize for COMMAND_LONG_DATA
impl StructuralPartialEq for COMMAND_LONG_DATA
Auto Trait Implementations§
impl Freeze for COMMAND_LONG_DATA
impl RefUnwindSafe for COMMAND_LONG_DATA
impl Send for COMMAND_LONG_DATA
impl Sync for COMMAND_LONG_DATA
impl Unpin for COMMAND_LONG_DATA
impl UnwindSafe for COMMAND_LONG_DATA
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)