View Single Post
  #3   Spotlight this post!  
Unread 13-04-2012, 21:12
coreyjon's Avatar
coreyjon coreyjon is offline
Flight Engineer
FRC #0250 (Team 250 Dynamos)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Upstate, Ny
Posts: 184
coreyjon is just really nicecoreyjon is just really nicecoreyjon is just really nicecoreyjon is just really nicecoreyjon is just really nice
Send a message via AIM to coreyjon
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.
Reply With Quote