Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dronecan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def load_dsdl(*paths, **args):
os.path.join(dsdl_path, "dronecan"),
os.path.join(dsdl_path, "ardupilot"),
os.path.join(dsdl_path, "com"),
os.path.join(dsdl_path, "cuav")] + paths
os.path.join(dsdl_path, "cuav"),
os.path.join(dsdl_path, "vesc")] + paths
custom_path = os.path.join(os.path.expanduser("~"), "uavcan_vendor_specific_types")
if os.path.isdir(custom_path):
paths += [f for f in [os.path.join(custom_path, f) for f in os.listdir(custom_path)]
Expand Down Expand Up @@ -182,7 +183,7 @@ def create_instance(*args, **kwargs):
dtype.Request = create_instance_closure(dtype, _mode='request')
dtype.Response = create_instance_closure(dtype, _mode='response')

toplevel = ['dronecan', 'uavcan', 'ardupilot', 'com', 'cuav']
toplevel = ['dronecan', 'uavcan', 'ardupilot', 'com', 'cuav', 'vesc']
for n in toplevel:
namespace = root_namespace._path(n)
MODULE.__dict__[n] = Namespace()
Expand Down
2 changes: 2 additions & 0 deletions dronecan/dsdl/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,8 @@ def parse_namespaces(source_dirs, search_dirs=None):
[saturated uint48 UNKNOWN = 0, saturated uint48 USEC_PER_LSB = 100]
"""

print('parse_namespaces source_dirs=\'%s\' search_dirs=\'%s\'' % (source_dirs, search_dirs))

# noinspection PyShadowingNames
def walk(walk_dirs):
import fnmatch
Expand Down