CAN Messages for Rivanna3. Messages from Rivanna2 are under the Rivanna2 branch.
- Clone this repo
- Install cantools by running
py -m pip install cantools
- Note that you may need to use
python
orpython3
instead ofpy
- Note that you may need to use
- Install Kvaser Database Editor
- Version 3 recommended
- Use the Kvaser Database Editor to modify or create DBC files that define our CAN messages
- To generate C CAN structs, run
cantools generate_c_source path
, replacingpath
with the path of the DBC file - To generate the 'wrapper' header files for each message type, run
py generate.py {DBC file path}
- Add a message ID entry to
Common/include/CANStructMessageIDs.h