Thread: EP4 Encoder
View Single Post
  #1   Spotlight this post!  
Unread 31-01-2012, 18:28
Fishpaste108 Fishpaste108 is offline
Registered User
FRC #3467
 
Join Date: Jan 2012
Location: Windham, New Hampshire
Posts: 8
Fishpaste108 is an unknown quantity at this point
Exclamation EP4 Encoder

The encoders i am trying are:
  • E4P-360-236-D-H-T-3
  • E4P-250-250-D-D-D-B

I seem to be having a software issue when it comes to encoders listed above. I have a series of problems that occur when debugging.

1. The values from the encoder are increasing or decreasing based on whether the robot is enabled or not
2. The values from the encoder are all 0
3. The values of the encoder continuously decrease but stop decreasing when the motors are spinning

My team has ruled out any wiring issues.

We are programming in C++ via Windriver. All software is up to date. We are using the encoder class the the WPILib. I start the encoder in the robot init. Reset it upon entering tel-op. I retrieve the values via GetRaw(), Get(), GetDistance(), and GetDirection

Please let me know if anyone has had this problem and/or knows of a solution. Thanks!
Reply With Quote