pub struct TargetAbsolute {Show 13 fields
pub timestamp: u64,
pub id: u8,
pub sensor_capabilities: TargetAbsoluteSensorCapabilityFlags,
pub lat: i32,
pub lon: i32,
pub alt: f32,
pub vel: [f32; 3],
pub acc: [f32; 3],
pub q_target: [f32; 4],
pub rates: [f32; 3],
pub position_std: [f32; 2],
pub vel_std: [f32; 3],
pub acc_std: [f32; 3],
}Expand description
MAVLink TARGET_ABSOLUTE message.
The minimum supported MAVLink version is MAVLink 2.
§Description
Current motion information from sensors on a target
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
TargetAbsolute (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§timestamp: u64MAVLink field timestamp.
Timestamp (UNIX epoch time).
id: u8MAVLink field id.
The ID of the target if multiple targets are present
sensor_capabilities: TargetAbsoluteSensorCapabilityFlagsMAVLink field sensor_capabilities.
Bitmap to indicate the sensor’s reporting capabilities
lat: i32MAVLink field lat.
Target’s latitude (WGS84)
lon: i32MAVLink field lon.
Target’s longitude (WGS84)
alt: f32MAVLink field alt.
Target’s altitude (AMSL)
vel: [f32; 3]MAVLink field vel.
Target’s velocity in its body frame
acc: [f32; 3]MAVLink field acc.
Linear target’s acceleration in its body frame
q_target: [f32; 4]MAVLink field q_target.
Quaternion of the target’s orientation from its body frame to the vehicle’s NED frame.
rates: [f32; 3]MAVLink field rates.
Target’s roll, pitch and yaw rates
position_std: [f32; 2]MAVLink field position_std.
Standard deviation of horizontal (eph) and vertical (epv) position errors
vel_std: [f32; 3]MAVLink field vel_std.
Standard deviation of the target’s velocity in its body frame
acc_std: [f32; 3]MAVLink field acc_std.
Standard deviation of the target’s acceleration in its body frame
Implementations§
Source§impl TargetAbsolute
impl TargetAbsolute
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 TargetAbsolute
impl Clone for TargetAbsolute
Source§fn clone(&self) -> TargetAbsolute
fn clone(&self) -> TargetAbsolute
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TargetAbsolute
impl Debug for TargetAbsolute
Source§impl Default for TargetAbsolute
impl Default for TargetAbsolute
Source§impl<'de> Deserialize<'de> for TargetAbsolute
impl<'de> Deserialize<'de> for TargetAbsolute
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<TargetAbsolute> for Development
impl From<TargetAbsolute> for Development
Source§fn from(value: TargetAbsolute) -> Self
fn from(value: TargetAbsolute) -> Self
Source§impl IntoPayload for TargetAbsolute
impl IntoPayload for TargetAbsolute
Source§impl MessageSpec for TargetAbsolute
impl MessageSpec for TargetAbsolute
Source§impl MessageSpecStatic for TargetAbsolute
impl MessageSpecStatic for TargetAbsolute
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 TargetAbsolute
impl NamedType for TargetAbsolute
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 TargetAbsolute
impl PartialEq for TargetAbsolute
Source§impl Serialize for TargetAbsolute
impl Serialize for TargetAbsolute
Source§impl TryFrom<&Payload> for TargetAbsolute
impl TryFrom<&Payload> for TargetAbsolute
Source§impl Type for TargetAbsolute
impl Type for TargetAbsolute
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.