Log in

View Full Version : Motor controlled by Talon won't turn off


muaddib42
04-02-2014, 13:14
I have been programming our robot with Java and for some reason when I set the motor power to 0, the motor continuously spins. I am not sure why. If anyone has any ideas that would be very helpful.

Ether
04-02-2014, 13:17
I have been programming our robot with Java and for some reason when I set the motor power to 0, the motor continuously spins. I am not sure why. If anyone has any ideas that would be very helpful.

It's because it's still getting power :)

But seriously, you need to provide more detail.

Maybe post your code.

geomapguy
04-02-2014, 13:17
Does it still run when the robot is disabled??

muaddib42
04-02-2014, 13:20
Nope. When I run talon.get() it also returns 0.

muaddib42
04-02-2014, 13:21
The relevant block of code is here:

public void stopSpeedControl() {
DebugLog.log(DebugLog.LVL_DEBUG, this, "Talon GET: "+this.talon.get());
this.talon.set(0);
this.spdControl.cancelEvent();
this.spdControlEnabled = false;
}

I have confirmed that it has entered this block of code.

Ether
04-02-2014, 13:24
The relevant block of code is here

There may be other code which is turning it back on.

ASmith1675
04-02-2014, 13:33
Is the motor spinning 100% speed or just slow? If they're going 100%, its probably code, which is outside my knowledge range.

If they're just spinning slow or pulsing, I'd recommend doing a calibration of the Talons. The calibration procedure can be found on page 7 of http://crosstheroadelectronics.com/Talon_User_Manual_1_2.pdf