Quote:
Originally Posted by coreyjon
...
|
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.