View Single Post
  #3   Spotlight this post!  
Unread 02-03-2013, 18:38
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Encoder Problem.

Try changing "TestEnc" to "testEnc". You're not supposed to capitalize variable names.

If that doesn't work:
  • Check the output of getRaw().
  • Make sure there's a codewheel on the shaft you're rotating, and make sure that the codewheel has lines for the encoder to read. Improper installation can result in the codewheel's markings getting scratched off, which will wreak havoc on your encoder's readout.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners