|
Re: Reducing the sentivity of the joystick in easyC Pro
There are two things you can do fairly easily that might work for you:
1. Establish a deadband for your joystick. A deadband gives an area for your joystick that won't move the robot. For example you can set a deadband of 20 so that unless your joystick moves past 147 or 107, then it sends 127 to the robot. When past 147 input joystick -20 to the robot. When past 107 input joystick + 20 to the robot. This solution is easy, but you loose the extremes and your bot may still be too twitchy.
2. Use Excel to generate your lookup table. An array of 256 values. You may prefer to use a hyperbolic function so that values close to joystick center have very little effect, but extreme values will input full power to your motors. You could combine this with your deadband for best effect. Save the file as a comma delimited text for easier transfer into EasyC.
Hope this helps!
Dan
|