mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 18:17:34 +08:00
Scope parameter included in build by cmake/configs
Conflicts: Tools/px_generate_params.py src/lib/ecl
This commit is contained in:
committed by
Lorenz Meier
parent
93d261a558
commit
64d43ad381
@@ -144,7 +144,7 @@ class SourceParser(object):
|
||||
def __init__(self):
|
||||
self.param_groups = {}
|
||||
|
||||
def Parse(self, contents):
|
||||
def Parse(self, scope, contents):
|
||||
"""
|
||||
Incrementally parse program contents and append all found parameters
|
||||
to the list.
|
||||
@@ -241,6 +241,7 @@ class SourceParser(object):
|
||||
if defval != "" and self.re_is_a_number.match(defval):
|
||||
defval = self.re_cut_type_specifier.sub('', defval)
|
||||
param = Parameter(name, tp, defval)
|
||||
param.SetField("scope", scope)
|
||||
param.SetField("short_desc", name)
|
||||
# If comment was found before the parameter declaration,
|
||||
# inject its data into the newly created parameter.
|
||||
|
||||
Reference in New Issue
Block a user