mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
Recognize @unit parameter documentation tag. Not used in any output yet.
This commit is contained in:
@@ -44,6 +44,7 @@ class Parameter(object):
|
|||||||
"default": 6,
|
"default": 6,
|
||||||
"min": 5,
|
"min": 5,
|
||||||
"max": 4,
|
"max": 4,
|
||||||
|
"unit": 3,
|
||||||
# all others == 0 (sorted alphabetically)
|
# all others == 0 (sorted alphabetically)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,7 +87,7 @@ class Parser(object):
|
|||||||
re_is_a_number = re.compile(r'^-?[0-9\.]')
|
re_is_a_number = re.compile(r'^-?[0-9\.]')
|
||||||
re_remove_dots = re.compile(r'\.+$')
|
re_remove_dots = re.compile(r'\.+$')
|
||||||
|
|
||||||
valid_tags = set(["min", "max", "group"])
|
valid_tags = set(["group", "min", "max", "unit"])
|
||||||
|
|
||||||
# Order of parameter groups
|
# Order of parameter groups
|
||||||
priority = {
|
priority = {
|
||||||
|
|||||||
Reference in New Issue
Block a user