pub struct FollowTarget {
pub timestamp: u64,
pub est_capabilities: u8,
pub lat: i32,
pub lon: i32,
pub alt: f32,
pub vel: [f32; 3],
pub acc: [f32; 3],
pub attitude_q: [f32; 4],
pub rates: [f32; 3],
pub position_cov: [f32; 3],
pub custom_state: u64,
}Expand description
MAVLink FOLLOW_TARGET message.
The minimum supported MAVLink version is MAVLink 1.
§Description
Current motion information from a designated system
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
FollowTarget (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§timestamp: u64MAVLink field timestamp.
Timestamp (time since system boot).
est_capabilities: u8MAVLink field est_capabilities.
bit positions for tracker reporting capabilities (POS = 0, VEL = 1, ACCEL = 2, ATT
- RATES = 3)
lat: i32MAVLink field lat.
Latitude (WGS84)
lon: i32MAVLink field lon.
Longitude (WGS84)
alt: f32MAVLink field alt.
Altitude (MSL)
vel: [f32; 3]MAVLink field vel.
target velocity (0,0,0) for unknown
acc: [f32; 3]MAVLink field acc.
linear target acceleration (0,0,0) for unknown
attitude_q: [f32; 4]MAVLink field attitude_q.
(0 0 0 0 for unknown)
rates: [f32; 3]MAVLink field rates.
(0 0 0 for unknown)
position_cov: [f32; 3]MAVLink field position_cov.
eph epv
custom_state: u64MAVLink field custom_state.
button states or switches of a tracker device
Implementations§
Source§impl FollowTarget
impl FollowTarget
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 FollowTarget
impl Clone for FollowTarget
Source§fn clone(&self) -> FollowTarget
fn clone(&self) -> FollowTarget
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FollowTarget
impl Debug for FollowTarget
Source§impl Default for FollowTarget
impl Default for FollowTarget
Source§fn default() -> FollowTarget
fn default() -> FollowTarget
Source§impl<'de> Deserialize<'de> for FollowTarget
impl<'de> Deserialize<'de> for FollowTarget
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FollowTarget, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FollowTarget, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Flatten for FollowTarget
Source§impl From<FollowTarget> for Common
impl From<FollowTarget> for Common
Source§fn from(value: FollowTarget) -> Common
fn from(value: FollowTarget) -> Common
Source§impl IntoPayload for FollowTarget
impl IntoPayload for FollowTarget
impl Message for FollowTarget
Source§impl MessageSpec for FollowTarget
impl MessageSpec for FollowTarget
Source§impl MessageSpecStatic for FollowTarget
impl MessageSpecStatic for FollowTarget
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 FollowTarget
impl NamedType for FollowTarget
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 FollowTarget
impl PartialEq for FollowTarget
Source§fn eq(&self, other: &FollowTarget) -> bool
fn eq(&self, other: &FollowTarget) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for FollowTarget
impl Serialize for FollowTarget
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,
impl StructuralPartialEq for FollowTarget
Source§impl TryFrom<&Payload> for FollowTarget
impl TryFrom<&Payload> for FollowTarget
Source§impl Type for FollowTarget
impl Type for FollowTarget
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.