Skip to content

Jolyon-S/dronecan_dsdlc

 
 

Repository files navigation

DroneCAN DSDL Code Generator

This project contains tools to generate C code for packing DroneCAN messages.

Dependencies

  • pip install empy==3.3.4
  • pip install pexpect

How To Use

To generate C code please ensure that you have https://github.com/dronecan/pydronecan https://github.com/dronecan/DSDL https://github.com/dronecan/libcanard cloned alongside this project. Then run the following command:

python dronecan_dsdlc/dronecan_dsdlc.py -O <output directory> <list of namespace dirs>
# e.g. python dronecan_dsdlc/dronecan_dsdlc.py -O dsdlc_generated libraries/AP_UAVCAN/dsdl/ardupilot DSDL/uavcan

To run the test simply execute the following command

python dronecan_dsdlc/dronecan_dsdlc.py -O <output directory> <list of namespace dirs> --run-test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • EmberScript 49.9%
  • Python 47.1%
  • Shell 1.7%
  • Other 1.3%