pub struct ChangeOperatorControl {
pub target_system: u8,
pub control_request: u8,
pub version: u8,
pub passkey: [u8; 25],
}Expand description
MAVLink CHANGE_OPERATOR_CONTROL message.
Minimum supported MAVLink version is MAVLink 1.
§Description
Request to control this MAV
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
ChangeOperatorControl (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§target_system: u8MAVLink field target_system.
System the GCS requests control for
control_request: u8MAVLink field control_request.
0: request control of this MAV, 1: Release control of this MAV
version: u8MAVLink field version.
0: key as plaintext, 1-255: future, different hashing/encryption variants. The GCS should in general use the safest mode possible initially and then gradually move down the encryption level if it gets a NACK message indicating an encryption mismatch.
passkey: [u8; 25]MAVLink field passkey.
Password / Key, depending on version plaintext or encrypted. 25 or less characters, NULL terminated. The characters may involve A-Z, a-z, 0-9, and “!?,.-”
Implementations§
Source§impl ChangeOperatorControl
impl ChangeOperatorControl
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 ChangeOperatorControl
impl Clone for ChangeOperatorControl
Source§fn clone(&self) -> ChangeOperatorControl
fn clone(&self) -> ChangeOperatorControl
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChangeOperatorControl
impl Debug for ChangeOperatorControl
Source§impl Default for ChangeOperatorControl
impl Default for ChangeOperatorControl
Source§impl<'de> Deserialize<'de> for ChangeOperatorControl
impl<'de> Deserialize<'de> for ChangeOperatorControl
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<ChangeOperatorControl> for Common
impl From<ChangeOperatorControl> for Common
Source§fn from(value: ChangeOperatorControl) -> Self
fn from(value: ChangeOperatorControl) -> Self
Source§impl IntoPayload for ChangeOperatorControl
impl IntoPayload for ChangeOperatorControl
Source§impl MessageSpec for ChangeOperatorControl
impl MessageSpec for ChangeOperatorControl
Source§impl MessageSpecStatic for ChangeOperatorControl
impl MessageSpecStatic for ChangeOperatorControl
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 ChangeOperatorControl
impl NamedType for ChangeOperatorControl
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 ChangeOperatorControl
impl PartialEq for ChangeOperatorControl
Source§impl Serialize for ChangeOperatorControl
impl Serialize for ChangeOperatorControl
Source§impl TryFrom<&Payload> for ChangeOperatorControl
impl TryFrom<&Payload> for ChangeOperatorControl
Source§impl Type for ChangeOperatorControl
impl Type for ChangeOperatorControl
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.