pub struct CONTROL_STATUS_DATA {
pub sysid_in_control: u8,
pub flags: GcsControlStatusFlags,
}
Available on crate feature
development
only.Expand description
id: 512 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.
Fields§
§sysid_in_control: u8
System ID of GCS MAVLink component in control (0: no GCS in control).
flags: GcsControlStatusFlags
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 CONTROL_STATUS_DATA
impl CONTROL_STATUS_DATA
pub const ENCODED_LEN: usize = 2usize
pub const DEFAULT: Self
Trait Implementations§
Source§impl Clone for CONTROL_STATUS_DATA
impl Clone for CONTROL_STATUS_DATA
Source§fn clone(&self) -> CONTROL_STATUS_DATA
fn clone(&self) -> CONTROL_STATUS_DATA
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CONTROL_STATUS_DATA
impl Debug for CONTROL_STATUS_DATA
Source§impl Default for CONTROL_STATUS_DATA
impl Default for CONTROL_STATUS_DATA
Source§impl<'de> Deserialize<'de> for CONTROL_STATUS_DATA
impl<'de> Deserialize<'de> for CONTROL_STATUS_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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MessageData for CONTROL_STATUS_DATA
impl MessageData for CONTROL_STATUS_DATA
const ID: u32 = 512u32
const NAME: &'static str = "CONTROL_STATUS"
const EXTRA_CRC: u8 = 184u8
const ENCODED_LEN: usize = 2usize
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 CONTROL_STATUS_DATA
impl PartialEq for CONTROL_STATUS_DATA
Source§impl Serialize for CONTROL_STATUS_DATA
impl Serialize for CONTROL_STATUS_DATA
impl StructuralPartialEq for CONTROL_STATUS_DATA
Auto Trait Implementations§
impl Freeze for CONTROL_STATUS_DATA
impl RefUnwindSafe for CONTROL_STATUS_DATA
impl Send for CONTROL_STATUS_DATA
impl Sync for CONTROL_STATUS_DATA
impl Unpin for CONTROL_STATUS_DATA
impl UnwindSafe for CONTROL_STATUS_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
Mutably borrows from an owned value. Read more