View Single Post
  #4   Spotlight this post!  
Unread 16-02-2011, 16:35
Wolfgang Wolfgang is offline
Registered User
AKA: Mehmed
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2010
Location: Denver
Posts: 47
Wolfgang is an unknown quantity at this point
Re: Action on button press and release

Yes, you need a case structure with 3 cases: case 0 with nothing, case 1 with forward motor, and case 2 with a backwards motor.

You merge the signal of the two buttons using a boolean array. Then you convert the boolean array value to a number using something in the boolean palette.
Reply With Quote