Tools: parameter emitter spelling pass

This commit is contained in:
TunaLobster 2021-08-17 15:10:34 -05:00 committed by Peter Barker
parent 8cd47433ed
commit b5f7fca254
2 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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]))