Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a new git branch in the HW Bridge repository
  2. In your new branch, make the necessary edits to the YAML CAN file (can/uwrt_mars_rover_can.yaml)
  3. In the root directory of the HW Bridge repository, run: python3 scripts/generate_can.py
  4. Make sure that the following required python packages are installed before running the script:
    • python3 -m pip install cantools
    • python3 -m pip install pyyaml==5.1
  5. Apply formatting to all generated .c, .cpp, and .h files under can/generated
  6. You can now make use of any of the generated CAN enums, structs, and functions under can/generated

...