pub struct MotionData {
pub timestamp: f64,
pub accel: XyzSample,
pub gyro: XyzSample,
pub mag: XyzSample,
}Expand description
9-DOF motion data from a single BLE notification.
The Hermes V1 packs accelerometer, gyroscope, and magnetometer readings
into one characteristic notification as 9 × i16 little-endian values.
Scaling factors applied:
- Accelerometer: 0.061 mg/LSB → g
- Gyroscope: 8.75 mdps/LSB → °/s
- Magnetometer: 0.14 mgauss/LSB → gauss
Fields§
§timestamp: f64Wall-clock timestamp in milliseconds since Unix epoch.
accel: XyzSampleAccelerometer reading in g.
gyro: XyzSampleGyroscope reading in degrees per second.
mag: XyzSampleMagnetometer reading in gauss.
Trait Implementations§
Source§impl Clone for MotionData
impl Clone for MotionData
Source§fn clone(&self) -> MotionData
fn clone(&self) -> MotionData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MotionData
impl RefUnwindSafe for MotionData
impl Send for MotionData
impl Sync for MotionData
impl Unpin for MotionData
impl UnsafeUnpin for MotionData
impl UnwindSafe for MotionData
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