The main robot program is located inside main.cpp.
By default, the Joystick class is used for controller input. Users on Ubuntu 22.04+ or Debian Bullseye may choose to use the GameController class instead.
- Make a build directory
mkdir build
- CD into it
cd build
- Generate cmake
cmake ..
- Make the code
make
- Execute the code
./Phoenix6-Example
When the canivore-usb kernel module is installed (required when using CANivore), all SocketCAN adapters will be automatically started by the robot program.
However, if it is not installed, then SocketCAN adapters must be manually brought up before running the robot program using ./generic_socketcan_start.sh [CAN interface (default: can0)]
.