Go to Post I may not like the songs, but I love FIRST! :) - ScoutingNerd175 [more]
Home
Go Back   Chief Delphi > Technical > Motors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-02-2014, 13:14
muaddib42 muaddib42 is offline
Registered User
FRC #3128
 
Join Date: Jan 2013
Location: United States
Posts: 9
muaddib42 is an unknown quantity at this point
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   Spotlight this post!  
Unread 04-02-2014, 13:17
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Motor controlled by Talon won't turn off

Quote:
Originally Posted by muaddib42 View Post
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.


  #3   Spotlight this post!  
Unread 04-02-2014, 13:17
geomapguy's Avatar
geomapguy geomapguy is offline
Centenary '18
AKA: Graham Maxwell
FRC #1818
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Alexandria, LA
Posts: 535
geomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud of
Re: Motor controlled by Talon won't turn off

Does it still run when the robot is disabled??
__________________
The Cowboys - FIRST Robotics Team #1818 2015-
The Bolton Bear Bots - FIRST Robotics Team #3666 2011-204 (30-26-0)
2014 Oklahoma Regional - 20/62 (6-4-0), 5/62 in OPR
2014 Arkansas Regional - 14/39 (8-7-0, Quarterfinalists with 1706 and 1939), 24/39 in OPR
2013 Lone Star Regional Dean's List Finalist!
2013 Lone Star Regional - 22/57 (6-5-0), 17/57 in OPR
2012 Bayou Regional - 16/49 (6-5-0)
2011 Dallas Regional - 10/52 (4-2-5, #6 Alliance Captain, Quarterfinalists with 2948 and 3350)
  #4   Spotlight this post!  
Unread 04-02-2014, 13:20
muaddib42 muaddib42 is offline
Registered User
FRC #3128
 
Join Date: Jan 2013
Location: United States
Posts: 9
muaddib42 is an unknown quantity at this point
Re: Motor controlled by Talon won't turn off

Nope. When I run talon.get() it also returns 0.
  #5   Spotlight this post!  
Unread 04-02-2014, 13:21
muaddib42 muaddib42 is offline
Registered User
FRC #3128
 
Join Date: Jan 2013
Location: United States
Posts: 9
muaddib42 is an unknown quantity at this point
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   Spotlight this post!  
Unread 04-02-2014, 13:24
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Motor controlled by Talon won't turn off

Quote:
Originally Posted by muaddib42 View Post
The relevant block of code is here
There may be other code which is turning it back on.


  #7   Spotlight this post!  
Unread 04-02-2014, 13:33
ASmith1675's Avatar
ASmith1675 ASmith1675 is offline
Mechanical/Electrical/Scouting
AKA: Adam Smith
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2008
Rookie Year: 2005
Location: Milwaukee, WI
Posts: 48
ASmith1675 is a splendid one to beholdASmith1675 is a splendid one to beholdASmith1675 is a splendid one to beholdASmith1675 is a splendid one to beholdASmith1675 is a splendid one to beholdASmith1675 is a splendid one to beholdASmith1675 is a splendid one to beholdASmith1675 is a splendid one to behold
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
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:22.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi