View Single Post
  #2   Spotlight this post!  
Unread 21-01-2009, 21:53
elcron elcron is offline
Programmer
FRC #0348
Team Role: Programmer
 
Join Date: Apr 2008
Rookie Year: 2008
Location: MA
Posts: 3
elcron is an unknown quantity at this point
Re: Reading Encoders?

Are you using labview or C++?

If Your using C++ wpilib has an encoder class.
PHP Code:
Encoder *= new Encoder(12); //1 & 2 = your dig io pins for channel a & b
e->Start();
int distance e->GetDistance();
// use distance for whatever you want 
Reply With Quote