pub struct VisionSpeedEstimate {
pub usec: u64,
pub x: f32,
pub y: f32,
pub z: f32,
pub covariance: [f32; 9],
pub reset_counter: u8,
}Expand description
MAVLink VISION_SPEED_ESTIMATE message.
The minimum supported MAVLink version is MAVLink 1.
§Description
Speed estimate from a vision source.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
VisionSpeedEstimate (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§usec: u64MAVLink field usec.
Timestamp (UNIX time or time since system boot)
x: f32MAVLink field x.
Global X speed
y: f32MAVLink field y.
Global Y speed
z: f32MAVLink field z.
Global Z speed
covariance: [f32; 9]MAVLink field covariance.
Row-major representation of 3x3 linear velocity covariance matrix (states: vx, vy, vz; 1st three entries - 1st row, etc.). If unknown, assign NaN value to first element in the array.
reset_counter: u8MAVLink field reset_counter.
Estimate reset counter. This should be incremented when the estimate resets in any of the dimensions (position, velocity, attitude, angular speed). This is designed to be used when e.g an external SLAM system detects a loop-closure and the estimate jumps.
Implementations§
Source§impl VisionSpeedEstimate
impl VisionSpeedEstimate
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 VisionSpeedEstimate
impl Clone for VisionSpeedEstimate
Source§fn clone(&self) -> VisionSpeedEstimate
fn clone(&self) -> VisionSpeedEstimate
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 VisionSpeedEstimate
impl Debug for VisionSpeedEstimate
Source§impl Default for VisionSpeedEstimate
impl Default for VisionSpeedEstimate
Source§fn default() -> VisionSpeedEstimate
fn default() -> VisionSpeedEstimate
Source§impl<'de> Deserialize<'de> for VisionSpeedEstimate
impl<'de> Deserialize<'de> for VisionSpeedEstimate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VisionSpeedEstimate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VisionSpeedEstimate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Flatten for VisionSpeedEstimate
Source§impl From<VisionSpeedEstimate> for Common
impl From<VisionSpeedEstimate> for Common
Source§fn from(value: VisionSpeedEstimate) -> Common
fn from(value: VisionSpeedEstimate) -> Common
Source§impl IntoPayload for VisionSpeedEstimate
impl IntoPayload for VisionSpeedEstimate
impl Message for VisionSpeedEstimate
Source§impl MessageSpec for VisionSpeedEstimate
impl MessageSpec for VisionSpeedEstimate
Source§impl MessageSpecStatic for VisionSpeedEstimate
impl MessageSpecStatic for VisionSpeedEstimate
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 VisionSpeedEstimate
impl NamedType for VisionSpeedEstimate
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 VisionSpeedEstimate
impl PartialEq for VisionSpeedEstimate
Source§fn eq(&self, other: &VisionSpeedEstimate) -> bool
fn eq(&self, other: &VisionSpeedEstimate) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for VisionSpeedEstimate
impl Serialize for VisionSpeedEstimate
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 VisionSpeedEstimate
Source§impl TryFrom<&Payload> for VisionSpeedEstimate
impl TryFrom<&Payload> for VisionSpeedEstimate
Source§impl Type for VisionSpeedEstimate
impl Type for VisionSpeedEstimate
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.