pub struct EscInfo {
pub index: u8,
pub time_usec: u64,
pub counter: u16,
pub count: u8,
pub connection_type: EscConnectionType,
pub info: u8,
pub failure_flags: [EscFailureFlags; 4],
pub error_count: [u32; 4],
pub temperature: [i16; 4],
}Expand description
MAVLink ESC_INFO message.
The minimum supported MAVLink version is MAVLink 2.
§Description
ESC information for lower rate streaming. Recommended streaming rate 1Hz. See ESC_STATUS for higher-rate ESC data.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
EscInfo (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§index: u8MAVLink field index.
Index of the first ESC in this message. minValue = 0, maxValue = 60, increment = 4.
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 the number.
counter: u16MAVLink field counter.
Counter of data packets received.
count: u8MAVLink field count.
Total number of ESCs in all messages of this type. Message fields with an index higher than this should be ignored because they contain invalid data.
connection_type: EscConnectionTypeMAVLink field connection_type.
Connection type protocol for all ESC.
info: u8MAVLink field info.
Information regarding online/offline status of each ESC.
failure_flags: [EscFailureFlags; 4]MAVLink field failure_flags.
Bitmap of ESC failure flags.
error_count: [u32; 4]MAVLink field error_count.
Number of reported errors by each ESC since boot.
temperature: [i16; 4]MAVLink field temperature.
Temperature of each ESC. INT16_MAX: if data not supplied by ESC.
Implementations§
Source§impl EscInfo
impl EscInfo
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 EscInfo
impl<'de> Deserialize<'de> for EscInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EscInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EscInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl IntoPayload for EscInfo
impl IntoPayload for EscInfo
Source§impl MessageSpec for EscInfo
impl MessageSpec for EscInfo
Source§impl MessageSpecStatic for EscInfo
impl MessageSpecStatic for EscInfo
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 EscInfo
impl NamedType for EscInfo
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 EscInfo
impl Serialize for EscInfo
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 EscInfo
impl Type for EscInfo
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.