pub struct WheelDistance {
pub time_usec: u64,
pub count: u8,
pub distance: [f64; 16],
}Expand description
MAVLink WHEEL_DISTANCE message.
The minimum supported MAVLink version is MAVLink 2.
§Description
Cumulative distance traveled for each reported wheel.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
WheelDistance (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§time_usec: u64MAVLink field time_usec.
Timestamp (synced to UNIX time or since system boot).
count: u8MAVLink field count.
Number of wheels reported.
distance: [f64; 16]MAVLink field distance.
Distance reported by individual wheel encoders. Forward rotations increase values, reverse rotations decrease them. Not all wheels will necessarily have wheel encoders; the mapping of encoders to wheel positions must be agreed/understood by the endpoints.
Implementations§
Source§impl WheelDistance
impl WheelDistance
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 WheelDistance
impl Clone for WheelDistance
Source§fn clone(&self) -> WheelDistance
fn clone(&self) -> WheelDistance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WheelDistance
impl Debug for WheelDistance
Source§impl Default for WheelDistance
impl Default for WheelDistance
Source§impl<'de> Deserialize<'de> for WheelDistance
impl<'de> Deserialize<'de> for WheelDistance
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<WheelDistance> for Common
impl From<WheelDistance> for Common
Source§fn from(value: WheelDistance) -> Self
fn from(value: WheelDistance) -> Self
Source§impl IntoPayload for WheelDistance
impl IntoPayload for WheelDistance
Source§impl MessageSpec for WheelDistance
impl MessageSpec for WheelDistance
Source§impl MessageSpecStatic for WheelDistance
impl MessageSpecStatic for WheelDistance
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 WheelDistance
impl NamedType for WheelDistance
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 WheelDistance
impl PartialEq for WheelDistance
Source§impl Serialize for WheelDistance
impl Serialize for WheelDistance
Source§impl TryFrom<&Payload> for WheelDistance
impl TryFrom<&Payload> for WheelDistance
Source§impl Type for WheelDistance
impl Type for WheelDistance
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.