View Single Post
  #19   Spotlight this post!  
Unread 03-04-2014, 23:29
Ziv Ziv is offline
Has code to be writing...
FRC #0125 (Nutrons)
Team Role: Alumni
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Boston
Posts: 39
Ziv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of light
Re: paper: Take-Back-Half Shooter Wheel Speed Control

Quote:
Originally Posted by The Doctor View Post
I have found this to be an acceptable take-back-half algorithm:

Code:
cval -= (cval - goodval) / 2;
Where cval is the current value of [whatever] and goodval is the ideal point (what you want it to be at)
Where's the feedback here? How do you find goodval? The fact that you're setting cval suggests it's an output, and if you somehow knew the ideal output (namely goodval) then you wouldn't need closed loop control in the first place.

Now, if you instead have

Code:
cval -= (sensorval - goodval) / 2;
which seems to be what you were getting at, then what you secretly have is an integral controller (just the I from PID) with coefficient 1/2.
Reply With Quote