pub struct ImuConfig {
pub update_rate_hz: f32,
pub enable_accel: bool,
pub enable_gyro: bool,
pub enable_mag: bool,
pub accel_range_g: Option<u8>,
pub gyro_range_dps: Option<u16>,
pub filter_cutoff_hz: Option<f32>,
pub calibration_file: Option<String>,
}Expand description
Common IMU configuration options
Fields§
§update_rate_hz: f32Update rate in Hz
enable_accel: boolEnable accelerometer
enable_gyro: boolEnable gyroscope
enable_mag: boolEnable magnetometer (if available)
accel_range_g: Option<u8>Accelerometer range in g (e.g., 2, 4, 8, 16)
gyro_range_dps: Option<u16>Gyroscope range in degrees/sec (e.g., 250, 500, 1000, 2000)
filter_cutoff_hz: Option<f32>Low-pass filter cutoff frequency (Hz)
calibration_file: Option<String>Path to calibration file
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ImuConfig
impl<'de> Deserialize<'de> for ImuConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ImuConfig
impl RefUnwindSafe for ImuConfig
impl Send for ImuConfig
impl Sync for ImuConfig
impl Unpin for ImuConfig
impl UnwindSafe for ImuConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more