[][src]Struct mavlink::common::COMMAND_INT_DATA

pub struct COMMAND_INT_DATA {
    pub param1: f32,
    pub param2: f32,
    pub param3: f32,
    pub param4: f32,
    pub x: i32,
    pub y: i32,
    pub z: f32,
    pub command: MavCmd,
    pub target_system: u8,
    pub target_component: u8,
    pub frame: MavFrame,
    pub current: u8,
    pub autocontinue: u8,
}

id: 75 Message encoding a command with parameters as scaled integers. Scaling depends on the actual command value. The command microservice is documented at https://mavlink.io/en/services/command.html.

Fields

param1: f32

PARAM1, see MAV_CMD enum.

param2: f32

PARAM2, see MAV_CMD enum.

param3: f32

PARAM3, see MAV_CMD enum.

param4: f32

PARAM4, see MAV_CMD enum.

x: i32

PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7.

y: i32

PARAM6 / local: y position in meters * 1e4, global: longitude in degrees * 10^7.

z: f32

PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame)..

command: MavCmd

The scheduled action for the mission item..

target_system: u8

System ID.

target_component: u8

Component ID.

frame: MavFrame

The coordinate system of the COMMAND..

current: u8

false:0, true:1.

autocontinue: u8

autocontinue to next wp.

Implementations

impl COMMAND_INT_DATA[src]

pub const ENCODED_LEN: usize[src]

pub fn deser(
    version: MavlinkVersion,
    _input: &[u8]
) -> Result<Self, ParserError>
[src]

pub fn ser(&self) -> Vec<u8>[src]

Trait Implementations

impl Clone for COMMAND_INT_DATA[src]

impl Debug for COMMAND_INT_DATA[src]

impl Default for COMMAND_INT_DATA[src]

impl<'de> Deserialize<'de> for COMMAND_INT_DATA[src]

impl PartialEq<COMMAND_INT_DATA> for COMMAND_INT_DATA[src]

impl Serialize for COMMAND_INT_DATA[src]

impl StructuralPartialEq for COMMAND_INT_DATA[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.