Newbie software mentor here.
Our team is using Java for the first time and we’d like to use a gyro. We’ve read through the control system and roboRIO documentation and can’t seem to find anything that describes (1) what to do with the hardware and (2) what to do with the software.
The roboRIO has an accelerometer however the documentationwas baffling.
Snippets of documentation we found were:
"Gyros typically in the FIRST kit of parts are provided by Analog Devices, and are actually angular rate sensors. "
and
“Note: The AnalogGyro class in WPILib uses a hardware (implemented in the FPGA) accumulator to perform the integration. This means Gyros are supported on a specific, limited, set of channels. On the roboRIO this is currently Analog Inputs 0 and 1 on the on-board headers.”
So does this mean we can install a gyro made by Analog Devices in Analog inputs 0 and 1 and the sample code could be used to determine the angle? If so, what are the supported devices we can install? We do have gyros from previous years.
Also, when the Note above refers to “the FPGA”, what FPGA are they talking about?
Many thanks.