Make parameter generation also depend on the scripts that run. Address some review comments.

This commit is contained in:
Stephan Brown
2017-01-06 09:58:58 +01:00
committed by Beat Küng
parent 92b2395ff6
commit 67a484ac34
4 changed files with 5 additions and 10 deletions
-6
View File
@@ -42,9 +42,6 @@ __BEGIN_DECLS
struct px4_parameters_t {
"""
start_name = ""
end_name = ""
params = []
for group in root:
if group.tag == "group" and "no_code_generation" not in group.attrib:
@@ -52,9 +49,6 @@ for group in root:
scope_ = param.find('scope').text
if not cmake_scope.Has(scope_):
continue
if not start_name:
start_name = param.attrib["name"]
end_name = param.attrib["name"]
params.append(param)
params = sorted(params, key=lambda name: name.attrib["name"])