pub struct Imu {Show 26 fields
pub device: Option<String>,
pub acc_len: Option<f64>,
pub acc_x: Option<f64>,
pub acc_y: Option<f64>,
pub acc_z: Option<f64>,
pub depth: Option<f64>,
pub dip: Option<f64>,
pub gyro_x: Option<f64>,
pub gyro_y: Option<f64>,
pub gyro_z: Option<f64>,
pub heading: Option<f64>,
pub mag_len: Option<f64>,
pub mag_x: Option<f64>,
pub mag_y: Option<f64>,
pub mag_z: Option<f64>,
pub mheading: Option<f64>,
pub msg: Option<String>,
pub pitch_st: Option<StatusCode>,
pub pitch: Option<f64>,
pub roll_st: Option<StatusCode>,
pub roll: Option<f64>,
pub temp: Option<f64>,
pub time: Option<DateTime<Utc>>,
pub time_tag: Option<String>,
pub yaw_st: Option<StatusCode>,
pub yaw: Option<f64>,
}Expand description
Inertial Measurement Unit data
Reports accelerometer and gyroscope readings. Currently a placeholder for future implementation. Reference: json_imu_read
Fields§
§device: Option<String>§acc_len: Option<f64>§acc_x: Option<f64>§acc_y: Option<f64>§acc_z: Option<f64>§depth: Option<f64>§dip: Option<f64>§gyro_x: Option<f64>§gyro_y: Option<f64>§gyro_z: Option<f64>§heading: Option<f64>§mag_len: Option<f64>§mag_x: Option<f64>§mag_y: Option<f64>§mag_z: Option<f64>§mheading: Option<f64>§msg: Option<String>§pitch_st: Option<StatusCode>§pitch: Option<f64>§roll_st: Option<StatusCode>§roll: Option<f64>§temp: Option<f64>§time: Option<DateTime<Utc>>§time_tag: Option<String>§yaw_st: Option<StatusCode>§yaw: Option<f64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Imu
impl<'de> Deserialize<'de> for Imu
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
impl StructuralPartialEq for Imu
Auto Trait Implementations§
impl Freeze for Imu
impl RefUnwindSafe for Imu
impl Send for Imu
impl Sync for Imu
impl Unpin for Imu
impl UnwindSafe for Imu
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