diff --git a/Tools/px4airframes/markdownout.py b/Tools/px4airframes/markdownout.py
index 7c8472a05e..e4abf377cc 100644
--- a/Tools/px4airframes/markdownout.py
+++ b/Tools/px4airframes/markdownout.py
@@ -4,12 +4,15 @@ import codecs
class MarkdownTablesOutput():
def __init__(self, groups, board):
result = ("# Airframes Reference\n"
- "> **Note** **This list is auto-generated from the source code** and contains the most recent airframes documentation.\n"
+ "> **Note** **This list is auto-generated from the source code**.\n"
"> \n"
"> The **AUX** channels are only available on Pixhawk Boards (labeled with **AUX OUT**).\n"
+ "> \n"
"\n")
- # TODO: describe meaning of green + blue color...
+ result += """This page lists all supported airframes and types including
+ the motor assignment and numbering. The motors in **green** rotate clockwise,
+ the ones in **blue** conterclockwise.\n\n"""
for group in groups:
@@ -19,7 +22,7 @@ class MarkdownTablesOutput():
image_name = group.GetImageName()
result += '
\n'
if image_name != 'AirframeUnknown':
- result += '

\n' % (image_name)
+ result += '

\n' % (image_name)
# check if all outputs are equal for the group: if so, show them
# only once
@@ -61,9 +64,9 @@ class MarkdownTablesOutput():
result += '
\n\n'
result += '\n'
- result += ' \n'
+ result += ' \n'
result += ' \n'
- result += ' | Name | | Specific Outputs |
\n'
+ result += ' | Name | |
\n'
result += ' \n'
result += '\n'
@@ -82,6 +85,7 @@ class MarkdownTablesOutput():
if url != '':
name_entry = '%s' % (url, name)
outputs = ''
+ has_outputs = False
for output_name in param.GetOutputCodes():
value = param.GetOutputValue(output_name)
valstrs = value.split(";")
@@ -91,14 +95,21 @@ class MarkdownTablesOutput():
idx = 1
if not outputs_match[idx]:
outputs += '- %s: %s
' % (output_name, value)
+ has_outputs = True
for attrib in valstrs[1:]:
attribstrs = attrib.split(":")
# some airframes provide more info, like angle=60, direction=CCW
#print(output_name,value, attribstrs[0].strip(),attribstrs[1].strip())
outputs += '
'
+ if has_outputs:
+ outputs_entry = 'Specific Outputs:' + outputs + '
'
+ else:
+ outputs_entry = ''
- result += '\n | %s | \n %s%s | \n %s | \n
\n' % (name_entry, maintainer_entry, airframe_id_entry, outputs)
+ result += ('\n | %s | \n %s%s%s | \n\n
\n' %
+ (name_entry, maintainer_entry, airframe_id_entry,
+ outputs_entry))
#Close the table.
diff --git a/Tools/px4airframes/srcparser.py b/Tools/px4airframes/srcparser.py
index e3041af6ba..64692439e3 100644
--- a/Tools/px4airframes/srcparser.py
+++ b/Tools/px4airframes/srcparser.py
@@ -67,9 +67,9 @@ class ParameterGroup(object):
elif (self.name == "Helicopter"):
return "Helicopter"
elif (self.name == "Hexarotor Coaxial"):
- return "Y6A"
- elif (self.name == "Y6B"):
return "Y6B"
+ elif (self.name == "Y6A"):
+ return "Y6A"
elif (self.name == "Tricopter Y-"):
return "YMinus"
elif (self.name == "Tricopter Y+"):