Ok, here we go.
I have two examples.
One is of the standard code altered so that pressing Button 1 would simulate moving the joystick to one side of the x-axis:
This next example get rid of the standard drive code completely and replaces it with a system in which Button 4 and Button 5 contol a left and right motors (respectively) to either on or off. (So like on our practice base, Button 4 would turn one side when pressed, Button 5 the other):
Ok, so as you've probably noticed, the key is this little guy:
This function converts a boolean value to a numerical value, 0 or 1 (0 false, true 1) It can be found by opening the functions palette and going to: Programming > Boolean and selecting "Boolean To (0,1)".
I think that's what you guys are looking for. If you have any more question just ask!
Good Luck!
- Austin
[EDIT] - And sorry it took me so long, I was needed elsewhere to help with cutting some stuff

)
__________________
The 39th Aero Squadron - Team 39! (Visit
our website!)
Team Role: 3 Years as Driver - College Student/Mentor!
Freebird Robotics - On a 1 year hiatus! (Visit
our website!)
Arizona 2009: Semifinalists! (69 and 498), Delphi "
Driving Tomorrow's Technology" Award