Quote:
Originally Posted by mika.perlin
//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
~