Skip to Content
VectorLib

ImuDevice

vectorlib::ImuDevice — fields, methods, parameters and return types.


pub trait ImuDevice

A V5 inertial sensor, as seen by LemLib through PROS.

View source

Methods

Prop

Type

calibrate

fn calibrate(&mut self) -> LocalBoxFuture<'_, ()>

Calibrate the sensor and resolve once calibration has finished or failed.

Returns

LocalBoxFuture<'_, ()>

View source

heading

fn heading(&self) -> f64

imu_get_heading: degrees in [0, 360). PROS_ERR_F on error or while calibrating.

Returns

f64

View source

rotation

fn rotation(&self) -> f64

imu_get_rotation: unbounded degrees, clockwise positive. PROS_ERR_F on error.

Returns

f64

View source