mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 10:53:34 +08:00
protocol.param.GetSet update - min/max only for numeric types, longer string value
This commit is contained in:
@@ -25,9 +25,10 @@ uint8[<=92] name
|
||||
# Empty value indicates that there is no such parameter.
|
||||
Value value
|
||||
|
||||
Value default_value # Optional
|
||||
Value max_value # Optional
|
||||
Value min_value # Optional
|
||||
Value default_value # Optional
|
||||
|
||||
NumericValue max_value # Optional, not applicable for bool/string
|
||||
NumericValue min_value # Optional, not applicable for bool/string
|
||||
|
||||
# Empty name in response indicates that there is no such parameter
|
||||
uint8[<=92] name
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#
|
||||
# Numeric-only value.
|
||||
# The actual type should be inferred from the available values, as described below.
|
||||
# If none of the values below are present, the value is considered empty.
|
||||
#
|
||||
|
||||
int64[<=1] value_int # Preferred over float if ambiguous
|
||||
float32[<=1] value_float # Only if int is empty
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
# This type is nested in Value.
|
||||
#
|
||||
|
||||
uint8[<64] value
|
||||
uint8[<=127] value
|
||||
@@ -7,4 +7,4 @@
|
||||
bool[<=1] value_bool # Preferred over int, float and string if ambiguous
|
||||
int64[<=1] value_int # Preferred over float and string if ambiguous
|
||||
float32[<=1] value_float # Preferred over string if ambiguous
|
||||
ValueString[<=1] value_string # This one will be used only if all above are empty
|
||||
String[<=1] value_string # This one will be used only if all above are empty
|
||||
|
||||
Reference in New Issue
Block a user