Setting Up a Programming Environment Mac (2022 Fall)
These are the MacOS instructions. If you get stuck, ping the programming slack channel and include the log.txt file that if there are script failures. PLEASE ATTEMPT TO INSTALL AT HOME AND AT LEAST DOWNLOAD THE FRCLibResoures2022Mac.zip BEFORE COMING TO LAB. DO NOT WAIT UNTIL THE LAST MINUTE! It may take 2-3 hours.
Before starting:
- Save and close 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
- 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:
- git
- clang-format
- pre-commit
- unzip
Initial instructions (Bare minimum before lab)
- Download and unzip FRCLibResoures2022Mac.zip
- There now should be a folder with necessary resources at ~/Downloads/FRCLibResoures2022Mac.
VSCode & WPILIB
Installs WPILib 2022.4.1 with VSCode 1.63.2.
- In ~/Downloads/FRCLibResoures2022Mac, open WPILib_macOS-2022.4.1.dmg 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.zip found in the ~/Downloads/FRCLibResoures2022Mac directory.
- Click Finish and move the shortcut to the dock.
Install Xcode
- Navigate to Xcode Developer Tools in the app store
- Follow the App Store instructions to install Xcode Developer Tools
3rd party WPILib libraries
- Open a terminal
- Navigate to the unzipped and downloaded resources
- Run the install script
cd ~/Downloads/FRCLibResoures2022Mac
./frc_install.sh
Install VSCode plugins
- Open VSCode
- Select Extensions from the left navigation bar
- Search for xaver.clang-format
- Install the Clang-Format extension