Struct joycon_sys::imu::Frame
source · #[repr(packed(1))]pub struct Frame { /* private fields */ }
Implementations§
source§impl Frame
impl Frame
pub fn raw_ringcon(&self) -> u16
pub fn raw_accel(&self) -> Vector3<f64>
pub fn raw_gyro(&self) -> Vector3<f64>
sourcepub fn rotation_dps(&self, offset: Vector3<f64>, sens: GyroSens) -> Vector3<f64>
pub fn rotation_dps(&self, offset: Vector3<f64>, sens: GyroSens) -> Vector3<f64>
The rotation described in this frame. https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering/blob/master/imu_sensor_notes.md#gyroscope-calibrated---rotation-in-degreess---dps
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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