Robot software stack
Content
This repo contains all the software used on our robots:
can-io-firmwarecontains the firmware that runs on the IO boardmotor-control-firmwarecontains the firmware that runs on the motor boardproximity-beacon-firmwarecontains the firmware that runs on the proximity beacon, it's the same code as the motor board but with a different application that is tailored to the needs of our proximity beacon modulemaster-firmwarecontains the software that runs on the master board, it interfaces all the other boards over CAN and runs the robot's "intelligence".eurobotcontains documentation and cofiguration files specific to the Eurobot competitionsensor-firmwarecontains code running on the sensor boarduwb-beacon-firmwarecontains code and documentation that runs on the UWB beacon board
Other important software components can be found in this repo:
libcontains all the libraries and building blocks we use on multiple boards, which includes:lib/can-bootloaderthe bootloader that allows us to update our boards (IO and motor) over CANlib/ChibiOSthe RTOS/HAL we use on all our boardslib/uavcanthe CAN communication library we use on all our boardslib/errora logging librarylib/parametera library to create and manage configurations of boardslib/msgbusa publish/subscribe library for inter thread communication- and more.
toolsgroups all tools we use to develop on the robot including:tools/pid-tunera GUI to tune PID gains of motor boards over CAN, written using Python and Qttools/studioa set of introspection tools written in Python and Qt to debug our robots
uavcan_data_typescontains the custom message definitions (DSDL) for the UAVCAN communication protocolcigroups scripts and Docker files for our continuous integration serveruser-guidecontains high-level documentation about software and electronics components used on our robots
Coding style
We use clang-format (tested with version 7 or greater) to enforce proper source code formatting.
You can use the format-all.sh script in the root directory to format the whole source tree.
You can also use clang-format -i --style=file src/foo.c to format a particular file.
Finally, some editors include support for clang-format through plugin, check for yourself.