pub struct TrajectoryRepresentationWaypoints {Show 14 fields
pub time_usec: u64,
pub valid_points: u8,
pub pos_x: [f32; 5],
pub pos_y: [f32; 5],
pub pos_z: [f32; 5],
pub vel_x: [f32; 5],
pub vel_y: [f32; 5],
pub vel_z: [f32; 5],
pub acc_x: [f32; 5],
pub acc_y: [f32; 5],
pub acc_z: [f32; 5],
pub pos_yaw: [f32; 5],
pub vel_yaw: [f32; 5],
pub command: [MavCmd; 5],
}Expand description
MAVLink TRAJECTORY_REPRESENTATION_WAYPOINTS message.
Minimum supported MAVLink version is MAVLink 2.
§Description
Describe a trajectory using an array of up-to 5 waypoints in the local frame (MAV_FRAME_LOCAL_NED).
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
TrajectoryRepresentationWaypoints (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.
valid_points: u8MAVLink field valid_points.
Number of valid points (up-to 5 waypoints are possible)
pos_x: [f32; 5]MAVLink field pos_x.
X-coordinate of waypoint, set to NaN if not being used
pos_y: [f32; 5]MAVLink field pos_y.
Y-coordinate of waypoint, set to NaN if not being used
pos_z: [f32; 5]MAVLink field pos_z.
Z-coordinate of waypoint, set to NaN if not being used
vel_x: [f32; 5]MAVLink field vel_x.
X-velocity of waypoint, set to NaN if not being used
vel_y: [f32; 5]MAVLink field vel_y.
Y-velocity of waypoint, set to NaN if not being used
vel_z: [f32; 5]MAVLink field vel_z.
Z-velocity of waypoint, set to NaN if not being used
acc_x: [f32; 5]MAVLink field acc_x.
X-acceleration of waypoint, set to NaN if not being used
acc_y: [f32; 5]MAVLink field acc_y.
Y-acceleration of waypoint, set to NaN if not being used
acc_z: [f32; 5]MAVLink field acc_z.
Z-acceleration of waypoint, set to NaN if not being used
pos_yaw: [f32; 5]MAVLink field pos_yaw.
Yaw angle, set to NaN if not being used
vel_yaw: [f32; 5]MAVLink field vel_yaw.
Yaw rate, set to NaN if not being used
command: [MavCmd; 5]MAVLink field command.
MAV_CMD command id of waypoint, set to UINT16_MAX if not being used.
Implementations§
Source§impl TrajectoryRepresentationWaypoints
impl TrajectoryRepresentationWaypoints
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 TrajectoryRepresentationWaypoints
impl Clone for TrajectoryRepresentationWaypoints
Source§fn clone(&self) -> TrajectoryRepresentationWaypoints
fn clone(&self) -> TrajectoryRepresentationWaypoints
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for TrajectoryRepresentationWaypoints
impl<'de> Deserialize<'de> for TrajectoryRepresentationWaypoints
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<TrajectoryRepresentationWaypoints> for All
impl From<TrajectoryRepresentationWaypoints> for All
Source§fn from(value: TrajectoryRepresentationWaypoints) -> Self
fn from(value: TrajectoryRepresentationWaypoints) -> Self
Source§impl MessageSpecStatic for TrajectoryRepresentationWaypoints
impl MessageSpecStatic for TrajectoryRepresentationWaypoints
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 TrajectoryRepresentationWaypoints
impl NamedType for TrajectoryRepresentationWaypoints
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 TrajectoryRepresentationWaypoints
impl PartialEq for TrajectoryRepresentationWaypoints
Source§fn eq(&self, other: &TrajectoryRepresentationWaypoints) -> bool
fn eq(&self, other: &TrajectoryRepresentationWaypoints) -> bool
self and other values to be equal, and is used by ==.Source§impl Type for TrajectoryRepresentationWaypoints
impl Type for TrajectoryRepresentationWaypoints
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.