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,
}
ardupilotmega
only.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 more