Airframe generator: Also generate autostart listing

This commit is contained in:
Lorenz Meier 2015-07-31 12:10:31 +02:00
parent ac0e645ab6
commit fde0c65d77
5 changed files with 75 additions and 6 deletions

View File

@ -46,14 +46,18 @@ class Parameter(object):
# all others == 0 (sorted alphabetically)
}
def __init__(self, name, airframe_type, airframe_id, maintainer):
def __init__(self, path, name, airframe_type, airframe_id, maintainer):
self.fields = {}
self.outputs = {}
self.path = path
self.name = name
self.type = airframe_type
self.id = airframe_id
self.maintainer = maintainer
def GetPath(self):
return self.path
def GetName(self):
return self.name
@ -259,7 +263,7 @@ class SourceParser(object):
return False
# We already know this is an airframe config, so add it
param = Parameter(airframe_name, airframe_type, airframe_id, maintainer)
param = Parameter(path, airframe_name, airframe_type, airframe_id, maintainer)
# Done with file, store
for tag in tags: