pub struct ControlStatus {
pub sysid_in_control: u8,
pub flags: GcsControlStatusFlags,
}Expand description
MAVLink CONTROL_STATUS message.
Minimum supported MAVLink version is MAVLink 2.
§Description
Information about GCS in control of this MAV. This should be broadcast at low rate (nominally 1 Hz) and emitted when ownership or takeover status change. Control over MAV is requested using MAV_CMD_REQUEST_OPERATOR_CONTROL.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
ControlStatus (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§sysid_in_control: u8MAVLink field sysid_in_control.
System ID of GCS MAVLink component in control (0: no GCS in control).
flags: GcsControlStatusFlagsMAVLink field flags.
Control status. For example, whether takeover is allowed, and whether this message instance defines the default controlling GCS for the whole system.
Implementations§
Source§impl ControlStatus
impl ControlStatus
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> MessageId
pub const fn message_id() -> MessageId
Message ID.
Sourcepub const fn min_supported_mavlink_version() -> MavLinkVersion
pub const fn min_supported_mavlink_version() -> MavLinkVersion
Minimum supported MAVLink version for this message.
Trait Implementations§
Source§impl Clone for ControlStatus
impl Clone for ControlStatus
Source§fn clone(&self) -> ControlStatus
fn clone(&self) -> ControlStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ControlStatus
impl Debug for ControlStatus
Source§impl Default for ControlStatus
impl Default for ControlStatus
Source§impl<'de> Deserialize<'de> for ControlStatus
impl<'de> Deserialize<'de> for ControlStatus
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 From<ControlStatus> for Development
impl From<ControlStatus> for Development
Source§fn from(value: ControlStatus) -> Self
fn from(value: ControlStatus) -> Self
Source§impl IntoPayload for ControlStatus
impl IntoPayload for ControlStatus
Source§impl MessageSpec for ControlStatus
impl MessageSpec for ControlStatus
Source§impl MessageSpecStatic for ControlStatus
impl MessageSpecStatic for ControlStatus
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> MessageId
fn message_id() -> MessageId
ID.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for ControlStatus
impl NamedType for ControlStatus
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl PartialEq for ControlStatus
impl PartialEq for ControlStatus
Source§impl Serialize for ControlStatus
impl Serialize for ControlStatus
Source§impl TryFrom<&Payload> for ControlStatus
impl TryFrom<&Payload> for ControlStatus
Source§impl Type for ControlStatus
impl Type for ControlStatus
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition will be put into the type map.