mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-19 16:09:06 +08:00
Airframe generator: Also generate autostart listing
This commit is contained in:
parent
ac0e645ab6
commit
fde0c65d77
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user