pub struct TiltEstimates {
pub accel_avg: Tilt,
pub accel_instant: Tilt,
pub gyro_instant: Tilt,
pub accel_corrected_gyro: Tilt,
}Expand description
Represents current estimates on the tilt status of a controller
Fields§
§accel_avg: TiltEstimated only using the accelerometer average
accel_instant: TiltEstimated only using last accelerometer reading
gyro_instant: TiltEstimated only using last gyro reading
accel_corrected_gyro: TiltEstimated tilt using gyro+accelerometer fusion
Trait Implementations§
Source§impl Clone for TiltEstimates
impl Clone for TiltEstimates
Source§fn clone(&self) -> TiltEstimates
fn clone(&self) -> TiltEstimates
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 TiltEstimates
Source§impl Debug for TiltEstimates
impl Debug for TiltEstimates
Source§impl Default for TiltEstimates
impl Default for TiltEstimates
Source§fn default() -> TiltEstimates
fn default() -> TiltEstimates
Returns the “default value” for a type. Read more
Source§impl PartialEq for TiltEstimates
impl PartialEq for TiltEstimates
Source§fn eq(&self, other: &TiltEstimates) -> bool
fn eq(&self, other: &TiltEstimates) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TiltEstimates
Auto Trait Implementations§
impl Freeze for TiltEstimates
impl RefUnwindSafe for TiltEstimates
impl Send for TiltEstimates
impl Sync for TiltEstimates
impl Unpin for TiltEstimates
impl UnsafeUnpin for TiltEstimates
impl UnwindSafe for TiltEstimates
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