View Single Post
  #10   Spotlight this post!  
Unread 31-01-2013, 22:08
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: Gyro PID Programming

Quote:
Originally Posted by Jefferson View Post
True, but if the setpoint is ever anything but zero, it may not take the shortest route.
That wasn't the question the OP was asking.


But if it were, just correct the angle_error instead and use

setpoint = angle_error; process_variable = 0;

or

setpoint = 0; process_variable = - angle_error;



Reply With Quote