Browse Source

Tools: correct misleading comment on per-vehicle parameter descriptions

master
Peter Barker 7 years ago
parent
commit
338af9e142
  1. 2
      Tools/autotest/param_metadata/param_parse.py

2
Tools/autotest/param_metadata/param_parse.py

@ -27,7 +27,7 @@ prog_param = re.compile(r"@Param: (\w+).*((?:\n[ \t]*// @(\w+)(?:{([^}]+)})?: (. @@ -27,7 +27,7 @@ prog_param = re.compile(r"@Param: (\w+).*((?:\n[ \t]*// @(\w+)(?:{([^}]+)})?: (.
# match e.g @Value: 0=Unity, 1=Koala, 17=Liability
prog_param_fields = re.compile(r"[ \t]*// @(\w+): (.*)")
# match e.g @Value{ArduCopter}: 0=Volcano, 1=Peppermint
# match e.g @Value{Copter}: 0=Volcano, 1=Peppermint
prog_param_tagged_fields = re.compile(r"[ \t]*// @(\w+){([^}]+)}: (.*)")
prog_groups = re.compile(r"@Group: *(\w+).*((?:\n[ \t]*// @(Path): (\S+))+)", re.MULTILINE)

Loading…
Cancel
Save