Thread: Swerve drives
View Single Post
  #22   Spotlight this post!  
Unread 19-04-2014, 15:27
Jefferson Jefferson is offline
Registered User
AKA: Jeff Clements
FRC #0016 (Bomb Squad)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mountain Home, AR
Posts: 258
Jefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond repute
Re: Swerve drives

Quote:
Originally Posted by ekapalka View Post
I'm not sure if this is true or not, but I've been told that a good thing to use for swerve drives are ten-turn potentiometers. The benefit being that you can easily plug it into the following
Code:
angle=(potentiometer_voltage-inherent_zero)*voltage_to_degrees
to get to the angle, whereas with other potentiometers you need to account for some sort of wraparound
If you are using the WPILib PIDController, it's as simple as setting the PIDController to continuous when using a continuous rotation encoder/potentiometer.

You have to keep up with turns and unwind if you get close to the limit on a 10 turn pot.