pub struct IMU {
pub gyro: Vector3<f64>,
pub accel: Vector3<f64>,
}
Expand description
Fields§
§gyro: Vector3<f64>
Current rotation speed.
Yaw, pitch, roll in this order. Unit in degree per second (dps).
accel: Vector3<f64>
Current acceleration.
Implementations§
source§impl IMU
impl IMU
pub const SAMPLE_DURATION: f64 = 0.0050000000000000001f64
pub const SAMPLE_PER_SECOND: u32 = 200u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IMU
impl RefUnwindSafe for IMU
impl Send for IMU
impl Sync for IMU
impl Unpin for IMU
impl UnwindSafe for IMU
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more