Struct mavlink::development::AVAILABLE_MODES_DATA
source · pub struct AVAILABLE_MODES_DATA {
pub custom_mode: u32,
pub number_modes: u8,
pub mode_index: u8,
pub standard_mode: MavStandardMode,
pub base_mode: MavModeFlag,
pub mode_name: [u8; 50],
}
development
only.Expand description
id: 435 Get information about a particular flight modes. The message can be enumerated or requested for a particular mode using MAV_CMD_REQUEST_MESSAGE. Specify 0 in param2 to request that the message is emitted for all available modes or the specific index for just one mode. The modes must be available/settable for the current vehicle/frame type. Each modes should only be emitted once (even if it is both standard and custom)..
Fields§
§custom_mode: u32
A bitfield for use for autopilot-specific flags.
number_modes: u8
The total number of available modes for the current vehicle type..
mode_index: u8
The current mode index within number_modes, indexed from 1..
standard_mode: MavStandardMode
Standard mode..
base_mode: MavModeFlag
System mode bitmap..
mode_name: [u8; 50]
Name of custom mode, with null termination character. Should be omitted for standard modes..
Implementations§
source§impl AVAILABLE_MODES_DATA
impl AVAILABLE_MODES_DATA
pub const ENCODED_LEN: usize = 58usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for AVAILABLE_MODES_DATA
impl Clone for AVAILABLE_MODES_DATA
source§fn clone(&self) -> AVAILABLE_MODES_DATA
fn clone(&self) -> AVAILABLE_MODES_DATA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AVAILABLE_MODES_DATA
impl Debug for AVAILABLE_MODES_DATA
source§impl Default for AVAILABLE_MODES_DATA
impl Default for AVAILABLE_MODES_DATA
source§impl<'de> Deserialize<'de> for AVAILABLE_MODES_DATA
impl<'de> Deserialize<'de> for AVAILABLE_MODES_DATA
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl MessageData for AVAILABLE_MODES_DATA
impl MessageData for AVAILABLE_MODES_DATA
const ID: u32 = 435u32
const NAME: &'static str = "AVAILABLE_MODES"
const EXTRA_CRC: u8 = 94u8
const ENCODED_LEN: usize = 58usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for AVAILABLE_MODES_DATA
impl PartialEq for AVAILABLE_MODES_DATA
source§impl Serialize for AVAILABLE_MODES_DATA
impl Serialize for AVAILABLE_MODES_DATA
impl StructuralPartialEq for AVAILABLE_MODES_DATA
Auto Trait Implementations§
impl Freeze for AVAILABLE_MODES_DATA
impl RefUnwindSafe for AVAILABLE_MODES_DATA
impl Send for AVAILABLE_MODES_DATA
impl Sync for AVAILABLE_MODES_DATA
impl Unpin for AVAILABLE_MODES_DATA
impl UnwindSafe for AVAILABLE_MODES_DATA
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)