From b5f7fca25488a4ae2da9973e8e70b7526af986a4 Mon Sep 17 00:00:00 2001 From: TunaLobster Date: Tue, 17 Aug 2021 15:10:34 -0500 Subject: [PATCH] Tools: parameter emitter spelling pass --- Tools/autotest/param_metadata/param_parse.py | 4 ++-- Tools/autotest/param_metadata/rstemit.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Tools/autotest/param_metadata/param_parse.py b/Tools/autotest/param_metadata/param_parse.py index b6f0db7e2e..e727c6e12c 100755 --- a/Tools/autotest/param_metadata/param_parse.py +++ b/Tools/autotest/param_metadata/param_parse.py @@ -257,7 +257,7 @@ def process_library(vehicle, library, pathprefix=None): fields = prog_param_tagged_fields.findall(field_text) # a parameter is considered to be vehicle-specific if # there does not exist a Values: or Values{VehicleName} - # for that vehicle but @Values{OtherVehcicle} exists. + # for that vehicle but @Values{OtherVehicle} exists. seen_values_or_bitmask_for_other_vehicle = False for field in fields: only_for_vehicles = field[1].split(",") @@ -480,7 +480,7 @@ if args.emit_sitl: # only generate rst for SITL for now: emitters_to_use = ['rst'] -# actually invoke each emiiter: +# actually invoke each emitter: for emitter_name in emitters_to_use: emit = all_emitters[emitter_name](sitl=args.emit_sitl) diff --git a/Tools/autotest/param_metadata/rstemit.py b/Tools/autotest/param_metadata/rstemit.py index e2acbbd146..a09f4746aa 100644 --- a/Tools/autotest/param_metadata/rstemit.py +++ b/Tools/autotest/param_metadata/rstemit.py @@ -254,12 +254,12 @@ This list is automatically generated from the latest ardupilot source code, and (param_min, param_max) = (param.__dict__[field]).split(' ') row.append("%s - %s" % (param_min, param_max,)) elif field == 'Units': - abreviated_units = param.__dict__[field] - if abreviated_units != '': + abbreviated_units = param.__dict__[field] + if abbreviated_units != '': # use the known_units dictionary to - # convert the abreviated unit into a full + # convert the abbreviated unit into a full # textual one: - units = known_units[abreviated_units] + units = known_units[abbreviated_units] row.append(cescape(units)) else: row.append(cescape(param.__dict__[field]))