|
|
|
![]() |
|
|||||||
|
||||||||
|
|
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 | 07-02-2009 15:57 |
| Intelitek Loader Press PRGM Button Fail | ttldomination | VEX | 1 | 25-02-2008 19:36 |
| Joystick Hat button | ten3brousone | Programming | 8 | 20-02-2005 13:31 |
| Joystick Button Deference | cibressus53 | Electrical | 3 | 01-11-2004 09:38 |
| Can a student Coach press the Stop Button | archiver | 2001 | 3 | 24-06-2002 02:39 |