Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Motors (http://www.chiefdelphi.com/forums/forumdisplay.php?f=52)
-   -   Motor controlled by Talon won't turn off (http://www.chiefdelphi.com/forums/showthread.php?t=125808)

muaddib42 04-02-2014 13:14

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.

Ether 04-02-2014 13:17

Re: Motor controlled by Talon won't turn off
 
Quote:

Originally Posted by muaddib42 (Post 1337507)
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

Re: Motor controlled by Talon won't turn off
 
Does it still run when the robot is disabled??

muaddib42 04-02-2014 13:20

Re: Motor controlled by Talon won't turn off
 
Nope. When I run talon.get() it also returns 0.

muaddib42 04-02-2014 13:21

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.

Ether 04-02-2014 13:24

Re: Motor controlled by Talon won't turn off
 
Quote:

Originally Posted by muaddib42 (Post 1337517)
The relevant block of code is here

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



ASmith1675 04-02-2014 13:33

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