View Single Post
  #24   Spotlight this post!  
Unread 02-03-2013, 20:15
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,083
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: PID vs Bang-Bang for Shooter Consistency

Quote:
Originally Posted by lori558 View Post
With the minimum value being at 0, this caused a more inconsistent shooter since the wheel would turn off and on with too much of a difference between the two speeds.
[edit] First things first: check to make sure the motor controller brake/coast jumper is in the coast position. If it's not, put it there, change that "-0.3" back to zero, and try it. (hat tip to Billbo911) [/edit]

If that doesn't fix the problem, continue:

The code is not running fast enough.

Take that waveform chart out of there and change the loop timing to 5ms and see if it fixes the problem.


Quote:
Therefore we changed 0 to -0.3
Hmm. What motor controller are you using?



Last edited by Ether : 02-03-2013 at 21:38.
Reply With Quote