View Single Post
  #3   Spotlight this post!  
Unread 22-01-2008, 16:11
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: PID without the D

If you know how to calculate the P, I, and D errors, combining them is easy. Just use a different gain constant for each and add the outputs together.

For example output = Kgain * Kerror + Igain * Ierror + Dgain * Derror.

Once you have code that does all three, an easy way to disable any of them is to set the gain to 0 for that one.