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 more