pub struct HilSensor {Show 16 fields
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: HilSensorUpdatedFlags,
pub id: u8,
}Expand description
MAVLink HIL_SENSOR message.
The minimum supported MAVLink version is MAVLink 1.
§Description
The IMU readings in SI units in NED body frame
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
HilSensor (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§time_usec: u64MAVLink field time_usec.
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: f32MAVLink field xacc.
X acceleration
yacc: f32MAVLink field yacc.
Y acceleration
zacc: f32MAVLink field zacc.
Z acceleration
xgyro: f32MAVLink field xgyro.
Angular speed around X axis in body frame
ygyro: f32MAVLink field ygyro.
Angular speed around Y axis in body frame
zgyro: f32MAVLink field zgyro.
Angular speed around Z axis in body frame
xmag: f32MAVLink field xmag.
X Magnetic field
ymag: f32MAVLink field ymag.
Y Magnetic field
zmag: f32MAVLink field zmag.
Z Magnetic field
abs_pressure: f32MAVLink field abs_pressure.
Absolute pressure
diff_pressure: f32MAVLink field diff_pressure.
Differential pressure (airspeed)
pressure_alt: f32MAVLink field pressure_alt.
Altitude calculated from pressure
temperature: f32MAVLink field temperature.
Temperature
fields_updated: HilSensorUpdatedFlagsMAVLink field fields_updated.
Bitmap for fields that have updated since last message
id: u8MAVLink field id.
Sensor ID (zero indexed). Used for multiple sensor inputs
Implementations§
Source§impl HilSensor
impl HilSensor
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> u32
pub const fn message_id() -> u32
Message ID.
Sourcepub const fn min_supported_mavlink_version() -> MavLinkVersion
pub const fn min_supported_mavlink_version() -> MavLinkVersion
Minimum supported MAVLink version for this message.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HilSensor
impl<'de> Deserialize<'de> for HilSensor
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HilSensor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HilSensor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl IntoPayload for HilSensor
impl IntoPayload for HilSensor
Source§impl MessageSpec for HilSensor
impl MessageSpec for HilSensor
Source§impl MessageSpecStatic for HilSensor
impl MessageSpecStatic for HilSensor
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> u32
fn message_id() -> u32
ID.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for HilSensor
impl NamedType for HilSensor
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl Serialize for HilSensor
impl Serialize for HilSensor
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl Type for HilSensor
impl Type for HilSensor
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition will be put into the type map.