|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
||||
|
||||
|
Re: Motor controlled by Talon won't turn off
Quote:
![]() But seriously, you need to provide more detail. Maybe post your code. |
|
#3
|
||||
|
||||
|
Re: Motor controlled by Talon won't turn off
Does it still run when the robot is disabled??
|
|
#4
|
|||
|
|||
|
Re: Motor controlled by Talon won't turn off
Nope. When I run talon.get() it also returns 0.
|
|
#5
|
|||
|
|||
|
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. Last edited by muaddib42 : 04-02-2014 at 13:23. Reason: Adding more information. |
|
#6
|
||||
|
||||
|
Re: Motor controlled by Talon won't turn off
There may be other code which is turning it back on.
|
|
#7
|
||||
|
||||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|