pub struct SetActuatorControlTarget {
pub time_usec: u64,
pub group_mlx: u8,
pub target_system: u8,
pub target_component: u8,
pub controls: [f32; 8],
}Expand description
MAVLink SET_ACTUATOR_CONTROL_TARGET message.
The minimum supported MAVLink version is MAVLink 1.
§Description
Set the vehicle attitude and body angular rates.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
SetActuatorControlTarget (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§time_usec: u64MAVLink field time_usec.
Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number.
group_mlx: u8MAVLink field group_mlx.
Actuator group. The “_mlx” indicates this is a multi-instance message and a MAVLink parser should use this field to difference between instances.
target_system: u8MAVLink field target_system.
System ID
target_component: u8MAVLink field target_component.
Component ID
controls: [f32; 8]MAVLink field controls.
Actuator controls. Normed to -1..+1 where 0 is neutral position. Throttle for single rotation direction motors is 0..1, negative range for reverse direction. Standard mapping for attitude controls (group 0): (index 0-7): roll, pitch, yaw, throttle, flaps, spoilers, airbrakes, landing gear. Load a pass-through mixer to repurpose them as generic outputs.
Implementations§
Source§impl SetActuatorControlTarget
impl SetActuatorControlTarget
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 SetActuatorControlTarget
impl Clone for SetActuatorControlTarget
Source§fn clone(&self) -> SetActuatorControlTarget
fn clone(&self) -> SetActuatorControlTarget
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SetActuatorControlTarget
impl Debug for SetActuatorControlTarget
Source§impl Default for SetActuatorControlTarget
impl Default for SetActuatorControlTarget
Source§impl<'de> Deserialize<'de> for SetActuatorControlTarget
impl<'de> Deserialize<'de> for SetActuatorControlTarget
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<SetActuatorControlTarget> for Common
impl From<SetActuatorControlTarget> for Common
Source§fn from(value: SetActuatorControlTarget) -> Self
fn from(value: SetActuatorControlTarget) -> Self
Source§impl MessageSpecStatic for SetActuatorControlTarget
impl MessageSpecStatic for SetActuatorControlTarget
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 SetActuatorControlTarget
impl NamedType for SetActuatorControlTarget
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 SetActuatorControlTarget
impl PartialEq for SetActuatorControlTarget
Source§impl Serialize for SetActuatorControlTarget
impl Serialize for SetActuatorControlTarget
Source§impl TryFrom<&Payload> for SetActuatorControlTarget
impl TryFrom<&Payload> for SetActuatorControlTarget
Source§impl Type for SetActuatorControlTarget
impl Type for SetActuatorControlTarget
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.