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.

  1. In Downloads/FRCLibResoures2022Windows10, open WPILib_Windows64-2022.4.1.iso to mount the installer
  2. Open the WPILibInstaller
  3. 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.zip found in the ~/Downloads/FRCLibResoures2022Windows10 directory.
  4. Click Finish .

Install Visual Studio 2022

  1. In ~/Downloads/FRCLibResoures2022Windows10 run VisualStudioSetup.exe
  2. Select and make sure the Desktop Development with C++ box is checked for installation
  3. Select Install and follower any remaining installer instructions

3rd party WPILib library installers

  1. NI Game tools
    • Use the ni-frc-2022-game-tools_22.0.1_offline installer to install all default tools
    • Disable fast bootup during this installation
  2. FRC Radio Configuration Utility
    • Unzip FRC_Radio_Configuration_22_0_1 and move the application to your desktop.
  3. CTRE Phoenix Framework
    • Use the CTRE_Phoenix_Framework_v5.21.3.0 application to install all CTRE tools and libraries
  4. Rev Hardware Client
    • Use REV-Hardware-Client-Setup-1.4.3 to install REV's hardware toolset
  5. Navx install
    • Unzip navx-mxp.zip and use the unpacked setup application to install the Navx libraries and resources.

Developer tools and more 3rd part WPILib libraries

  1. Run a new Command Prompt window in administrator mode
    • Search for command prompt, right click the application, and select run as admin
  2. 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'))
  1. 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
  1. Run another Command Prompt window in administrator mode
  2. Copy and paste the following commands to install pre-commit:
pip install pre-commit
Move C:\Python310\Scripts\pre-commit*  C:\Python310\
  1. Change directories to the unzipped resource directory
chdir Downloads\FRCLibResources2022Windows10\
  1. 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

  1. Open VSCode
  2. Select Extensions from the left navigation bar
  3. Search for xaver.clang-format
  4. Install the Clang-Format extension