- Make sure you meet the Phoenix 6 System Requirements
- Install Phoenix 6 using the C++ (Linux) instructions
- If using a CANivore, install canivore-usb
- Install libsdl2:
sudo apt install libsdl2-dev
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)]
.