pub struct GimbalManagerSetManualControl {
pub target_system: u8,
pub target_component: u8,
pub flags: GimbalManagerFlags,
pub gimbal_device_id: u8,
pub pitch: f32,
pub yaw: f32,
pub pitch_rate: f32,
pub yaw_rate: f32,
}Expand description
MAVLink GIMBAL_MANAGER_SET_MANUAL_CONTROL message.
The minimum supported MAVLink version is MAVLink 2.
§Description
High level message to control a gimbal manually. The angles or angular rates are unitless; the actual rates will depend on internal gimbal manager settings/configuration (e.g. set by parameters). This message is to be sent to the gimbal manager (e.g. from a ground station). Angles and rates can be set to NaN according to use case.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
GimbalManagerSetManualControl (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§target_system: u8MAVLink field target_system.
System ID
target_component: u8MAVLink field target_component.
Component ID
flags: GimbalManagerFlagsMAVLink field flags.
High level gimbal manager flags.
gimbal_device_id: u8MAVLink field gimbal_device_id.
Component ID of gimbal device to address (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device components. Send command multiple times for more than one gimbal (but not all gimbals).
pitch: f32MAVLink field pitch.
Pitch angle unitless (-1..1, positive: up, negative: down, NaN to be ignored).
yaw: f32MAVLink field yaw.
Yaw angle unitless (-1..1, positive: to the right, negative: to the left, NaN to be ignored).
pitch_rate: f32MAVLink field pitch_rate.
Pitch angular rate unitless (-1..1, positive: up, negative: down, NaN to be ignored).
yaw_rate: f32MAVLink field yaw_rate.
Yaw angular rate unitless (-1..1, positive: to the right, negative: to the left, NaN to be ignored).
Implementations§
Source§impl GimbalManagerSetManualControl
impl GimbalManagerSetManualControl
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> u32
pub const fn message_id() -> u32
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 GimbalManagerSetManualControl
impl Clone for GimbalManagerSetManualControl
Source§fn clone(&self) -> GimbalManagerSetManualControl
fn clone(&self) -> GimbalManagerSetManualControl
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GimbalManagerSetManualControl
impl Default for GimbalManagerSetManualControl
Source§fn default() -> GimbalManagerSetManualControl
fn default() -> GimbalManagerSetManualControl
Source§impl<'de> Deserialize<'de> for GimbalManagerSetManualControl
impl<'de> Deserialize<'de> for GimbalManagerSetManualControl
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GimbalManagerSetManualControl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GimbalManagerSetManualControl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<GimbalManagerSetManualControl> for Common
impl From<GimbalManagerSetManualControl> for Common
Source§fn from(value: GimbalManagerSetManualControl) -> Common
fn from(value: GimbalManagerSetManualControl) -> Common
Source§impl MessageSpecStatic for GimbalManagerSetManualControl
impl MessageSpecStatic for GimbalManagerSetManualControl
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> u32
fn message_id() -> u32
ID.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for GimbalManagerSetManualControl
impl NamedType for GimbalManagerSetManualControl
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 GimbalManagerSetManualControl
impl PartialEq for GimbalManagerSetManualControl
Source§fn eq(&self, other: &GimbalManagerSetManualControl) -> bool
fn eq(&self, other: &GimbalManagerSetManualControl) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for GimbalManagerSetManualControl
impl Serialize for GimbalManagerSetManualControl
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl TryFrom<&Payload> for GimbalManagerSetManualControl
impl TryFrom<&Payload> for GimbalManagerSetManualControl
Source§impl Type for GimbalManagerSetManualControl
impl Type for GimbalManagerSetManualControl
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.