mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
autotest: add @User autodocs to the apm.pdef.xml as user=foo
This commit is contained in:
parent
a7b32caf72
commit
d3dad7afee
@ -36,12 +36,14 @@ class XmlEmit(Emit):
|
|||||||
for param in g.params:
|
for param in g.params:
|
||||||
# Begin our parameter node
|
# Begin our parameter node
|
||||||
if hasattr(param, 'DisplayName'):
|
if hasattr(param, 'DisplayName'):
|
||||||
t += '<param humanName=%s name=%s ' % (quoteattr(param.DisplayName),quoteattr(param.name)) # i.e. ArduPlane (ArduPlane:FOOPARM)
|
t += '<param humanName=%s name=%s' % (quoteattr(param.DisplayName),quoteattr(param.name)) # i.e. ArduPlane (ArduPlane:FOOPARM)
|
||||||
else:
|
else:
|
||||||
t += '<param name=%s ' % quoteattr(param.name)
|
t += '<param name=%s' % quoteattr(param.name)
|
||||||
|
|
||||||
if hasattr(param, 'Description'):
|
if hasattr(param, 'Description'):
|
||||||
t += 'documentation=%s' % quoteattr(param.Description) # i.w. parameter docs
|
t += ' documentation=%s' % quoteattr(param.Description) # i.e. parameter docs
|
||||||
|
if hasattr(param, 'User'):
|
||||||
|
t += ' user=%s' % quoteattr(param.User) # i.e. Standard or Advanced
|
||||||
|
|
||||||
t += ">\n"
|
t += ">\n"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user