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,
}
paparazzi
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 more