Skip to content

Pigeon 2

Charles Kennedy edited this page Jan 16, 2025 · 1 revision

Pigeon 2 is a gyro made by CTRE and can be connected to the CAN

It can be initalized using this piece of code

private final Pigeon2 pidgey = new Pigeon2(1, "rio"); // Pigeon is on roboRIO CAN Bus with device ID 1

To get info from it you can just use either GetRotation2d() or GetRotation3d

Clone this wiki locally