|
Re: E4T Encoder Help
Are you setting the other parameters for the encoder? For getDistance() to make sense you need to set number of pulses per revolution (I think 360 for the E4T), I don't know what it defaults to. The screen steps detail this:
http://wpilib.screenstepslive.com/s/...or-other-shaft
Also try checking the outputs of get() or getRaw() from the encoder object (not the DIO object). These should give raw encoder counts rather than a distance.
__________________
FRC Team 498 (Peoria, AZ), Student: 2004 - 2007
FRC Team 498 (Peoria, AZ), Mentor: 2008 - 2011
FRC Team 167 (Iowa City, IA), Mentor: 2012 - 2014
FRC Team 2662 (Tolleson, AZ), Mentor: 2014 - Present
|