ImuDevice
vectorlib::ImuDevice — fields, methods, parameters and return types.
pub trait ImuDeviceA V5 inertial sensor, as seen by LemLib through PROS.
Methods
Prop
Type
calibrate
fn calibrate(&mut self) -> LocalBoxFuture<'_, ()>Calibrate the sensor and resolve once calibration has finished or failed.
Returns
LocalBoxFuture<'_, ()>heading
fn heading(&self) -> f64imu_get_heading: degrees in [0, 360). PROS_ERR_F on error or while calibrating.
Returns
f64rotation
fn rotation(&self) -> f64imu_get_rotation: unbounded degrees, clockwise positive. PROS_ERR_F on error.
Returns
f64