Thread: Joystick
View Single Post
  #1   Spotlight this post!  
Unread 06-22-2012, 07:48 PM
2185Bilal's Avatar
2185Bilal 2185Bilal is offline
Driver, Ld. Programmer, Electrical
AKA: Bilal Majeed
FRC #2185 (Ramazoidz)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Toronto, Canada
Posts: 110
2185Bilal will become famous soon enough
Post 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
Reply With Quote