pub struct AttitudeTarget {
pub time_boot_ms: u32,
pub type_mask: AttitudeTargetTypemask,
pub q: [f32; 4],
pub body_roll_rate: f32,
pub body_pitch_rate: f32,
pub body_yaw_rate: f32,
pub thrust: f32,
}Expand description
MAVLink ATTITUDE_TARGET message.
The minimum supported MAVLink version is MAVLink 1.
§Description
Reports the current commanded attitude of the vehicle as specified by the autopilot. This should match the commands sent in a SET_ATTITUDE_TARGET message if the vehicle is being controlled this way.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
AttitudeTarget (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§time_boot_ms: u32MAVLink field time_boot_ms.
Timestamp (time since system boot).
type_mask: AttitudeTargetTypemaskMAVLink field type_mask.
Bitmap to indicate which dimensions should be ignored by the vehicle.
q: [f32; 4]MAVLink field q.
Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
body_roll_rate: f32MAVLink field body_roll_rate.
Body roll rate
body_pitch_rate: f32MAVLink field body_pitch_rate.
Body pitch rate
body_yaw_rate: f32MAVLink field body_yaw_rate.
Body yaw rate
thrust: f32MAVLink field thrust.
Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)
Implementations§
Source§impl AttitudeTarget
impl AttitudeTarget
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 AttitudeTarget
impl Clone for AttitudeTarget
Source§fn clone(&self) -> AttitudeTarget
fn clone(&self) -> AttitudeTarget
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AttitudeTarget
impl Debug for AttitudeTarget
Source§impl Default for AttitudeTarget
impl Default for AttitudeTarget
Source§fn default() -> AttitudeTarget
fn default() -> AttitudeTarget
Source§impl<'de> Deserialize<'de> for AttitudeTarget
impl<'de> Deserialize<'de> for AttitudeTarget
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AttitudeTarget, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AttitudeTarget, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<AttitudeTarget> for Common
impl From<AttitudeTarget> for Common
Source§fn from(value: AttitudeTarget) -> Common
fn from(value: AttitudeTarget) -> Common
Source§impl IntoPayload for AttitudeTarget
impl IntoPayload for AttitudeTarget
Source§impl MessageSpec for AttitudeTarget
impl MessageSpec for AttitudeTarget
Source§impl MessageSpecStatic for AttitudeTarget
impl MessageSpecStatic for AttitudeTarget
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 AttitudeTarget
impl NamedType for AttitudeTarget
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 AttitudeTarget
impl PartialEq for AttitudeTarget
Source§impl Serialize for AttitudeTarget
impl Serialize for AttitudeTarget
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 AttitudeTarget
impl TryFrom<&Payload> for AttitudeTarget
Source§impl Type for AttitudeTarget
impl Type for AttitudeTarget
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.