mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
autotest: include AP_Vehicle parameters in documenation
This commit is contained in:
parent
d244162587
commit
5d5f9b77e8
@ -54,6 +54,12 @@ vehicle_paths.sort(reverse=True)
|
||||
vehicles = []
|
||||
libraries = []
|
||||
|
||||
# AP_Vehicle also has parameters rooted at "", but isn't referenced
|
||||
# from the vehicle in any way:
|
||||
ap_vehicle_lib = Library("") # 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)
|
||||
|
||||
error_count = 0
|
||||
current_param = None
|
||||
current_file = None
|
||||
@ -166,7 +172,7 @@ def process_library(vehicle, library, pathprefix=None):
|
||||
p_text = f.read()
|
||||
f.close()
|
||||
else:
|
||||
error("Path %s not found for library %s" % (path, library.name))
|
||||
error("Path %s not found for library %s (fname=%s)" % (path, library.name, libraryfname))
|
||||
continue
|
||||
|
||||
param_matches = prog_param.findall(p_text)
|
||||
|
Loading…
Reference in New Issue
Block a user