aboutsummaryrefslogtreecommitdiff
path: root/Tools/px4params/dokuwikiout.py
diff options
context:
space:
mode:
authorDon Gagne <don@thegagnes.com>2015-04-21 12:31:08 -0700
committerDon Gagne <don@thegagnes.com>2015-04-21 12:31:08 -0700
commit6bf0a2618bf5e2680f61c4d2a1258eed62103f0e (patch)
tree0d944e4fe5edf7fd9fd0c4c69f65bc058aef13be /Tools/px4params/dokuwikiout.py
parent39f6e13c18414ae92e898640c62574d94171ae2d (diff)
downloadpx4-firmware-6bf0a2618bf5e2680f61c4d2a1258eed62103f0e.tar.gz
px4-firmware-6bf0a2618bf5e2680f61c4d2a1258eed62103f0e.tar.bz2
px4-firmware-6bf0a2618bf5e2680f61c4d2a1258eed62103f0e.zip
Add support for board attribute to parse output
This allows for writing parameter meta data which is specific to a board type
Diffstat (limited to 'Tools/px4params/dokuwikiout.py')
-rw-r--r--Tools/px4params/dokuwikiout.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/px4params/dokuwikiout.py b/Tools/px4params/dokuwikiout.py
index 77e0ef53d..28e487ea6 100644
--- a/Tools/px4params/dokuwikiout.py
+++ b/Tools/px4params/dokuwikiout.py
@@ -12,11 +12,11 @@ class DokuWikiTablesOutput():
result += "^ Name ^ Description ^ Min ^ Max ^ Default ^\n"
result += "^ ::: ^ Comment ^^^^\n"
for param in group.GetParams():
- code = param.GetFieldValue("code")
+ code = param.GetName()
+ def_val = param.GetDefault()
name = param.GetFieldValue("short_desc")
min_val = param.GetFieldValue("min")
max_val = param.GetFieldValue("max")
- def_val = param.GetFieldValue("default")
long_desc = param.GetFieldValue("long_desc")
if name == code: