Enum open_protocol::types::CommandArgs [] [src]

pub enum CommandArgs {
    Version(u8),
    Activation {
        app_id: u32,
        version: u32,
    },
    Control(u8),
    FlightControl {
        seq: u8,
        mode: FlightControlMode,
    },
    SwitchResult(u8),
    Movement {
        flag: u8,
        x: f32,
        y: f32,
        z: f32,
        yaw: f32,
    },
    Arm(u8),
    GimbalRate {
        yaw: i16,
        roll: i16,
        pitch: i16,
    },
    GimbalAngle {
        yaw: i16,
        roll: i16,
        pitch: i16,
        mode: u8,
        duration: u8,
    },
    WaypointInit(WaypointInit),
    WaypointData(WaypointData),
    WaypointStart(u8),
    WaypointPause(u8),
    WaypointSetIdleSpeed(f32),
    WaypointGetIdleSpeed(u8),
    TakePhoto(u8),
    StartVideo(u8),
    StopVideo(u8),
    VRCSettings(u8),
    VRCData(VirtualRcData),
}

Variants

Fields of Activation

Fields of FlightControl

Fields of Movement

Fields of GimbalRate

Fields of GimbalAngle

Methods

impl CommandArgs
[src]

Trait Implementations

impl Debug for CommandArgs
[src]

Formats the value using the given formatter.

impl Copy for CommandArgs
[src]

impl Clone for CommandArgs
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for CommandArgs
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl IntoBytes for CommandArgs
[src]