Go to Post Robotics is fun, but it isn't the most important thing in life. - Wayne TenBrink [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2011, 17:59
Spectare Spectare is offline
Team Hacker
AKA: Benjamin Pylko
FRC #3181 (Pittsford Panthers)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Rochester, New York
Posts: 16
Spectare is an unknown quantity at this point
Question CANJaguar current mode

I am on the IgKnighters Team at McQuaid, I am trying to program some small BaneBot DC motors, but I cannot find a way to set the maximum current draw of a CANJaguar so as to not burn out the motor. I can find voltage, but not current. I have tried changeControlMode(CANJaguar.ControlMode.kCurrent), but I am at a loss as for what to do after that. Can Anyone help with this? Thanks in advance!
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2011, 23:02
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Re: CANJaguar current mode

if you use the current control mode then what you set with the set method is the current outputted to the motor.

for example

Code:
jag.set(10);
Would set the jag to output ~10 amps.

also you can consider the getOutputCurrent() to return the current it is currently outputting
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2011, 10:42
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: CANJaguar current mode

There is no built in way in the jaguar to limit current while using one of the closed loop control methods. However, Ether wrote a white paper called CAN Jaguar Speed or Current Control with Current Limit or Thermal Cutoff which shows an algorithm for doing this on the cRIO.
Reply With Quote
  #4   Spotlight this post!  
Unread 14-02-2011, 16:05
Spectare Spectare is offline
Team Hacker
AKA: Benjamin Pylko
FRC #3181 (Pittsford Panthers)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Rochester, New York
Posts: 16
Spectare is an unknown quantity at this point
Re: CANJaguar current mode

Quote:
Originally Posted by Joe Ross View Post
There is no built in way in the jaguar to limit current while using one of the closed loop control methods. However, Ether wrote a white paper called CAN Jaguar Speed or Current Control with Current Limit or Thermal Cutoff which shows an algorithm for doing this on the cRIO.
Thanks, I actually found out that a CANJaguar will not supply more current(or voltage) than is supported by the motor, so . But thanks anyway for the reply.
Reply With Quote
Reply


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 11:36.

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