Thread: E4P encoder
View Single Post
  #5   Spotlight this post!  
Unread 14-02-2011, 15:14
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: E4P encoder

Try looking at both Rate and Distance in software. If Distance works fine (and counts correctly, up and down) but Rate returns 0, that is a known bug in the encoder library.

The only workarounds are to either write your own code based on the delta of distance and time between iterations, or allocate two encoders (since every other one works).

Another modification I suggest to the default code is to open Robot Main.vi, and look to for where it calls Disabled. Place a call to Teleop after disabled, and wire it in parallel. In Disabled, stop setting the outputs to 0. This will allow you to run your code, and probe the wires and outputs, without enabling the robot.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote