|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Multiple buttons on a single motor
Apologies if this seems like a stupid question, but:
My team decided to go with a traditional tankdrive for our bot, and I was wondering if it is possible to set multiple buttons to the same motor. I was hoping to have the triggers on our joysticks make the motor driving the arm spin in opposite directions, and was having trouble figuring out how to do this. Thanks in advance. |
|
#2
|
|||||
|
|||||
|
Re: Multiple buttons on a single motor
I'm sure what you are asking for is possible, and it's probably even easy. A more precise description of what you want would help. Do you want the left joystick trigger to run a motor in one direction and the right joystick trigger to run it in the other direction? Do you want the motor to stop when both triggers are released? Do you have any preference for what happens when both triggers are pressed?
|
|
#3
|
||||
|
||||
|
Re: Multiple buttons on a single motor
Use the motor devref and just split the wire to go to two different set speed vis in two different case structures
|
|
#4
|
|||
|
|||
|
Re: Multiple buttons on a single motor
Quote:
@Alan: I want pretty much what you said. I was hoping to have the left trigger make the motor go forward and the right trigger do the opposite. |
|
#5
|
|||||
|
|||||
|
Re: Multiple buttons on a single motor
I was right, what you want is easy.
The triangular "Select" functions might be unfamiliar. The help describes them this way: Quote:
Last edited by Alan Anderson : 30-01-2011 at 16:37. Reason: corrected the markup |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|