Skip to content

Commit

Permalink
Tools: fix AP_Periph param docs generator
Browse files Browse the repository at this point in the history
  • Loading branch information
magicrub committed Nov 28, 2023
1 parent 11a5b78 commit 3e7f54c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Tools/autotest/param_metadata/param_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit 3e7f54c

Please sign in to comment.