Skip to content

Instantly share code, notes, and snippets.

@GrantBGreat
Last active January 9, 2023 14:27
Show Gist options
  • Save GrantBGreat/2aebf84babec42c70a0090d3c11d50cd to your computer and use it in GitHub Desktop.
Save GrantBGreat/2aebf84babec42c70a0090d3c11d50cd to your computer and use it in GitHub Desktop.
Instructions all about first installation for WPILib and other required tools for Java

Installing WPILib and Tools

WPILib Installation
  1. Install the latest Windows 64 bit release of WPILib from the official git. The filename will start with WPILib_Windows64
  2. Right click the .iso file you had just installed and click Mount. You may get a security warning, if you do simply click open anyways. Mounting example
  3. Once the iso is mounted, open it and run the WPILibInstaller.exe file.
  4. When prompted to install VSCode, click 'download for this computer only.' Then click Next. image
  5. WPILib will now be installed, woo hoo!

More in depth instructions can be read here.


Installing 3rd Party Libraries (Offline)

Major 3rd Party Libraries for WPILib can be found here. Libraries we use include the CTRE Phoenix library and the REV Robotics library.

The library for CTRE includes an easy to use .exe installer, while the install process for REV is a bit more complicated. For the REV library, after installing the zip file, first unzip it. After unzipping the file, copy all contents to the folder located at C:\Users\Public\wpilib\2023 on your computer.

To add libraries to your project, simply open the command pallet (ctrl+shift+p) and enter the WPILib command Manage vendor libraries. Click install new libraries (offline) and select what you wish to install, then hit enter.

image


Building and Deploying Robot Code

To Build:

Open the command pallet (ctrl+shift+p) and enter the WPILib command Build Robot Code. image

To Deploy:

Open the command pallet (ctrl+shift+p) and enter the WPILib command Deploy Robot Code. *Note: This will also automatically build your code prior to deployment. image


Installing NI Game Tools
  1. Download the NI Tools from here
  2. Run the Installer and follow the instructions
  3. You may log in / create an account, however it is not needed if you are not using the vision development module.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment