pub struct Fusion { /* private fields */ }Implementations§
Source§impl Fusion
impl Fusion
pub fn new(gravity: f64) -> Self
Sourcepub fn update_no_magnetometer(
&mut self,
dt: f64,
gyro: [f64; 3],
accel: [f64; 3],
)
pub fn update_no_magnetometer( &mut self, dt: f64, gyro: [f64; 3], accel: [f64; 3], )
Update the AHRS with new sensor data. gyroscope units are degrees/s accelerometer units are g
Sourcepub fn update_no_magnetometer_ros(
&mut self,
dt: f64,
gyro: [f64; 3],
accel: [f64; 3],
)
pub fn update_no_magnetometer_ros( &mut self, dt: f64, gyro: [f64; 3], accel: [f64; 3], )
Update the AHRS with new sensor data. gyroscope units are radians/s accelerometer units are m/s^2
Sourcepub fn get_quaternion(&self) -> [f64; 4]
pub fn get_quaternion(&self) -> [f64; 4]
Get orientation in world frame as a quaternion. The quaternion is in the form [w, x, y, z].
Sourcepub fn get_linear_acceleration(&self) -> [f64; 3]
pub fn get_linear_acceleration(&self) -> [f64; 3]
Get linear acceleration in sensor frame. The acceleration is in the form [x, y, z]. Units are g.
pub fn get_linear_acceleration_ros(&self) -> [f64; 3]
Trait Implementations§
impl Send for Fusion
impl Sync for Fusion
Auto Trait Implementations§
impl Freeze for Fusion
impl RefUnwindSafe for Fusion
impl Unpin for Fusion
impl UnwindSafe for Fusion
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