View Single Post
  #4   Spotlight this post!  
Unread 06-02-2008, 16:05
kDude kDude is offline
Registered User
FRC #2450 (RaiderBots)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Minnesota
Posts: 37
kDude is an unknown quantity at this point
Re: controller sensitivity

Quote:
Originally Posted by psy_wombats View Post
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 cubic function. 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

Hope that helps.
Care to explain more? Sorry, I'm just very confused as to what exactly that does. And the link doesn't work.