View Single Post
  #16   Spotlight this post!  
Unread 15-02-2011, 23:22
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: Encoder fixed in WPILib 2011?

Quote:
Originally Posted by Jeanne Boyarsky View Post
How did you create the first (dummy) encoder? Instantiating using the same arguments gives channel in use errors, no?
I wrote a (fairly quick) VI that takes A phase, B phase, and count scaler and outputs a working encoder. It creates the dummy using the same channels on slot 6, then creates the real one on slot 4. It assumes 1x decoding since that's what we use.

I haven't tested it heavily (still working on mechanism tuning, we haven't tuned the drivetrain yet), so I am hesitant to post it here.

Quick answer:
Create one on slot 6 and one on slot 4. Since we don't use slot 6, that solves all of our problems.
__________________
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