|
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
|