mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -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:
|
||||
# Begin our parameter node
|
||||
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:
|
||||
t += '<param name=%s ' % quoteattr(param.name)
|
||||
t += '<param name=%s' % quoteattr(param.name)
|
||||
|
||||
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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user