View Single Post
  #6   Spotlight this post!  
Unread 27-01-2016, 11:55
gpetilli gpetilli is offline
Registered User
FRC #1559
 
Join Date: Jan 2009
Location: Victor, NY
Posts: 285
gpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to all
Re: Encoder on SRX Returning wildly differing values

Quote:
Originally Posted by Tparbotmail View Post
Just hooked up our E4P encoders, and we are getting wildly differing values. I confirmed that my java code matched the the rio browser selftest output. All firmware is up to date. I am pretty sure it is not a coding problem.

If you push the joystick forward for 2 seconds 1 encoder will read several thousand revolutions the will read a couple hundred. The wheels are spinning just fine. The robot move in perfectly straight line.

How do you confirm that an encoder is damaged or wired incorrectly?
I would start by swapping the wires from the encoders to the SRXs to see if the speed follows the encoder or the SRX.

If the encoder, reseat the optical disk using the spacing tool that came with the encoder. A long shot, but check the lines per rev on the optical disks, there are several options available from 100 per rev to 360 per rev. You can try to count them or the count should be engraved on the inner hub of the disk.

If it follows the SRX it is most likely an error in the code or that one SRX had it's defaults changed (perhaps last year) and the other did not.
Reply With Quote