View Single Post
  #2   Spotlight this post!  
Unread 13-04-2012, 20:24
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,042
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Tank Drive Can Jaguar PID Speed Control

Quote:
Originally Posted by coreyjon View Post
...
First let me say: Wonderfully detailed and articulate post. Kudos.

For the dead spot (aka "deadband" or "neutral zone"), try the following test: Add something like this to your code:

if ((joystick<threshold) && (joystick>-threshold)) joystick=0;

... if that doesn't work, I think you may be at the mercy of the limited control you have over the Jag's built-in PID.

If you ran the encoders to the cRIO, and did the speed control there instead, you could easily bypass the PID and send a zero voltage or %Vbus command to the Jag whenever the joystick was in the neutral zone.


Reply With Quote