pub struct ParamExtSet {
pub target_system: u8,
pub target_component: u8,
pub param_id: [u8; 16],
pub param_value: [u8; 128],
pub param_type: MavParamExtType,
}Expand description
MAVLink PARAM_EXT_SET message.
The minimum supported MAVLink version is MAVLink 2.
§Description
Set a parameter value. In order to deal with message loss (and retransmission of PARAM_EXT_SET), when setting a parameter value and the new value is the same as the current value, you will immediately get a PARAM_ACK_ACCEPTED response. If the current state is PARAM_ACK_IN_PROGRESS, you will accordingly receive a PARAM_ACK_IN_PROGRESS in response.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
ParamExtSet (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.
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_value: [u8; 128]MAVLink field param_value.
Parameter value
param_type: MavParamExtTypeMAVLink field param_type.
Parameter type.
Implementations§
Source§impl ParamExtSet
impl ParamExtSet
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 ParamExtSet
impl Clone for ParamExtSet
Source§fn clone(&self) -> ParamExtSet
fn clone(&self) -> ParamExtSet
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParamExtSet
impl Debug for ParamExtSet
Source§impl Default for ParamExtSet
impl Default for ParamExtSet
Source§fn default() -> ParamExtSet
fn default() -> ParamExtSet
Source§impl<'de> Deserialize<'de> for ParamExtSet
impl<'de> Deserialize<'de> for ParamExtSet
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ParamExtSet, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ParamExtSet, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Flatten for ParamExtSet
Source§impl From<ParamExtSet> for Common
impl From<ParamExtSet> for Common
Source§fn from(value: ParamExtSet) -> Common
fn from(value: ParamExtSet) -> Common
Source§impl IntoPayload for ParamExtSet
impl IntoPayload for ParamExtSet
impl Message for ParamExtSet
Source§impl MessageSpec for ParamExtSet
impl MessageSpec for ParamExtSet
Source§impl MessageSpecStatic for ParamExtSet
impl MessageSpecStatic for ParamExtSet
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 ParamExtSet
impl NamedType for ParamExtSet
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 ParamExtSet
impl PartialEq for ParamExtSet
Source§fn eq(&self, other: &ParamExtSet) -> bool
fn eq(&self, other: &ParamExtSet) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ParamExtSet
impl Serialize for ParamExtSet
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,
impl StructuralPartialEq for ParamExtSet
Source§impl TryFrom<&Payload> for ParamExtSet
impl TryFrom<&Payload> for ParamExtSet
Source§impl Type for ParamExtSet
impl Type for ParamExtSet
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.