|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Joystick Button Press
I am trying to accomplish a simple button task. When someone pushes a button I want it to keep doing the action (IE In this case "Relay Forward" & "Relay Reverse") until the microswitch is activated. Right now it stops as soon as you release the button.
What the code looks like right now is this Code:
if button1 == 1 & microswitch1 = 0 Relay Forward else if button2 == 1 & microswitch2 = 0 Relay Reverse else Relay Off |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| joystick button | furiousgeorge | Programming | 5 | 02-07-2009 03:57 PM |
| Intelitek Loader Press PRGM Button Fail | ttldomination | VEX | 1 | 02-25-2008 07:36 PM |
| Joystick Hat button | ten3brousone | Programming | 8 | 02-20-2005 01:31 PM |
| Joystick Button Deference | cibressus53 | Electrical | 3 | 11-01-2004 09:38 AM |
| Can a student Coach press the Stop Button | archiver | 2001 | 3 | 06-24-2002 02:39 AM |