pub struct SetMode {
pub custom_mode: u32,
pub target_system: u8,
pub base_mode: u8,
}Expand description
SET_MODE: requests the vehicle switch base and custom flight modes.
Fields§
§custom_mode: u32§target_system: u8§base_mode: u8Implementations§
Trait Implementations§
impl Copy for SetMode
Source§impl Message for SetMode
impl Message for SetMode
Source§const NAME: &'static str = "SET_MODE"
const NAME: &'static str = "SET_MODE"
The message name, such as
"HEARTBEAT", as used to derive CRC_EXTRA.Source§const CRC_EXTRA: u8 = 89
const CRC_EXTRA: u8 = 89
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.
impl StructuralPartialEq for SetMode
Auto Trait Implementations§
impl Freeze for SetMode
impl RefUnwindSafe for SetMode
impl Send for SetMode
impl Sync for SetMode
impl Unpin for SetMode
impl UnsafeUnpin for SetMode
impl UnwindSafe for SetMode
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