View Single Post
  #11   Spotlight this post!  
Unread 12-01-2007, 15:05
Robby's Avatar
Robby Robby is offline
Registered User
AKA: Kevin Beranek
FRC #0269 (Cooney Robotics)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Wisconsin
Posts: 47
Robby has a spectacular aura aboutRobby has a spectacular aura about
Re: Potentiometer PID

Quote:
Originally Posted by Greg Marra View Post
Correct me if I am wrong, but that is NOT a PID loop. All that is going on there is a proportional control based on distance of the arm from the target. That code does not account for the integral of error or the rate of change of error, making it a P loop, not a PID loop.

So that will control the arm, but it is not PID control.
Correct. Although the way PID loops are generally created is by adjusting the P portion until it almost works and then adding the I portion until it is almost there and then adding the D portion to make it work better. A lot of the time, depending of what you are doing and how much precision you need, you'll find that the P control may be all that you need.