|
Re: Traction control: How do I tune a PID controller with variable gain?
Simply add 1 to the denominator of your ratio before dividing by it. This will elimate your infinity case.
Is pushing the joystick forward negative or positive? I can't remember.
I only ask because assuming you're accelerating, you're adding a positive value to your joystick. I'm curious if you should be adding that positive number, or subtracting it to decrease acceleration.
Last edited by Tom Line : 21-03-2009 at 22:36.
|