This is a quick guide to get setup to start programming.
You need to install 4 different things. The first is FRC Driver Station, which allows you to control the robot. The second is the CTRE Toolsuite, which is the library for the motor controllers. Next is the REV Hardware Client, which allows you to interface with the PDP and SparkMAX motor controllers. Finally, WPILib is the IDE we will use to write the robot code.
- Download and run the installer from here
- Needs login with NI Account. Make one if you don’t have one
- Click Next for everything. There is no need to fill in any information
- You can skip NI Licensing
- If you encounter errors during the installation, try running the offline installer instead.
- Click here
- Download the latest version of “CTRE Phoenix Framework Installer” for your os
- Run the installer
- Click here
- Download the latest version of the REV Hardware Client
- Run the installer
- Click here and download the Windows 64 iso file
- Right click on the downloaded iso and mount the disk image
- Run the installer in the disk
- You should choose the option that reinstalls VScode on your computer (Top Left)
Roborio (the brain of the robot) needs to be configured correctly for it to work for this year. Here are the steps.
- Updating the firmware and imaging the Roborio: https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-3/imaging-your-roborio.html?highlight=robo%20rio%20imaging
- Install Phoenix Library/Diagnostic
- Open Phoenix Tuner and connect to the robot
- Click “Install Phoenix Library/Diagnostics”
These are the steps for configuring the radio. here.
- Install radio configuration utility: https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-3/radio-programming.html?highlight=radio
- Choose radio type
- Load firmware
- Type in team number, then configure.
The PDP, PCM, Roborio, and Motor Controllers may need firmware updates.
Updating the CTRE Motor Controllers, Pidgeon
- Connect to roborio and open up Phoenix Tuner
- Navigate to CAN Devices tab.
- Under Field-Upgrade Device Firmware, locate the most up-to-date CRF, and click Update Device
Updating the PDP, CAN Motor Controllers
- Connect to the PDP and open up REV Hardware Client
- Select Check for Updates, then click Update All
The driver station is the program used to control the Robot. You can get familiar with the layout of the program here. However, there are some settings that should be set to help you debug and connect to the robot.
- Set the team number at the third tab (gear tab).
- Change this whenever you work on a different robot.
- At the same tab, change the dashboard type to Shuffleboard.
After finishing this guide, you should go on to the First Program guide.