
14-01-2012, 23:42
|
|
Programmer-Electrical-Mechanical
 FRC #0228 (Gus)
Team Role: Mentor
|
|
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
|
|
|
Re: Getting speed from an encoder
Quote:
Originally Posted by techkid86
i am not sure if this will give the same result, but the WPI libs already have an encoder class, and it can give rate in distance. theoretically this is the same, but what ever. im not sure if you are writing your own, but, if you want just he encoder funtions, they are as follows.
Encoder.setDistancePerPulse(x);
Encoder.getRate();
not sure what you wanted but i hope i could help ^_^ good luck ^_^
|
Thankyou ill try both 
|