Struct mavlink::matrixpilot::ATTITUDE_QUATERNION_COV_DATA
source · pub struct ATTITUDE_QUATERNION_COV_DATA {
pub time_usec: u64,
pub q: [f32; 4],
pub rollspeed: f32,
pub pitchspeed: f32,
pub yawspeed: f32,
pub covariance: [f32; 9],
}
Available on crate feature
matrixpilot
only.Expand description
id: 61 The attitude in the aeronautical frame (right-handed, Z-down, X-front, Y-right), expressed as quaternion. Quaternion order is w, x, y, z and a zero rotation would be expressed as (1 0 0 0)..
Fields§
§time_usec: u64
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..
q: [f32; 4]
Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation).
rollspeed: f32
Roll angular speed.
pitchspeed: f32
Pitch angular speed.
yawspeed: f32
Yaw angular speed.
covariance: [f32; 9]
Row-major representation of a 3x3 attitude covariance matrix (states: roll, pitch, yaw; first three entries are the first ROW, next three entries are the second row, etc.). If unknown, assign NaN value to first element in the array..
Implementations§
source§impl ATTITUDE_QUATERNION_COV_DATA
impl ATTITUDE_QUATERNION_COV_DATA
pub const ENCODED_LEN: usize = 72usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for ATTITUDE_QUATERNION_COV_DATA
impl Clone for ATTITUDE_QUATERNION_COV_DATA
source§fn clone(&self) -> ATTITUDE_QUATERNION_COV_DATA
fn clone(&self) -> ATTITUDE_QUATERNION_COV_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 Debug for ATTITUDE_QUATERNION_COV_DATA
impl Debug for ATTITUDE_QUATERNION_COV_DATA
source§impl<'de> Deserialize<'de> for ATTITUDE_QUATERNION_COV_DATA
impl<'de> Deserialize<'de> for ATTITUDE_QUATERNION_COV_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 ATTITUDE_QUATERNION_COV_DATA
impl MessageData for ATTITUDE_QUATERNION_COV_DATA
const ID: u32 = 61u32
const NAME: &'static str = "ATTITUDE_QUATERNION_COV"
const EXTRA_CRC: u8 = 167u8
const ENCODED_LEN: usize = 72usize
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 ATTITUDE_QUATERNION_COV_DATA
impl PartialEq for ATTITUDE_QUATERNION_COV_DATA
source§fn eq(&self, other: &ATTITUDE_QUATERNION_COV_DATA) -> bool
fn eq(&self, other: &ATTITUDE_QUATERNION_COV_DATA) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ATTITUDE_QUATERNION_COV_DATA
Auto Trait Implementations§
impl Freeze for ATTITUDE_QUATERNION_COV_DATA
impl RefUnwindSafe for ATTITUDE_QUATERNION_COV_DATA
impl Send for ATTITUDE_QUATERNION_COV_DATA
impl Sync for ATTITUDE_QUATERNION_COV_DATA
impl Unpin for ATTITUDE_QUATERNION_COV_DATA
impl UnwindSafe for ATTITUDE_QUATERNION_COV_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
)