View Single Post
  #22   Spotlight this post!  
Unread 05-02-2011, 18:09
Shantali Shantali is offline
Registered User
FRC #3609
 
Join Date: Jan 2011
Location: Maine, US
Posts: 9
Shantali is an unknown quantity at this point
Re: Single Joystick Tank Drive

I've tried having a dead zone, treating everything within 0.1 from the axis, as 0.
Then problem is that when you move the joystick all the way right to turn on the spot, then move it slightly forward, then slightly backwards, you can hear the motors clicking as they're going from "left forward right backwards" to "left backwards right forward".

I tried to play around with giving it more of a dead zone when turning on the spot
Code:
//x, y = joystick position
if (abs(x) > 0.5){
   if (abs(y) < 0.3)
      y = 0;}
to fix that, but it didn't work that well either.

I think my driver will have to get used to driving the way it was originally, with swapped reverses.
Reply With Quote