This is an old revision of the document!
The ADXRS450 gyro board is a single-axis industrial sensor, designed to get teams up and running quickly without having to load 3rd-party libraries. This gyro is readily accessible through FIRST Choice and is recommended for all teams, including those with no gyro experience. It plugs directly into the SPI port on the RoboRIO and libraries are already included in WPILib - all you have to do is declare it in your robot code and use it!
Supporting code for the ADXRS450 is only available for programming languages supported by FIRST. If your team wants to use this board on other platforms or with other programming languages, please refer to the ADXRS450 product datasheet for more information on how to communicate with this gyro.
If you're looking for information on other ADI donation resources, click here to go back to the main page.
There are currently three versions of the FRC Gyro board. The libraries detailed on this page apply to all of these versions, however there are some considerations to take into account for each one.
This version was made available to FRC teams through the 2016 FRC season. It includes both the ADXRS450 gyroscope and the ADXL362 accelerometer. Both sensors on this board continue to be supported by WPILib, so the accelerometer library can be used to read acceleration data just like the gyro library is used to read rotation rate.
This version of the gyro board was available for the 2017 and 2018 FRC seasons. The accelerometer was removed in favor of a jumper that allows you to configure the Chip Select (CS) pin used to communicate with the sensor. This change allowed users to have other sensors (or SPI peripherals) on the bus without the gyro interfering. To use the libraries built into WPILib without any changes, the jumper should be installed as shown in the image to the left. If you want to use a different setting, you will need to change the Chip Select (CS) pin address in your robot code. The sections below detail how to do this for each of the three supported languages.
This is the lower-cost, more robust version of the sensor board made available to teams for the 2019 FRC season. To make using the sensor even easier for teams, we removed the chip select pin jumpers and added a solderable jumper. This change improves reliability as there is no risk of the jumper accidentally getting lost or removed, but still allows teams the flexibility of adding additional devices to the SPI bus.
To help the robot minimize start-up drift and improve overall sensor performance, an offset calibration function has been built into the gyro driver. This function captures several seconds worth of data and calculates an average offset which is then applied to the sensor output. By default, calibration is automatically started once the RoboRIO begins executing user code and usually takes about 10 seconds to complete.