pub struct ActuatorControlTarget {
pub time_usec: u64,
pub group_mlx: u8,
pub controls: [f32; 8],
}Expand description
MAVLink 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
ActuatorControlTarget (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.
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 ActuatorControlTarget
impl ActuatorControlTarget
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 ActuatorControlTarget
impl Clone for ActuatorControlTarget
Source§fn clone(&self) -> ActuatorControlTarget
fn clone(&self) -> ActuatorControlTarget
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ActuatorControlTarget
impl Debug for ActuatorControlTarget
Source§impl Default for ActuatorControlTarget
impl Default for ActuatorControlTarget
Source§impl<'de> Deserialize<'de> for ActuatorControlTarget
impl<'de> Deserialize<'de> for ActuatorControlTarget
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<ActuatorControlTarget> for Common
impl From<ActuatorControlTarget> for Common
Source§fn from(value: ActuatorControlTarget) -> Self
fn from(value: ActuatorControlTarget) -> Self
Source§impl IntoPayload for ActuatorControlTarget
impl IntoPayload for ActuatorControlTarget
Source§impl MessageSpec for ActuatorControlTarget
impl MessageSpec for ActuatorControlTarget
Source§impl MessageSpecStatic for ActuatorControlTarget
impl MessageSpecStatic for ActuatorControlTarget
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 ActuatorControlTarget
impl NamedType for ActuatorControlTarget
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 ActuatorControlTarget
impl PartialEq for ActuatorControlTarget
Source§impl Serialize for ActuatorControlTarget
impl Serialize for ActuatorControlTarget
Source§impl TryFrom<&Payload> for ActuatorControlTarget
impl TryFrom<&Payload> for ActuatorControlTarget
Source§impl Type for ActuatorControlTarget
impl Type for ActuatorControlTarget
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.