Joystick
hello,
so the problem is that since our robot is a 4-wheel drive, it travels pretty fast. To control the robot we are using a gamepad and the code is written so it is a tank drive. So we use the 2 joysticks on the gamepad to control each side of the robot.
And the problem is that if we just tap the joystick the robot goes flying, so we were thinking of limiting the speed to only 50%, so when the joystick is pushed fully the robot will only travels half speed.
So how do i do that in java
plz help
__________________
RAMAZOIDZ
2009 Toronto West Regional - Regional Winners
2009 Waterloo Regional - Regional Winners
|