Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Gyro error on RoboRIO (http://www.chiefdelphi.com/forums/showthread.php?t=133457)

TTFire 24-01-2015 15:38

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.

Ben Wolsieffer 24-01-2015 15:41

Re: Gyro error on RoboRIO
 
What channel is your gyro on? They can only be attached to analog inputs 0 and 1.

TTFire 24-01-2015 15:59

Re: Gyro error on RoboRIO
 
Quote:

Originally Posted by lopsided98 (Post 1433341)
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.


All times are GMT -5. The time now is 12:01.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi