Struct mavlink::paparazzi::PARAM_SET_DATA
source · pub struct PARAM_SET_DATA {
pub param_value: f32,
pub target_system: u8,
pub target_component: u8,
pub param_id: [u8; 16],
pub param_type: MavParamType,
}
Expand description
id: 23 Set a parameter value (write new value to permanent storage). The receiving component should acknowledge the new parameter value by broadcasting a PARAM_VALUE message (broadcasting ensures that multiple GCS all have an up-to-date list of all parameters). If the sending GCS did not receive a PARAM_VALUE within its timeout time, it should re-send the PARAM_SET message. The parameter microservice is documented at https://mavlink.io/en/services/parameter.html. PARAM_SET may also be called within the context of a transaction (started with MAV_CMD_PARAM_TRANSACTION). Within a transaction the receiving component should respond with PARAM_ACK_TRANSACTION to the setter component (instead of broadcasting PARAM_VALUE), and PARAM_SET should be re-sent if this is ACK not received..
Fields§
§param_value: f32
Onboard parameter value.
target_system: u8
System ID.
target_component: u8
Component ID.
param_id: [u8; 16]
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_type: MavParamType
Onboard parameter type..
Implementations§
source§impl PARAM_SET_DATA
impl PARAM_SET_DATA
pub const ENCODED_LEN: usize = 23usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for PARAM_SET_DATA
impl Clone for PARAM_SET_DATA
source§fn clone(&self) -> PARAM_SET_DATA
fn clone(&self) -> PARAM_SET_DATA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PARAM_SET_DATA
impl Debug for PARAM_SET_DATA
source§impl Default for PARAM_SET_DATA
impl Default for PARAM_SET_DATA
source§impl<'de> Deserialize<'de> for PARAM_SET_DATA
impl<'de> Deserialize<'de> for PARAM_SET_DATA
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 MessageData for PARAM_SET_DATA
impl MessageData for PARAM_SET_DATA
type Message = MavMessage
const ID: u32 = 23u32
const NAME: &'static str = "PARAM_SET"
const EXTRA_CRC: u8 = 168u8
const ENCODED_LEN: usize = 23usize
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for PARAM_SET_DATA
impl PartialEq for PARAM_SET_DATA
source§fn eq(&self, other: &PARAM_SET_DATA) -> bool
fn eq(&self, other: &PARAM_SET_DATA) -> bool
self
and other
values to be equal, and is used
by ==
.