mirror of https://github.com/ArduPilot/ardupilot
Tools: parameter emitter spelling pass
This commit is contained in:
parent
8cd47433ed
commit
b5f7fca254
|
@ -257,7 +257,7 @@ def process_library(vehicle, library, pathprefix=None):
|
||||||
fields = prog_param_tagged_fields.findall(field_text)
|
fields = prog_param_tagged_fields.findall(field_text)
|
||||||
# a parameter is considered to be vehicle-specific if
|
# a parameter is considered to be vehicle-specific if
|
||||||
# there does not exist a Values: or Values{VehicleName}
|
# 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
|
seen_values_or_bitmask_for_other_vehicle = False
|
||||||
for field in fields:
|
for field in fields:
|
||||||
only_for_vehicles = field[1].split(",")
|
only_for_vehicles = field[1].split(",")
|
||||||
|
@ -480,7 +480,7 @@ if args.emit_sitl:
|
||||||
# only generate rst for SITL for now:
|
# only generate rst for SITL for now:
|
||||||
emitters_to_use = ['rst']
|
emitters_to_use = ['rst']
|
||||||
|
|
||||||
# actually invoke each emiiter:
|
# actually invoke each emitter:
|
||||||
for emitter_name in emitters_to_use:
|
for emitter_name in emitters_to_use:
|
||||||
emit = all_emitters[emitter_name](sitl=args.emit_sitl)
|
emit = all_emitters[emitter_name](sitl=args.emit_sitl)
|
||||||
|
|
||||||
|
|
|
@ -254,12 +254,12 @@ This list is automatically generated from the latest ardupilot source code, and
|
||||||
(param_min, param_max) = (param.__dict__[field]).split(' ')
|
(param_min, param_max) = (param.__dict__[field]).split(' ')
|
||||||
row.append("%s - %s" % (param_min, param_max,))
|
row.append("%s - %s" % (param_min, param_max,))
|
||||||
elif field == 'Units':
|
elif field == 'Units':
|
||||||
abreviated_units = param.__dict__[field]
|
abbreviated_units = param.__dict__[field]
|
||||||
if abreviated_units != '':
|
if abbreviated_units != '':
|
||||||
# use the known_units dictionary to
|
# use the known_units dictionary to
|
||||||
# convert the abreviated unit into a full
|
# convert the abbreviated unit into a full
|
||||||
# textual one:
|
# textual one:
|
||||||
units = known_units[abreviated_units]
|
units = known_units[abbreviated_units]
|
||||||
row.append(cescape(units))
|
row.append(cescape(units))
|
||||||
else:
|
else:
|
||||||
row.append(cescape(param.__dict__[field]))
|
row.append(cescape(param.__dict__[field]))
|
||||||
|
|
Loading…
Reference in New Issue