Thread: PID question
View Single Post
  #1   Spotlight this post!  
Unread 10-01-2008, 15:27
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
PID question

I've seen several PID sources posted on the forum, and all of them divide the proportional output by 100, the integral output by 1000 and the derivative output by 10. Then the return value of the PID goes something like this:

Code:
return Limit_Mix(2000 + 127 + P + I - D);
Why do this? Why not just set the gains for P, I, and D to something that'll work within the range of 0 to 255 and the integral max to 255 and min to 0? I don't quite understand where the 100, 1000, and 10 came from either? Could someone please explain this?

Thanks,
Jedd

Edit - Another question? How do most people find reasonable constants for the gains of P, I and D?

Last edited by bronxbomber92 : 10-01-2008 at 15:31.