Go to Post You know, I have 2 big addictions in my life right now: ice cream, and FIRST. While the prior may not be great for my health, I think I'm doing just fine with FIRST. - Beth Sweet [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
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-01-2014, 18:37
DMike
 
Posts: n/a
Jags resetting in CAN

In speed mode using the USD E4P-250-N-S-D-D-B encoder we are tripping the JAG reset when we switch from +max to -max or the opposite, using a joystick controller. This happens in any P value , we are not an I or D value. No matter how we tune the PID, we see a choppy transition from + to -. In % votage mode everything works fine.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2014, 11:41
gpetilli gpetilli is offline
Registered User
FRC #1559
 
Join Date: Jan 2009
Location: Victor, NY
Posts: 285
gpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to all
Re: Jags resetting in CAN

Quote:
Originally Posted by DMike View Post
In speed mode using the USD E4P-250-N-S-D-D-B encoder we are tripping the JAG reset when we switch from +max to -max or the opposite, using a joystick controller. This happens in any P value , we are not an I or D value. No matter how we tune the PID, we see a choppy transition from + to -. In % votage mode everything works fine.
We had this issue three years ago and tracked it down to the Jaguar browning out. The PID tries to drive max current to achieve the large change in commanded velocity. We measured peak currents well over 100A - the Jaguar is rated at 60A for short (<5sec ?) periods and 92A instantaneous. The self resetting breaker in the PDB is only rated at 40A but I seem to remember someone on CD testing it and reporting 2x tripping in ~15sec.

You need to limit the peak current to <60A. There are several ways to do this, the best being to add a slew limit or ramp. There is a 0.125sec ramp in the Jaguar code but it is not used in PID mode. You can/should add a ramp in your code before you send the command to the PID.

Also, the Jaguar uses an integrating velocity PID which is best tuned by using the I term first and then adding the P term, keep D term zero. There is a CD thread from 2011 "jaguar speed control only reaches 50%" - start with reply 34.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-01-2014, 15:41
MattKahn MattKahn is offline
Registered User
FRC #0157
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Marlborough, MA
Posts: 3
MattKahn is an unknown quantity at this point
Re: Jags resetting in CAN

One thing thing that bit us the first year of using Jaguars was letting the battery get run down. If the battery is getting low, loading it can drop the voltage below where the Jags will reset.

If you are using CAN and settings he Jag to non default settings, be aware that browning out the Jag may cause some or all of the settings to be lost.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-01-2014, 21:38
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
In speed mouse you should enable ramp rate limiting. It's been a while since I've looked at it, but you can do this through some combination of jumpers on the jaguar itself.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
Reply With Quote
  #5   Spotlight this post!  
Unread 13-01-2014, 14:11
gpetilli gpetilli is offline
Registered User
FRC #1559
 
Join Date: Jan 2009
Location: Victor, NY
Posts: 285
gpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to all
Re: Jags resetting in CAN

Quote:
Originally Posted by Mr. Lim View Post
In speed mouse you should enable ramp rate limiting. It's been a while since I've looked at it, but you can do this through some combination of jumpers on the jaguar itself.
I believe that the Jaguar ramp only works in %volt mode - not in velocity PID mode. I suspect that is why they have an issue with PID but not in %volts. The user needs to add their own ramp before sending the value to the PID in the Jaguar. I confirmed this directly with the Jaguar programmer back when TI was providing the firmware. I suppose IFI could have updated that when they took over, but I have not seen any indication in the release notes that suggest they did. Certainly, there is no harm in adding a ramp on the cRIO even if there is one on the Jaguar.
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 20:25.

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