Before you can write any robot code, you need the FRC development environment installed on your computer. This lesson walks through installing WPILib and its bundled version of VS Code from the offline installer, then adding the VMX-pi extension so your projects can talk to the controller. Follow the steps in order — a clean setup here saves you a lot of trouble later.
What you need first
- The
WPILibInstallerpackage downloaded to your computer. - The
offlineVsCode.zipfile downloaded earlier (used in step 6).
Installation Steps
- Extract the WPILibInstaller. Unzip the WPILibInstaller to a folder on your system.
- Open the application. Navigate to the extracted folder and launch the installer application.
- Install for all users. Select the option to install WPILib for all users on your computer.
- Select / download VS Code. Choose the option to download or select an existing VS Code installation.
- Select an existing download. Opt for selecting an existing VS Code download.
- Select the offline VS Code ZIP file. Browse to and select the
offlineVsCode.zipfile you downloaded earlier. - Execute install. Complete the installation by clicking the Install button.
- Open FRC VS Code 2020. Launch the newly installed FRC VS Code from your applications list.
- Install the VMX-pi WPILib extension. Open the Extensions view in VS Code, search for VMX-pi WPILib, and install the extension to enable compatibility.
- For C++ users — run the Gradle command. If you plan to code in C++, open the terminal in VS Code and run the Gradle command below to install the Raspbian toolchain.
C++ toolchain command (step 10)
installRaspbianToolchain
Why this matters for C++. The Raspbian toolchain is what lets your C++ code be compiled for the VMX-pi's processor. If you skip this step, your Java projects may still build, but C++ projects will fail to deploy to the robot.
Once the installation finishes and the VMX-pi extension is active, you have a working offline FRC environment. In the next lesson you'll set up the Control Station so you can enable, disable, and drive your robot.