#[repr(u8)]pub enum PreflightStorageParameterAction {
ParamReadPersistent = 0,
ParamWritePersistent = 1,
ParamResetConfigDefault = 2,
ParamResetSensorDefault = 3,
ParamResetAllDefault = 4,
}Expand description
MAVLink enum PREFLIGHT_STORAGE_PARAMETER_ACTION for common dialect.
Actions for reading/writing parameters between persistent and volatile storage when using MAV_CMD_PREFLIGHT_STORAGE. (Commonly parameters are loaded from persistent storage (flash/EEPROM) into volatile storage (RAM) on startup and written back when they are changed.)
Variants§
ParamReadPersistent = 0
MAVLink enum entry PARAM_READ_PERSISTENT.
Read all parameters from persistent storage. Replaces values in volatile storage.
ParamWritePersistent = 1
MAVLink enum entry PARAM_WRITE_PERSISTENT.
Write all parameter values to persistent storage (flash/EEPROM)
ParamResetConfigDefault = 2
MAVLink enum entry PARAM_RESET_CONFIG_DEFAULT.
Reset all user configurable parameters to their default value (including airframe selection, sensor calibration data, safety settings, and so on). Does not reset values that contain operation counters and vehicle computed statistics.
ParamResetSensorDefault = 3
MAVLink enum entry PARAM_RESET_SENSOR_DEFAULT.
Reset only sensor calibration parameters to factory defaults (or firmware default if not available)
ParamResetAllDefault = 4
MAVLink enum entry PARAM_RESET_ALL_DEFAULT.
Reset all parameters, including operation counters, to default values
Implementations§
Source§impl PreflightStorageParameterAction
impl PreflightStorageParameterAction
Sourcepub fn entries() -> impl Iterator<Item = PreflightStorageParameterAction>
pub fn entries() -> impl Iterator<Item = PreflightStorageParameterAction>
Iterator over all entries within this enum.
Requires metadata feature flag to be enabled.
Trait Implementations§
Source§impl Clone for PreflightStorageParameterAction
impl Clone for PreflightStorageParameterAction
Source§fn clone(&self) -> PreflightStorageParameterAction
fn clone(&self) -> PreflightStorageParameterAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PreflightStorageParameterAction
Source§impl Default for PreflightStorageParameterAction
impl Default for PreflightStorageParameterAction
Source§fn default() -> PreflightStorageParameterAction
fn default() -> PreflightStorageParameterAction
Source§impl<'de> Deserialize<'de> for PreflightStorageParameterAction
impl<'de> Deserialize<'de> for PreflightStorageParameterAction
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PreflightStorageParameterAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PreflightStorageParameterAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl NamedType for PreflightStorageParameterAction
impl NamedType for PreflightStorageParameterAction
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 PreflightStorageParameterAction
impl PartialEq for PreflightStorageParameterAction
Source§fn eq(&self, other: &PreflightStorageParameterAction) -> bool
fn eq(&self, other: &PreflightStorageParameterAction) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for PreflightStorageParameterAction
impl Serialize for PreflightStorageParameterAction
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 PreflightStorageParameterAction
Source§impl TryFrom<u8> for PreflightStorageParameterAction
impl TryFrom<u8> for PreflightStorageParameterAction
Source§impl Type for PreflightStorageParameterAction
impl Type for PreflightStorageParameterAction
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.