[][src]Struct mavlink::common::HIL_SENSOR_DATA

pub struct HIL_SENSOR_DATA {
    pub time_usec: u64,
    pub xacc: f32,
    pub yacc: f32,
    pub zacc: f32,
    pub xgyro: f32,
    pub ygyro: f32,
    pub zgyro: f32,
    pub xmag: f32,
    pub ymag: f32,
    pub zmag: f32,
    pub abs_pressure: f32,
    pub diff_pressure: f32,
    pub pressure_alt: f32,
    pub temperature: f32,
    pub fields_updated: u32,
}

id: 107 The IMU readings in SI units in NED body frame.

Fields

time_usec: u64

Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number..

xacc: f32

X acceleration.

yacc: f32

Y acceleration.

zacc: f32

Z acceleration.

xgyro: f32

Angular speed around X axis in body frame.

ygyro: f32

Angular speed around Y axis in body frame.

zgyro: f32

Angular speed around Z axis in body frame.

xmag: f32

X Magnetic field.

ymag: f32

Y Magnetic field.

zmag: f32

Z Magnetic field.

abs_pressure: f32

Absolute pressure.

diff_pressure: f32

Differential pressure (airspeed).

pressure_alt: f32

Altitude calculated from pressure.

temperature: f32

Temperature.

fields_updated: u32

Bitmap for fields that have updated since last message, bit 0 = xacc, bit 12: temperature, bit 31: full reset of attitude/position/velocities/etc was performed in sim..

Implementations

impl HIL_SENSOR_DATA[src]

pub const ENCODED_LEN: usize[src]

pub fn deser(
    version: MavlinkVersion,
    _input: &[u8]
) -> Result<Self, ParserError>
[src]

pub fn ser(&self) -> Vec<u8>[src]

Trait Implementations

impl Clone for HIL_SENSOR_DATA[src]

impl Debug for HIL_SENSOR_DATA[src]

impl Default for HIL_SENSOR_DATA[src]

impl<'de> Deserialize<'de> for HIL_SENSOR_DATA[src]

impl PartialEq<HIL_SENSOR_DATA> for HIL_SENSOR_DATA[src]

impl Serialize for HIL_SENSOR_DATA[src]

impl StructuralPartialEq for HIL_SENSOR_DATA[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.