How to program FRC Gyro and Accel 2016?

I am trying to program in Java, but I cannot find any documentation and have no idea how to access values since it uses the Roborio’s SPI ports.

How do we access the Gyro and Accelerometer values on the board in Java from the board then?


for sample Java/C++/LabVIEW code

While helpful, we would love Java documentation pertaining to the FRC Accelerometer and Gyro from the link:, which is 2016-GYROACCEL



They are both in the wpilib javadocs.

Ah! Thank you so much, I was being silly :stuck_out_tongue: