Setting Up a Programming Environment Windows 10 (2022 Fall) - team1868/1868wiki GitHub Wiki
These are the Windows 10 instructions. If you get stuck, ping the programming slack channel and include the step or command you got stuck on. PLEASE ATTEMPT TO INSTALL AT HOME AND AT LEAST DOWNLOAD THE FRCLibResoures2022Windows10.zip BEFORE COMING TO LAB. DO NOT WAIT UNTIL THE LAST MINUTE! It may take over an hour.
Before starting:
- Make sure you have admin access on this computer
- Disable antivirus
- Save other application work (installation may require restarting computer)
- Connect to good wifi (LAB WIFI IS NOT GOOD WIFI)
This instruction set will install the 2022 resources for:
- VSCode with WPILib
- FRC Game Tools
- REV Hardware Clients
- FRC Radio Configuration Utility
- NavX Library from KauaiLabs
- Phoenix Library from CTRE
- Spark Max software from Rev Robotics
- PhotonVision resources
Additionally, the following command line and version control utilities will also be installed:
- choco -- a windows package manager, like apt and homebrew
- git
- llvm -- includes clang-format
- pre-commit
- unzip
- python
- pip
Initial instructions (Bare minimum before lab)
- Download and unzip FRCLibResoures2022Windows.zip
- There now should be a folder with necessary resources at ~/Downloads/FRCLibResoures2022Windows10.
VSCode & WPILIB
Installs WPILib 2022.4.1 with VSCode 1.63.2.
- In Downloads/FRCLibResoures2022Windows10, open WPILib_Windows64-2022.4.1.iso to mount the installer
- Open the WPILibInstaller
- Inside the installer
- Select Start
- Select Install for this User
- Select Select existing VS Code zip for offline install on this computer and in the pop up file selection window choose
WPILib-VSCode-1.63.2.zipfound in the~/Downloads/FRCLibResoures2022Windows10directory.
- Click Finish .
Install Visual Studio 2022
- In
~/Downloads/FRCLibResoures2022Windows10runVisualStudioSetup.exe - Select and make sure the
Desktop Development with C++box is checked for installation - Select
Installand follower any remaining installer instructions
3rd party WPILib library installers
- NI Game tools
- Use the
ni-frc-2022-game-tools_22.0.1_offlineinstaller to install all default tools - Disable fast bootup during this installation
- Use the
- FRC Radio Configuration Utility
- Unzip
FRC_Radio_Configuration_22_0_1and move the application to your desktop.
- Unzip
- CTRE Phoenix Framework
- Use the
CTRE_Phoenix_Framework_v5.21.3.0application to install all CTRE tools and libraries
- Use the
- Rev Hardware Client
- Use
REV-Hardware-Client-Setup-1.4.3to install REV's hardware toolset
- Use
- Navx install
- Unzip
navx-mxp.zipand use the unpackedsetupapplication to install the Navx libraries and resources.
- Unzip
Developer tools and more 3rd part WPILib libraries
- Run a new
Command Promptwindow in administrator mode- Search for command prompt, right click the application, and select run as admin
- Copy and paste the following commands to install choco:
PowerShell -ExecutionPolicy Bypass
SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
- Copy and paste the following commands ONE AT A TIME to install developer tools:
choco install git -y
choco install llvm -y
choco install unzip -y
choco install python -y
choco install pip -y
- Run another
Command Promptwindow in administrator mode - Copy and paste the following commands to install pre-commit:
pip install pre-commit
Move C:\Python310\Scripts\pre-commit* C:\Python310\
- Change directories to the unzipped resource directory
chdir Downloads\FRCLibResources2022Windows10\
- Copy and paste the following commands into Command Prompt to install the REV and PhotonVision libraries:
unzip -d REVLib-offline-v2022.1.1 -o REVLib-offline-v2022.1.1.zip
Move REVLib-offline-v2022.1.1\maven\com\revrobotics C:\Users\Public\wpilib\2022\maven\com
Move REVLib-offline-v2022.1.1\vendordeps\REVLIB.json C:\Users\Public\wpilib\2022\vendordeps\
Move photonlib.json C:\Users\Public\wpilib\2022\vendordeps\
Install VSCode plugins
- Open VSCode
- Select
Extensions fromthe left navigation bar - Search for
xaver.clang-format - Install the
Clang-Formatextension