Thread: Buttons
View Single Post
  #4   Spotlight this post!  
Unread 08-02-2012, 00:03
Rogue Leader Rogue Leader is offline
Registered User
FRC #0696 (Circuit Breakers)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Glendale, CA
Posts: 78
Rogue Leader is an unknown quantity at this point
Re: Buttons

Unbundle as the previous posts have mentioned, and then, to program a motor function, you can:

1.) Use a case structure to decide how the motor functions, or

2.) Use a true/false selector to pass through a number value; if all you're doing is controlling motor speed, this way is easier than a case structure.

Also, from what I hear, try not to go overboard with putting buttons on the joystick. Let the operator do most of the button pushing, and let the driver do , well, the driving! It makes the driver's job easier.