[−][src]Struct tello::RCState
represent the current input to remote control the drone.
Methods
impl RCState[src]
pub fn start_engines(&mut self)[src]
set the rc-controller to the mode to hold down the key-combination to do an manual take_off.
pub fn get_stick_parameter(&mut self) -> (f32, f32, f32, f32, bool)[src]
returns the current stick parameter to send them to the drone
Actually, this is an workaround to keep the start_engines in this struct and don't move them to the Drone it self
pub fn stop_left_right(&mut self)[src]
stop moving left or right by setting the axis to 0.0
pub fn go_left(&mut self)[src]
set a fixed value of -1.0 to the left right axis to fly to the left
pub fn go_right(&mut self)[src]
set a fixed value of 1.0 to the left right axis to fly to the right
pub fn go_left_right(&mut self, value: f32)[src]
set a analog value to the left right axis this value has to be between -1 and 1 (including), where -1 is left and 1 is right
pub fn stop_forward_back(&mut self)[src]
stop moving forward or back by setting the axis to 0.0
pub fn go_back(&mut self)[src]
set a fixed value of -1.0 to the forward and back axis to fly back
pub fn go_forward(&mut self)[src]
set a fixed value of 1.0 to the forward and back axis to fly forward
pub fn go_forward_back(&mut self, value: f32)[src]
set a analog value to the forward or back axis this value has to be between -1 and 1 (including), where -1 is back and 1 is forward
pub fn stop_up_down(&mut self)[src]
stop moving up or down by setting the axis to 0.0
pub fn go_down(&mut self)[src]
set a fixed value of -1.0 to the up and down axis to raise up
pub fn go_up(&mut self)[src]
set a fixed value of 1.0 to the up and down axis to go down
pub fn go_up_down(&mut self, value: f32)[src]
set a analog value to the up or down axis this value has to be between -1 and 1 (including), where -1 is going down and 1 is flying up
pub fn stop_turn(&mut self)[src]
stop turning by setting it to 0.0
pub fn go_ccw(&mut self)[src]
set a fixed value of -1.0 to the turn axis to turn counter clock wise
pub fn go_cw(&mut self)[src]
set a fixed value of 1.0 to the forward and back axis to turn clock wise
pub fn turn(&mut self, value: f32)[src]
Set a analog value to turn the drone This value has to be between -1 and 1 (including), where -1 is turning ccw and 1 is turning cw
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RCState
impl Send for RCState
impl Sync for RCState
impl Unpin for RCState
impl UnwindSafe for RCState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,