diff options
author | Stefan Rado <px4@sradonia.net> | 2014-02-18 21:36:55 +0100 |
---|---|---|
committer | Stefan Rado <px4@sradonia.net> | 2014-02-18 21:36:55 +0100 |
commit | a7ee2e71a0a855f6206f6f9009c5893e942e9bed (patch) | |
tree | 230c172c3900424fa24a869fa96182b75446010a /Tools/px4params | |
parent | 84d9e3479f3d2bb29b22906be0dfe65d73b5dd0f (diff) | |
download | px4-firmware-a7ee2e71a0a855f6206f6f9009c5893e942e9bed.tar.gz px4-firmware-a7ee2e71a0a855f6206f6f9009c5893e942e9bed.tar.bz2 px4-firmware-a7ee2e71a0a855f6206f6f9009c5893e942e9bed.zip |
Recognize @unit parameter documentation tag. Not used in any output yet.
Diffstat (limited to 'Tools/px4params')
-rw-r--r-- | Tools/px4params/srcparser.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/px4params/srcparser.py b/Tools/px4params/srcparser.py index 1b2d30110..9e202d3b8 100644 --- a/Tools/px4params/srcparser.py +++ b/Tools/px4params/srcparser.py @@ -44,6 +44,7 @@ class Parameter(object): "default": 6, "min": 5, "max": 4, + "unit": 3, # all others == 0 (sorted alphabetically) } @@ -86,7 +87,7 @@ class Parser(object): re_is_a_number = re.compile(r'^-?[0-9\.]') re_remove_dots = re.compile(r'\.+$') - valid_tags = set(["min", "max", "group"]) + valid_tags = set(["group", "min", "max", "unit"]) # Order of parameter groups priority = { |