pub struct ManualControl {
pub x: i16,
pub y: i16,
pub z: i16,
pub r: i16,
pub buttons: u16,
pub target: u8,
}Expand description
MANUAL_CONTROL: a pilot’s stick and button input, normalized to a fixed range.
Fields§
§x: i16§y: i16§z: i16§r: i16§target: u8Implementations§
Trait Implementations§
Source§impl Clone for ManualControl
impl Clone for ManualControl
Source§fn clone(&self) -> ManualControl
fn clone(&self) -> ManualControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ManualControl
Source§impl Debug for ManualControl
impl Debug for ManualControl
Source§impl Default for ManualControl
impl Default for ManualControl
Source§impl Message for ManualControl
impl Message for ManualControl
Source§const NAME: &'static str = "MANUAL_CONTROL"
const NAME: &'static str = "MANUAL_CONTROL"
The message name, such as
"HEARTBEAT", as used to derive CRC_EXTRA.Source§const CRC_EXTRA: u8 = 243
const CRC_EXTRA: u8 = 243
The
CRC_EXTRA seed folded into the checksum of a frame carrying this message.Source§const BASE_FIELDS: &'static [(&'static str, &'static str, u8)]
const BASE_FIELDS: &'static [(&'static str, &'static str, u8)]
The base fields in wire order as
(type, name, array_len), the input from which
CRC_EXTRA is derived and against which it is verified.Source§const DESCRIPTOR: &'static MessageDescriptor<'static>
const DESCRIPTOR: &'static MessageDescriptor<'static>
The message’s shape as data: the runtime counterpart of this type’s fields, for a
caller reading and writing by name rather than through the struct.
Source§impl PartialEq for ManualControl
impl PartialEq for ManualControl
Source§fn eq(&self, other: &ManualControl) -> bool
fn eq(&self, other: &ManualControl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ManualControl
Auto Trait Implementations§
impl Freeze for ManualControl
impl RefUnwindSafe for ManualControl
impl Send for ManualControl
impl Sync for ManualControl
impl Unpin for ManualControl
impl UnsafeUnpin for ManualControl
impl UnwindSafe for ManualControl
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