pub struct VirtualStick {
pub vertical_control_mode: VirtualStickVerticalControlMode,
pub roll_pitch_control_mode: VirtualStickRollPitchControlMode,
pub yaw_control_mode: VirtualStickYawControlMode,
pub coordinate_system: VirtualStickFlightCoordinateSystem,
pub roll: f32,
pub pitch: f32,
pub yaw: f32,
pub throttle: f32,
}Fields§
§vertical_control_mode: VirtualStickVerticalControlMode§roll_pitch_control_mode: VirtualStickRollPitchControlMode§yaw_control_mode: VirtualStickYawControlMode§coordinate_system: VirtualStickFlightCoordinateSystem§roll: f32Aircraft Roll. left and right panning [-30, 30] degrees
pitch: f32Aircraft Pitch. forward or reverse [-30, 30] degrees.
yaw: f32Aircraft Yaw. left and right rotation [-180, 180] degrees
throttle: f32Aircraft throttle. Up or down [-5, 5]m/s
Trait Implementations§
Source§impl BinRead for VirtualStick
impl BinRead for VirtualStick
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>
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>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Debug for VirtualStick
impl Debug for VirtualStick
Source§impl ReadEndian for VirtualStick
impl ReadEndian for VirtualStick
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Auto Trait Implementations§
impl Freeze for VirtualStick
impl RefUnwindSafe for VirtualStick
impl Send for VirtualStick
impl Sync for VirtualStick
impl Unpin for VirtualStick
impl UnwindSafe for VirtualStick
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more