Params metadata
You can provide additional metadata for parameters on the server. Learn more in the official Mavlink docs.
IMavParamTypeMetadata (source)
Represents metadata for a MAVLink parameter.
Property | Type | Description |
|---|---|---|
|
| Parameter Name. |
|
| Parameter type. |
|
| User readable name for a group of parameters which are commonly modified together. |
|
| User readable name for a 'type' of parameter (e.g., 'Developer', 'System', 'Advanced'). |
|
| Short user facing description/name for parameter. Used in UI instead of internal parameter name. |
|
| Long user facing documentation of how the parameters works. |
|
| Units for parameter value. |
|
| Number of decimal places to show for user facing display. |
|
| true: Vehicle must be rebooted if this value is changed. |
|
| true: value is volatile. Should not be included in creation of a CRC over param values. |
|
| Minimum valid value. |
|
| Maximum valid value. |
|
| Default value for parameter. |
|
| Increment to use for user facing UI which increments a value. |
|
| Array of values and textual descriptions for use by GCS ui. |
|
| Bitmask of allowed values. |
Method | Return Type | Description |
|---|---|---|
|
| Validates the given MavParamValue. |
|
| Validates a MAV parameter value and returns an error message if validation fails. |
|
| Reads the parameter value from configuration. |
|
| Writes the parameter value to configuration. |
IMavParamTypeMetadata.IsValid
Parameter | Type | Description |
|---|---|---|
|
| The MavParamValue to validate. |
IMavParamTypeMetadata.GetValidationError
Parameter | Type | Description |
|---|---|---|
|
| The new value to be validated. |
IMavParamTypeMetadata.ReadFromConfig
Parameter | Type | Description |
|---|---|---|
|
| The configuration instance to read from. |
|
| (Optional) Prefix for the configuration key. |
IMavParamTypeMetadata.WriteToConfig
Parameter | Type | Description |
|---|---|---|
|
| The configuration instance to write to. |
|
| The value to write. |
|
| (Optional) Prefix for the configuration key. |
MavParam (source)
A factory class for creating instances of IMavParamTypeMetadata objects.
Examples:
There are many methods like this with different params and types. Also, method prefixes (DevS32, SysS32, ...) indicate parameter category:
Sys* - system parameters
Adv* - advanced parameters
Dev* - developer parameters