pub struct PositionTargetLocalNed {}Expand description
MAVLink POSITION_TARGET_LOCAL_NED message.
The minimum supported MAVLink version is MAVLink 1.
§Description
Reports the current commanded vehicle position, velocity, and acceleration as specified by the autopilot. This should match the commands sent in SET_POSITION_TARGET_LOCAL_NED if the vehicle is being controlled this way.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
PositionTargetLocalNed (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).
coordinate_frame: MavFrameMAVLink field coordinate_frame.
Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8, MAV_FRAME_BODY_OFFSET_NED = 9
type_mask: PositionTargetTypemaskMAVLink field type_mask.
Bitmap to indicate which dimensions should be ignored by the vehicle.
x: f32MAVLink field x.
X Position in NED frame
y: f32MAVLink field y.
Y Position in NED frame
z: f32MAVLink field z.
Z Position in NED frame (note, altitude is negative in NED)
vx: f32MAVLink field vx.
X velocity in NED frame
vy: f32MAVLink field vy.
Y velocity in NED frame
vz: f32MAVLink field vz.
Z velocity in NED frame
afx: f32MAVLink field afx.
X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
afy: f32MAVLink field afy.
Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
afz: f32MAVLink field afz.
Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
yaw: f32MAVLink field yaw.
yaw setpoint
yaw_rate: f32MAVLink field yaw_rate.
yaw rate setpoint
Implementations§
Source§impl PositionTargetLocalNed
impl PositionTargetLocalNed
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 PositionTargetLocalNed
impl Clone for PositionTargetLocalNed
Source§fn clone(&self) -> PositionTargetLocalNed
fn clone(&self) -> PositionTargetLocalNed
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PositionTargetLocalNed
impl Debug for PositionTargetLocalNed
Source§impl Default for PositionTargetLocalNed
impl Default for PositionTargetLocalNed
Source§impl<'de> Deserialize<'de> for PositionTargetLocalNed
impl<'de> Deserialize<'de> for PositionTargetLocalNed
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<PositionTargetLocalNed> for Common
impl From<PositionTargetLocalNed> for Common
Source§fn from(value: PositionTargetLocalNed) -> Self
fn from(value: PositionTargetLocalNed) -> Self
Source§impl IntoPayload for PositionTargetLocalNed
impl IntoPayload for PositionTargetLocalNed
Source§impl MessageSpec for PositionTargetLocalNed
impl MessageSpec for PositionTargetLocalNed
Source§impl MessageSpecStatic for PositionTargetLocalNed
impl MessageSpecStatic for PositionTargetLocalNed
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 PositionTargetLocalNed
impl NamedType for PositionTargetLocalNed
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 PositionTargetLocalNed
impl PartialEq for PositionTargetLocalNed
Source§impl Serialize for PositionTargetLocalNed
impl Serialize for PositionTargetLocalNed
Source§impl TryFrom<&Payload> for PositionTargetLocalNed
impl TryFrom<&Payload> for PositionTargetLocalNed
Source§impl Type for PositionTargetLocalNed
impl Type for PositionTargetLocalNed
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.