Thread: Joystick
View Single Post
  #2   Spotlight this post!  
Unread 23-06-2012, 11:29
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,906
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Joystick

Our standard tank drive regular runs at 50% max speed with a turbo button that boosts it to 100%.
Basically you multiply the joystick output by a constant to send a range of -0.5 to 0.5 to the motor controller. When the turbo button is pressed you double the value. If then statements would work.

My programmer hates it when I look over his shoulder, but I probably could get the code snippets if you want.
Reply With Quote