RC

Struct RC 

Source
pub struct RC {
Show 22 fields pub aileron: u16, pub elevator: u16, pub throttle: u16, pub rudder: u16, pub gimbal: u16, pub wheel_btn_down: bool, pub wheel_offset: u8, pub wheel_polarity: u8, pub wheel_change: u8, pub transform_btn_reserve: u8, pub return_btn: bool, pub flight_mode_switch: FlightModeSwitch, pub transform_switch: u8, pub custom_function_btn4_down: bool, pub custom_function_btn3_down: bool, pub custom_function_btn2_down: bool, pub custom_function_btn1_down: bool, pub playback_btn_down: bool, pub shutter_btn_down: bool, pub record_btn_down: bool, pub bandwidth: u8, pub gimbal_control_enable: u8,
}

Fields§

§aileron: u16

right stick - horizontal

§elevator: u16

right stick - vertical

§throttle: u16

left stick - vertical

§rudder: u16

left stick - horizontal

§gimbal: u16§wheel_btn_down: bool§wheel_offset: u8§wheel_polarity: u8§wheel_change: u8§transform_btn_reserve: u8§return_btn: bool§flight_mode_switch: FlightModeSwitch§transform_switch: u8§custom_function_btn4_down: bool§custom_function_btn3_down: bool§custom_function_btn2_down: bool§custom_function_btn1_down: bool§playback_btn_down: bool§shutter_btn_down: bool§record_btn_down: bool§bandwidth: u8§gimbal_control_enable: u8

Trait Implementations§

Source§

impl BinRead for RC

Source§

type Args<'__binrw_generated_args_lifetime> = RCBinReadArgs

The type used for the args parameter of read_args() and read_options(). Read more
Source§

fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>

Read Self from the reader using the given Endian and arguments. Read more
Source§

fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek, Self: ReadEndian,

Read Self from the reader using the given arguments. Read more
Source§

fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming big-endian byte order, using the given arguments. Read more
Source§

fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming little-endian byte order, using the given arguments. Read more
Source§

fn read_ne_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read T from the reader, assuming native-endian byte order, using the given arguments. Read more
Source§

impl Debug for RC

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ReadEndian for RC

Source§

const ENDIAN: EndianKind

The endianness of the type.
Source§

impl Serialize for RC

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for RC

§

impl RefUnwindSafe for RC

§

impl Send for RC

§

impl Sync for RC

§

impl Unpin for RC

§

impl UnwindSafe for RC

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,