Quote:
Originally Posted by psy_wombats
As far as joystick sensitivity goes, our team has been using this:
Code:
long ramping (unsigned char ramp)
{
long answer = 0;
answer = ((long)ramp - 127);
answer = ((answer) * (answer) * (answer));
answer = ((answer) / (128 * 128));
answer = (answer) + (127);
return answer;
}
It's not a sine function, but cubic. You should be able to have max speed at full forward, but also have better control with lower values. Something like:
http://www.chiefdelphi.com/forums/at...9&d=1201127844
|
We're using a quadratic function. The only problem is that x*x is always positive, so we defined an absolute value function and do x*abs(x).