|
Re: Reducing the sentivity of the joystick in easyC Pro
When you have the x and y coordinates, just multiply them by themselves minus a constant and then take the square root. It should look like:
Code:
joystickx=joystickx*(joystickx-2);
joystickx=squareroot(joystickx);
joysticky=joysticky*(joysticky-2);
joysticky=squareroot(joysticky);
then just use the coordinates as you normally would. This will reduce the sensitivity a little but will still allow extremes.
__________________
Everything can always be blamed on software:
The claw can't pick up the trackball-
programmers must have messed up the claw function.
The driver crashes the robot into a wall-
the drive code must not be responsive enough.
The robot repeatedly displays "HELLO WORLD"-
that probably is software.
|