![]() |
Motor controlled by Talon won't turn off
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.
|
Re: Motor controlled by Talon won't turn off
Quote:
But seriously, you need to provide more detail. Maybe post your code. |
Re: Motor controlled by Talon won't turn off
Does it still run when the robot is disabled??
|
Re: Motor controlled by Talon won't turn off
Nope. When I run talon.get() it also returns 0.
|
Re: Motor controlled by Talon won't turn off
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. |
Re: Motor controlled by Talon won't turn off
Quote:
|
Re: Motor controlled by Talon won't turn off
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/T...Manual_1_2.pdf |
| All times are GMT -5. The time now is 22:53. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi