Thread: PID Help
View Single Post
  #3   Spotlight this post!  
Unread 06-02-2014, 10:42
gpetilli gpetilli is offline
Registered User
FRC #1559
 
Join Date: Jan 2009
Location: Victor, NY
Posts: 285
gpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to all
Re: PID Help

All robots have the issue that the motors on opposite sides need to be driven inverse from each other. Some teams reverse the motor leads, but if you use encoders (which are not as easy to invert) it is much easier to invert (typically the right side) in software.

The Jaguars use a VELOCITY PID algorithm that is best tuned by starting with the I term small (say 0.01) and raise it slowly until it becomes unstable. Then increase the P term to make it more stable.

I am attaching a spreadsheet that we use for initial estimates of the PID values. The ones you want to use are the last two columns labeled JagI and JagP. We typically tell the jaguar that the encoder lines is the number of ticks per inch (not ticks per rev) so the reported speed is in inches per second, not RPM. If you want RPM, the values in the table need to be scaled.
Attached Files
File Type: xlsx Drivetrain_Model_KOP2014.xlsx (342.4 KB, 20 views)
Reply With Quote