|
Re: PID vs Normal loops
OK so maybe the while statement wouldn't work all too well, but couldn't you use an inverted scale type of thing, that the lower the error, the greater the modifier on it would be? I see the risk of that overshooting, but if it's balanced right I don't see why it should.
But then again, with the code I posted, it won't overshoot it, it will just reach it, VERY VERY VERY slowly. 128 speed isn't much, but then again your error is going to be such that much won't be needed.
__________________
You can call it the programming teams fault, but we'll just force your arguments nil.
There are 10 kinds of people in the world -> Those who understand binary and those who don't.
WYSIWYG - In FIRST: Greatness
|