View Single Post
  #18   Spotlight this post!  
Unread 06-01-2013, 18:16
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Questions about Encoders and PIDControllers

Quote:
Originally Posted by dheerm View Post
What do you mean by integrate the output? I take calculus and know the concepts behind PID but this wording is confusing me a bit. Could you please provide an example?
Normally the output from the PID is the command that gets sent to the motor every control iteration.

Instead of doing that, keep an accumulator which gets incremented each control iteration by the PID output times some gain.

e.g.

accumulator += gain * PID_output

Use the value in the accumulator as the command to the motor.

(you'll also want to clamp the value in the accumulator)



Last edited by Ether : 06-01-2013 at 18:18.
Reply With Quote