|
|
|
@ -255,7 +255,7 @@ bool MAVLinkXMLParser::generate()
@@ -255,7 +255,7 @@ bool MAVLinkXMLParser::generate()
|
|
|
|
|
QString fieldComment; |
|
|
|
|
if (e2.text().length() > 0) |
|
|
|
|
{ |
|
|
|
|
fieldComment = " // " + e2.text(); |
|
|
|
|
fieldComment = " /* " + e2.text() + "*/"; |
|
|
|
|
} |
|
|
|
|
currEnum += "\t" + fieldName.toUpper() + "=" + fieldValue + "," + fieldComment + "\n"; |
|
|
|
|
} |
|
|
|
@ -271,7 +271,7 @@ bool MAVLinkXMLParser::generate()
@@ -271,7 +271,7 @@ bool MAVLinkXMLParser::generate()
|
|
|
|
|
int commaPosition = currEnum.lastIndexOf(","); |
|
|
|
|
currEnum.remove(commaPosition, 1); |
|
|
|
|
|
|
|
|
|
enums += "/** " + comment + " */\n" + currEnum + currEnumEnd; |
|
|
|
|
enums += "/** @brief " + comment + " */\n" + currEnum + currEnumEnd; |
|
|
|
|
} // Element is non-zero and element name is <enum>
|
|
|
|
|
n = n.nextSibling(); |
|
|
|
|
} // While through <enums>
|
|
|
|
|