View Single Post
  #4   Spotlight this post!  
Unread 14-01-2012, 23:39
techkid86's Avatar
techkid86 techkid86 is offline
Magic Programer
FRC #3044 (0xBE4)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: ballston spa
Posts: 58
techkid86 is an unknown quantity at this point
Re: Getting speed from an encoder

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 ^_^
__________________
"you can build a perfect machine out of imperfect parts" -Urza
Reply With Quote