|
Re: Tank Drive Can Jaguar PID Speed Control
Thank you for the kind words. Using your idea here is what I came up with for setting the dead band.
Quote:
|
if ((gp.getRawAxis(2) < .001) && (gp.getRawAxis(2) > -.001)) leftFront.disableControl(); else leftFront.enableControl();
|
I have 4 of those statements, one for each drive motor. works like a dream! Hopefully this helps others out as well! I have placed them in the same try catch block as the "setX" inputs.
__________________
"Jack of all trades, master of none, though offtimes better than master of one".
Last edited by coreyjon : 13-04-2012 at 21:47.
|