pub struct ParamRequestRead {
pub target_system: u8,
pub target_component: u8,
pub param_id: [u8; 16],
pub param_index: i16,
}Expand description
MAVLink PARAM_REQUEST_READ message.
The minimum supported MAVLink version is MAVLink 1.
§Description
Request to read the onboard parameter with the param_id string id. Onboard parameters are stored as key[const char*] -> value[float]. This allows to send a parameter to any other component (such as the GCS) without the need of previous knowledge of possible parameter names. Thus the same GCS can store different parameters for different autopilots. See also https://mavlink.io/en/services/parameter.html for a full documentation of QGroundControl and IMU code.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
ParamRequestRead (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§target_system: u8MAVLink field target_system.
System ID
target_component: u8MAVLink field target_component.
Component ID
param_id: [u8; 16]MAVLink field param_id.
Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars
- applications have to provide 16+1 bytes storage if the ID is stored as string
param_index: i16MAVLink field param_index.
Parameter index. Send -1 to use the param ID field as identifier (else the param id will be ignored)
Implementations§
Source§impl ParamRequestRead
impl ParamRequestRead
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 ParamRequestRead
impl Clone for ParamRequestRead
Source§fn clone(&self) -> ParamRequestRead
fn clone(&self) -> ParamRequestRead
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParamRequestRead
impl Debug for ParamRequestRead
Source§impl Default for ParamRequestRead
impl Default for ParamRequestRead
Source§fn default() -> ParamRequestRead
fn default() -> ParamRequestRead
Source§impl<'de> Deserialize<'de> for ParamRequestRead
impl<'de> Deserialize<'de> for ParamRequestRead
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ParamRequestRead, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ParamRequestRead, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<ParamRequestRead> for Common
impl From<ParamRequestRead> for Common
Source§fn from(value: ParamRequestRead) -> Common
fn from(value: ParamRequestRead) -> Common
Source§impl IntoPayload for ParamRequestRead
impl IntoPayload for ParamRequestRead
Source§impl MessageSpec for ParamRequestRead
impl MessageSpec for ParamRequestRead
Source§impl MessageSpecStatic for ParamRequestRead
impl MessageSpecStatic for ParamRequestRead
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 ParamRequestRead
impl NamedType for ParamRequestRead
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 ParamRequestRead
impl PartialEq for ParamRequestRead
Source§impl Serialize for ParamRequestRead
impl Serialize for ParamRequestRead
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 ParamRequestRead
impl TryFrom<&Payload> for ParamRequestRead
Source§impl Type for ParamRequestRead
impl Type for ParamRequestRead
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.