diff options
author | Don Gagne <don@thegagnes.com> | 2015-04-15 14:53:06 -0700 |
---|---|---|
committer | Don Gagne <don@thegagnes.com> | 2015-04-15 14:53:06 -0700 |
commit | 2fa0c333cb92557b5ba39e91db41327ae381b6a7 (patch) | |
tree | 3dd65af9e19ec1c9dcfa63517870b4270084ab2f | |
parent | 05c351183f0425f1c4feba60bf68b28d73eee51f (diff) | |
download | px4-firmware-2fa0c333cb92557b5ba39e91db41327ae381b6a7.tar.gz px4-firmware-2fa0c333cb92557b5ba39e91db41327ae381b6a7.tar.bz2 px4-firmware-2fa0c333cb92557b5ba39e91db41327ae381b6a7.zip |
Add version number to parameter meta data
-rw-r--r-- | Tools/px4params/xmlout.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tools/px4params/xmlout.py b/Tools/px4params/xmlout.py index e845cd1b1..ee95f9b67 100644 --- a/Tools/px4params/xmlout.py +++ b/Tools/px4params/xmlout.py @@ -6,6 +6,10 @@ class XMLOutput(): impl = getDOMImplementation() xml_document = impl.createDocument(None, "parameters", None) xml_parameters = xml_document.documentElement + xml_version = xml_document.createElement("version") + xml_parameters.appendChild(xml_version) + xml_version_value = xml_document.createTextNode("1") + xml_version.appendChild(xml_version_value) for group in groups: xml_group = xml_document.createElement("group") xml_group.setAttribute("name", group.GetName()) |