Gyro error on RoboRIO

I’ve been attempting to get a gyroscope working on the team’s test board, but I keep getting a cryptic error on the driver station when I upload the code. The error I get is:

Error on line 34 of Gyro.cpp: A parameter is out of range.: channel (must be accumulator channel)

Any advice on how to proceed? When I remove the gyro code, it works just fine.

What channel is your gyro on? They can only be attached to analog inputs 0 and 1.

Looked again and realized that it was actually attached to a PWM port. Haha.