Struct tello::RCState[][src]

pub struct RCState { /* fields omitted */ }
Expand description

represent the current input to remote control the drone.

Implementations

set the rc-controller to the mode to hold down the key-combination to do an manual take_off.

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

stop moving left or right by setting the axis to 0.0

set a fixed value of -1.0 to the left right axis to fly to the left

set a fixed value of 1.0 to the left right axis to fly to the right

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

stop moving forward or back by setting the axis to 0.0

set a fixed value of -1.0 to the forward and back axis to fly back

set a fixed value of 1.0 to the forward and back axis to fly forward

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

stop moving up or down by setting the axis to 0.0

set a fixed value of -1.0 to the up and down axis to raise up

set a fixed value of 1.0 to the up and down axis to go down

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

stop turning by setting it to 0.0

set a fixed value of -1.0 to the turn axis to turn counter clock wise

set a fixed value of 1.0 to the forward and back axis to turn clock wise

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.