View Single Post
  #1   Spotlight this post!  
Unread 20-02-2010, 11:40
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
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: Mecanum Drive Not Working

Quote:
Originally Posted by mika.perlin View Post
//Square Joystick inputs for better precision control
x = mainStick.GetX(); x = x*x;
y = mainStick.GetY(); y = y*y;
When you square x (and y) you change their range from [-1 to +1] to [0 to +1] .

Perhaps you accounted for this in your code but I didn't see it with a cursory review.

Try x*x*x instead of x*x. That preserves the sign.

See the following posts:

TUNABLE JOYSTICK SENSITIVITY
http://www.chiefdelphi.com/forums/sh...d.php?p=921992

MECANUM CODE
http://www.chiefdelphi.com/forums/sh...383#post916383




~
Reply With Quote