View Single Post
  #1   Spotlight this post!  
Unread 28-05-2011, 09:19
Jogo Jogo is offline
Registered User
FRC #0353 (Pobots)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2007
Location: NY
Posts: 83
Jogo is on a distinguished road
Obtaining Velocity from an encoder

As far as I know, the WPI robotics library still has a glitch in that it cannot calculate the velocity from more than one encoder. So, I want to write manual code to calculate velocity.

Is the code in the picture sufficient, or should I be doing some averaging or some other way to get rid of noise? Note that it is just a quick mod of the example code.
Attached Thumbnails
Click image for larger version

Name:	encoderVelocityLABView.png
Views:	96
Size:	38.5 KB
ID:	10730