Thread: PID help
View Single Post
  #1   Spotlight this post!  
Unread 20-01-2015, 01:55
Skyehawk's Avatar
Skyehawk Skyehawk is offline
Nuts N' Bolts
AKA: Skye Leake
FRC #0876 (Thunder Robotics)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2011
Location: Northwood, ND
Posts: 221
Skyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to all
PID help

I am aware that PID threads are pretty common here on CD, and I have read most of them, unfortunately I am stuck in a college dorm and lack the ability to give this code a whirl.

Code: http://i.imgur.com/rJsdpB6.png

This is my periodic tasks. I am using a loop to check where our lifter mechanism is located (via THIS encoder, I have the right numbers for it to return inches), I am wondering if I have all I need here to get a basic PID running.

Here is how I plan to tune it (provided the code is fine):
My first step in tuning would be to set the P to about .25 (small enough?) I would have I and D at zero. After I reached a point of instability I would back off on Proportional a little and add in some Integral. I only plan on this being a PI controller, as I don't believe I will need any Derivative. Does this sound like the right tuning method?

Thanks for any help!
Reply With Quote