Skip to content
Snippets Groups Projects
Commit 07775f76 authored by Don Gagne's avatar Don Gagne Committed by Lorenz Meier
Browse files

Add initial version stamps to meta data

parent 29af4846
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,10 @@ class XMLOutput():
xml_parameters = ET.Element("airframes")
xml_version = ET.SubElement(xml_parameters, "version")
xml_version.text = "1"
xml_version = ET.SubElement(xml_parameters, "airframe_version_major")
xml_version.text = "1"
xml_version = ET.SubElement(xml_parameters, "airframe_version_minor")
xml_version.text = "1"
last_param_name = ""
board_specific_param_set = False
for group in groups:
......
......@@ -22,6 +22,10 @@ class XMLOutput():
xml_parameters = ET.Element("parameters")
xml_version = ET.SubElement(xml_parameters, "version")
xml_version.text = "3"
xml_version = ET.SubElement(xml_parameters, "parameter_version_major")
xml_version.text = "1"
xml_version = ET.SubElement(xml_parameters, "parameter_version_minor")
xml_version.text = "2"
importtree = ET.parse(inject_xml_file_name)
injectgroups = importtree.getroot().findall("group")
for igroup in injectgroups:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment