pub struct ComponentInformationBasic {
pub time_boot_ms: u32,
pub capabilities: MavProtocolCapability,
pub time_manufacture_s: u32,
pub vendor_name: [u8; 32],
pub model_name: [u8; 32],
pub software_version: [u8; 24],
pub hardware_version: [u8; 24],
pub serial_number: [u8; 32],
}Expand description
MAVLink COMPONENT_INFORMATION_BASIC message.
The minimum supported MAVLink version is MAVLink 2.
§Description
Basic component information data. Should be requested using MAV_CMD_REQUEST_MESSAGE on startup, or when required.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
ComponentInformationBasic (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§time_boot_ms: u32MAVLink field time_boot_ms.
Timestamp (time since system boot).
capabilities: MavProtocolCapabilityMAVLink field capabilities.
Component capability flags
time_manufacture_s: u32MAVLink field time_manufacture_s.
Date of manufacture as a UNIX Epoch time (since 1.1.1970) in seconds.
vendor_name: [u8; 32]MAVLink field vendor_name.
Name of the component vendor. Needs to be zero terminated. The field is optional and can be empty/all zeros.
model_name: [u8; 32]MAVLink field model_name.
Name of the component model. Needs to be zero terminated. The field is optional and can be empty/all zeros.
software_version: [u8; 24]MAVLink field software_version.
Software version. The recommended format is SEMVER: ‘major.minor.patch’ (any format may be used). The field must be zero terminated if it has a value. The field is optional and can be empty/all zeros.
hardware_version: [u8; 24]MAVLink field hardware_version.
Hardware version. The recommended format is SEMVER: ‘major.minor.patch’ (any format may be used). The field must be zero terminated if it has a value. The field is optional and can be empty/all zeros.
serial_number: [u8; 32]MAVLink field serial_number.
Hardware serial number. The field must be zero terminated if it has a value. The field is optional and can be empty/all zeros.
Implementations§
Source§impl ComponentInformationBasic
impl ComponentInformationBasic
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 Clone for ComponentInformationBasic
impl Clone for ComponentInformationBasic
Source§fn clone(&self) -> ComponentInformationBasic
fn clone(&self) -> ComponentInformationBasic
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ComponentInformationBasic
impl Debug for ComponentInformationBasic
Source§impl Default for ComponentInformationBasic
impl Default for ComponentInformationBasic
Source§fn default() -> ComponentInformationBasic
fn default() -> ComponentInformationBasic
Source§impl<'de> Deserialize<'de> for ComponentInformationBasic
impl<'de> Deserialize<'de> for ComponentInformationBasic
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComponentInformationBasic, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComponentInformationBasic, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<ComponentInformationBasic> for Common
impl From<ComponentInformationBasic> for Common
Source§fn from(value: ComponentInformationBasic) -> Common
fn from(value: ComponentInformationBasic) -> Common
Source§impl MessageSpecStatic for ComponentInformationBasic
impl MessageSpecStatic for ComponentInformationBasic
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 ComponentInformationBasic
impl NamedType for ComponentInformationBasic
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 ComponentInformationBasic
impl Serialize for ComponentInformationBasic
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 TryFrom<&Payload> for ComponentInformationBasic
impl TryFrom<&Payload> for ComponentInformationBasic
Source§impl Type for ComponentInformationBasic
impl Type for ComponentInformationBasic
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.