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
Version(u8)
Activation
Fields of Activation
app_id: u32 | |
version: u32 |
Control(u8)
FlightControl
Fields of FlightControl
seq: u8 | |
mode: FlightControlMode |
SwitchResult(u8)
Movement
Fields of Movement
flag: u8 | |
x: f32 | |
y: f32 | |
z: f32 | |
yaw: f32 |
Arm(u8)
GimbalRate
Fields of GimbalRate
yaw: i16 | |
roll: i16 | |
pitch: i16 |
GimbalAngle
Fields of 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)
Methods
impl CommandArgs
[src]
fn version() -> CommandArgs
fn activation(app_id: u32, version: u32) -> CommandArgs
fn control(enable: bool) -> CommandArgs
fn flight_control(seq: u8, mode: FlightControlMode) -> CommandArgs
fn switch_result(seq_id: u8) -> CommandArgs
fn movement(flag: u8, x: f32, y: f32, z: f32, yaw: f32) -> CommandArgs
fn arm(enable: bool) -> CommandArgs
fn gimbal_rate(yaw: i16, roll: i16, pitch: i16) -> CommandArgs
fn gimbal_angle(yaw: i16, roll: i16, pitch: i16, duration: u8) -> CommandArgs
fn waypoint_init(data: WaypointInit) -> CommandArgs
fn waypoint_data(data: WaypointData) -> CommandArgs
fn waypoint_start(start: bool) -> CommandArgs
fn waypoint_pause(pause: bool) -> CommandArgs
fn waypoint_set_idle_speed(speed: f32) -> CommandArgs
fn waypoint_get_idle_speed() -> CommandArgs
fn take_photo() -> CommandArgs
fn start_video() -> CommandArgs
fn stop_video() -> CommandArgs
fn vrc_settings(enable: bool) -> CommandArgs
fn vrc_data(data: VirtualRcData) -> CommandArgs
fn name(&self) -> &'static str
Trait Implementations
impl Debug for CommandArgs
[src]
impl Copy for CommandArgs
[src]
impl Clone for CommandArgs
[src]
fn clone(&self) -> CommandArgs
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for CommandArgs
[src]
fn eq(&self, __arg_0: &CommandArgs) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CommandArgs) -> bool
This method tests for !=
.