Struct mavlink::common::VISION_POSITION_ESTIMATE_DATA
source · pub struct VISION_POSITION_ESTIMATE_DATA {
pub usec: u64,
pub x: f32,
pub y: f32,
pub z: f32,
pub roll: f32,
pub pitch: f32,
pub yaw: f32,
pub covariance: [f32; 21],
pub reset_counter: u8,
}
Available on crate feature
common
only.Expand description
id: 102 Local position/attitude estimate from a vision source..
Fields§
§usec: u64
Timestamp (UNIX time or time since system boot).
x: f32
Local X position.
y: f32
Local Y position.
z: f32
Local Z position.
roll: f32
Roll angle.
pitch: f32
Pitch angle.
yaw: f32
Yaw angle.
covariance: [f32; 21]
Row-major representation of pose 6x6 cross-covariance matrix upper right triangle (states: x, y, z, roll, pitch, yaw; first six entries are the first ROW, next five entries are the second ROW, etc.). If unknown, assign NaN value to first element in the array..
reset_counter: u8
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 VISION_POSITION_ESTIMATE_DATA
impl VISION_POSITION_ESTIMATE_DATA
pub const ENCODED_LEN: usize = 117usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for VISION_POSITION_ESTIMATE_DATA
impl Clone for VISION_POSITION_ESTIMATE_DATA
source§fn clone(&self) -> VISION_POSITION_ESTIMATE_DATA
fn clone(&self) -> VISION_POSITION_ESTIMATE_DATA
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for VISION_POSITION_ESTIMATE_DATA
impl<'de> Deserialize<'de> for VISION_POSITION_ESTIMATE_DATA
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MessageData for VISION_POSITION_ESTIMATE_DATA
impl MessageData for VISION_POSITION_ESTIMATE_DATA
const ID: u32 = 102u32
const NAME: &'static str = "VISION_POSITION_ESTIMATE"
const EXTRA_CRC: u8 = 158u8
const ENCODED_LEN: usize = 117usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for VISION_POSITION_ESTIMATE_DATA
impl PartialEq for VISION_POSITION_ESTIMATE_DATA
source§fn eq(&self, other: &VISION_POSITION_ESTIMATE_DATA) -> bool
fn eq(&self, other: &VISION_POSITION_ESTIMATE_DATA) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for VISION_POSITION_ESTIMATE_DATA
Auto Trait Implementations§
impl Freeze for VISION_POSITION_ESTIMATE_DATA
impl RefUnwindSafe for VISION_POSITION_ESTIMATE_DATA
impl Send for VISION_POSITION_ESTIMATE_DATA
impl Sync for VISION_POSITION_ESTIMATE_DATA
impl Unpin for VISION_POSITION_ESTIMATE_DATA
impl UnwindSafe for VISION_POSITION_ESTIMATE_DATA
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)