Tools: fix AP_Periph param docs generator

This commit is contained in:
Tom Pittenger 2023-11-28 14:33:36 -08:00 committed by Peter Barker
parent 11a5b78a0c
commit 2650137e8c
1 changed files with 6 additions and 5 deletions

View File

@ -109,11 +109,12 @@ def lua_applets():
libraries = []
# AP_Vehicle also has parameters rooted at "", but isn't referenced
# from the vehicle in any way:
ap_vehicle_lib = Library("", reference="VEHICLE") # the "" is tacked onto the front of param name
setattr(ap_vehicle_lib, "Path", os.path.join('..', 'libraries', 'AP_Vehicle', 'AP_Vehicle.cpp'))
libraries.append(ap_vehicle_lib)
if args.vehicle != "AP_Periph":
# AP_Vehicle also has parameters rooted at "", but isn't referenced
# from the vehicle in any way:
ap_vehicle_lib = Library("", reference="VEHICLE") # the "" is tacked onto the front of param name
setattr(ap_vehicle_lib, "Path", os.path.join('..', 'libraries', 'AP_Vehicle', 'AP_Vehicle.cpp'))
libraries.append(ap_vehicle_lib)
libraries.append(lua_applets())