View Single Post
  #6   Spotlight this post!  
Unread 06-02-2013, 17:57
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: Gyro Absolute Angle

Quote:
Originally Posted by BradAMiller View Post
The input is the potentiometer and the output is the speed controller. You need to choose PID values that scale the inputs (0-5V) to match the required motor value outputs (-1 to 1).
We've found that analog channels use averagevalue (0-1024), not averagevoltage (0-5V), in the PID loop. Your setpoints will need to be in the 0-1024 range.

Just a heads-up about the hardware: We've used a LOT of these over the years (probably 6 on this year's bot) and have broken our share of shafts in the process. Be sure to protect them from side loads across the shaft. For our swerve modules, this meant using flexible mounts for the body, and coupling the shaft with flexible tubing

Good luck.
Reply With Quote