pub struct OrientationSample {
pub time: f64,
pub q: [f32; 4],
pub dip: f32,
pub field: f32,
pub mg: f32,
}Expand description
One compass orientation sample.
Fields§
§time: f64Time, seconds.
q: [f32; 4]Magnetic-frame orientation, [w, x, y, z].
dip: f32Magnetic dip, degrees.
field: f32Field magnitude, µT.
mg: f32Acceleration magnitude, mg.
Trait Implementations§
Source§impl Clone for OrientationSample
impl Clone for OrientationSample
Source§fn clone(&self) -> OrientationSample
fn clone(&self) -> OrientationSample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OrientationSample
Source§impl Debug for OrientationSample
impl Debug for OrientationSample
Source§impl PartialEq for OrientationSample
impl PartialEq for OrientationSample
impl StructuralPartialEq for OrientationSample
Auto Trait Implementations§
impl Freeze for OrientationSample
impl RefUnwindSafe for OrientationSample
impl Send for OrientationSample
impl Sync for OrientationSample
impl Unpin for OrientationSample
impl UnsafeUnpin for OrientationSample
impl UnwindSafe for OrientationSample
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