| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This tool takes DBC files and spits out a header file that lets you encode and decode messages easily.
mkdir build && cd build
cmake ..
makeThe build process automatically runs the generator. You can find the resulting API at: build/generated/UMDLoopCANProtocol.hpp
To ensure everything is working correctly:
make protocol-test
./protocol-testTo make the generation work, you must follow some conventions:
The generator uses prefixes to decide which namespace a signal belongs to. If you want a signal to appear in the Servo namespace, it must start with servo_.
Currently supported prefixes: dc_motor, servo, stepper, laser, led, rotary_encoder, limit_switch, diode, ccd, spectroscopy, fluorometry, power, swerve, arm, kill, pcb.
If you are adding a completely new type of hardware (e.g., a lidar), follow these steps:
For PCBs that have multiple identical ports (like a Servo board with 8 slots), name your signals with a port suffix (e.g., servo_position_target_0 through _7).
For "flat" messages (no multiplexer), the generator groups every signal inside that CAN frame into a single C++ struct.
| Back | FazBrowse Home | New Git URL |