pub struct ScaledPressure {
pub time_boot_ms: u32,
pub press_abs: f32,
pub press_diff: f32,
pub temperature: i16,
pub temperature_press_diff: i16,
}
Expand description
MAVLink SCALED_PRESSURE
message.
Minimum supported MAVLink version is MAVLink 1
.
§Description
The pressure readings for the typical setup of one absolute and differential pressure sensor. The units are as specified in each field.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload>
for
ScaledPressure
(encoding) and [IntoPayload
] (decoding) traits.
These traits are implemented by Message
proc macro.
Fields§
§time_boot_ms: u32
MAVLink field time_boot_ms
.
Timestamp (time since system boot).
press_abs: f32
MAVLink field press_abs
.
Absolute pressure
press_diff: f32
MAVLink field press_diff
.
Differential pressure 1
temperature: i16
MAVLink field temperature
.
Absolute pressure temperature
temperature_press_diff: i16
MAVLink field temperature_press_diff
.
Differential pressure temperature (0, if not available). Report values of 0 (or
- as 1 cdegC.
Implementations§
Source§impl ScaledPressure
impl ScaledPressure
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> MessageId
pub const fn message_id() -> MessageId
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 Clone for ScaledPressure
impl Clone for ScaledPressure
Source§fn clone(&self) -> ScaledPressure
fn clone(&self) -> ScaledPressure
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ScaledPressure
impl Debug for ScaledPressure
Source§impl Default for ScaledPressure
impl Default for ScaledPressure
Source§impl<'de> Deserialize<'de> for ScaledPressure
impl<'de> Deserialize<'de> for ScaledPressure
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>,
Source§impl From<ScaledPressure> for Common
impl From<ScaledPressure> for Common
Source§fn from(value: ScaledPressure) -> Self
fn from(value: ScaledPressure) -> Self
Source§impl IntoPayload for ScaledPressure
impl IntoPayload for ScaledPressure
Source§impl MessageSpec for ScaledPressure
impl MessageSpec for ScaledPressure
Source§impl MessageSpecStatic for ScaledPressure
impl MessageSpecStatic for ScaledPressure
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> MessageId
fn message_id() -> MessageId
ID
.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for ScaledPressure
impl NamedType for ScaledPressure
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 PartialEq for ScaledPressure
impl PartialEq for ScaledPressure
Source§impl Serialize for ScaledPressure
impl Serialize for ScaledPressure
Source§impl TryFrom<&Payload> for ScaledPressure
impl TryFrom<&Payload> for ScaledPressure
Source§impl Type for ScaledPressure
impl Type for ScaledPressure
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.