Log in

View Full Version : Motor Sequence?


gabrielc97
19-02-2012, 12:42
How can i program a cim motor to run continuously with one button on the joystick and to stop with another button?
Any help is appreciated!

jase728
19-02-2012, 13:28
Well if you are coding in Java I can help you

so in the teleop continuous phase use these lines of code:

if(joystick.getRawButton(BUTTON_NUMBER))
{
jaguarName.set(MOTOR SPEED)
}

if(joystick.getRawButton(NEW BUTTON_NUMBER))
{
jaguarName.set(0)
}

gabrielc97
19-02-2012, 14:13
Thanks but we are using LabVIEW

Ether
19-02-2012, 14:32
How can i program a cim motor to run continuously with one button on the joystick and to stop with another button?
Any help is appreciated!

I think the attached will work.

gabrielc97
19-02-2012, 15:18
Thanks, but does the motor have to be connected to the program?
And what connects to the right side of the wire furthest to the right?

DominickC
19-02-2012, 15:26
Yes, the output of the upper T/F selector is wired to the Output value of Motor Set Output.