View Single Post
  #4   Spotlight this post!  
Unread 23-11-2008, 12:18
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,186
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Encoders and distance (labview)

The formula you are looking for is this

Code:
distance = (ticks) * (Gear Ratio) * (wheel diameter * pi)/(ticks per rev * scale)
Where Gear ratio is amount of times the wheel spins per amount of times the encoder spins, and scale is 4 (per what Kevin said above).

As I last saw them, the WPI Robotics Library encoder VI's had provisioning for real world unit distance feedback. The VI's had setters and getters for the gear ratio and distance travelled, respectively.

Last edited by Tom Bottiglieri : 23-11-2008 at 12:21.
Reply With Quote