Skip to content

WPILib

Description

The WPI Robotics Library (WPILib) is the standard software library provided for teams to write code for their FRC® robots. WPILib contains a set of useful classes and subroutines for interfacing with various parts of the FRC control system (such as sensors, motor controllers, and the driver station), as well as an assortment of other utility functions.

Documentation

API Reference

Installation

Download the installer for your operating system and run it. Follow the official installation instructions details.

It is important to update WPILib on all team computers whenever a new version is released.

A new major WPILib version is released before every FRC season a few days before kickoff. Major versions include new features, improvements, and bug fixes, and often change or deprecate existing functionality. It is important to review their yearly changelog to see what has changed. Robot code projects created with older versions of WPILib must be updated to the latest version before being able to be built and deployed to robots. This can be done in WPILib VSCode.

There are usually a few mid-season updates to WPILib as well to fix critical bugs. No new features will be added mid-season, so compatibility should not be an issue. It is important to update to these versions as soon as possible to avoid issues.