Go to Post In any case, a drawing is important. You should never machine anything without having a drawing of some type to work from. - Big Ideas [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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-12-2013, 21:03
ming08108 ming08108 is offline
Registered User
FRC #4795
 
Join Date: Dec 2012
Location: NC
Posts: 24
ming08108 is an unknown quantity at this point
DriveTrain Ramp Up

The hardware team said that the drive motors should ramp up instead of going whatever speed the driver pushes because it draws too much current.

I have read a bit about PID loops (don't fully understand them) and something about jaguars having hardware PID if you use CAN.

I was wondering what the best way to implement this ramp up is and how fast a good ramp up rate is.

Our robot is using Jaguars for the drivetrain and Java command based programming.

Code is here:
https://bitbucket.org/ming08108/eastbots-java-code

Any help is appreciated.
  #2   Spotlight this post!  
Unread 04-12-2013, 21:16
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,580
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: DriveTrain Ramp Up

It would help to describe your drive train setup, motors, gear ratios, wheel sizes, etc. Ideally, you should design your drivetrain so that you don't draw too much current. That might mean adding more motors or changing the gear ratio so that your top speed is a little slower and the load is less.

Our general philosophy is that a well trained driver is better able to handle issues like this, rather then the code. A driver can easily learn to ramp up on the joysticks in normal cases, but push it when really needed.

We did use a ramp up in autonomous, which made it a little more repeatable. We ramped to full speed in 1 second in high gear, and to full speed in 1/5 of second in low gear. This was implemented as a command that took an input and checked the difference between that input and the previous input, and clamped the change if it was too large.

The Jaguars do have an automatic ramp feature (independent of the PID feature). See the Jaguar FAQ.

PID is overkill if all you want to do is implement a ramp.
  #3   Spotlight this post!  
Unread 04-12-2013, 21:17
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: DriveTrain Ramp Up


The ramp-up your team is talking about does not require PID. It can be accomplished with a very simple slew rate limiter on the joystick command.

Or, if you are using Jaguars, they have built-in voltage ramping.


  #4   Spotlight this post!  
Unread 04-12-2013, 21:25
magnets's Avatar
magnets magnets is offline
Registered User
no team
 
Join Date: Jun 2013
Rookie Year: 2012
Location: United States
Posts: 748
magnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond repute
Re: DriveTrain Ramp Up

Quote:
Originally Posted by ming08108 View Post
The hardware team said that the drive motors should ramp up instead of going whatever speed the driver pushes because it draws too much current.

I have read a bit about PID loops (don't fully understand them) and something about jaguars having hardware PID if you use CAN.

I was wondering what the best way to implement this ramp up is and how fast a good ramp up rate is.

Our robot is using Jaguars for the drivetrain and Java command based programming.

Code is here:
https://bitbucket.org/ming08108/eastbots-java-code

Any help is appreciated.
If you're using a normal drivetrain, you don't need to do this. The FRC control system is capable of providing a lot of current to the drive motors during quick acceleration. Ask your hardware team why they think they need to do this.
  #5   Spotlight this post!  
Unread 04-12-2013, 21:32
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: DriveTrain Ramp Up

Quote:
Originally Posted by magnets View Post
Ask your hardware team why they think they need to do this.
Because they're using Jags. If you don't have the voltage ramping enabled and the gearing isn't low enough the Jags are prone to tripping the overcurrent sensing (at least they were before Vex took over) when subjected to sudden large throttle movements (like full forward to full reverse).


  #6   Spotlight this post!  
Unread 04-12-2013, 21:35
T^2 T^2 is offline
Registered User
FRC #5499
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Berkeley
Posts: 219
T^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond repute
Re: DriveTrain Ramp Up

I'll echo what Joe Ross said up there. It's far more important to have a competent driver who knows what he or she is doing than to mollycoddle him or her with fancy code. Hard to know when you'll need that burst of power at a crucial moment, but your ramping code won't allow it...

In any case, unless your driver is going from full forward to full back on the throttle very quickly (if this is the case, fire him/her), you should be alright.
  #7   Spotlight this post!  
Unread 04-12-2013, 21:54
ming08108 ming08108 is offline
Registered User
FRC #4795
 
Join Date: Dec 2012
Location: NC
Posts: 24
ming08108 is an unknown quantity at this point
Re: DriveTrain Ramp Up

Wow guys thanks for all the input. Its seems like I will opt for the Jaguar voltage ramping.
I agree with Joe Ross and T^2 on the driver argument but we are still pretty inexperienced and I think the driver still needs a little coddling. If that does not work I will probably do it in soft and provide an override if necessary.
Any input?
  #8   Spotlight this post!  
Unread 04-12-2013, 21:57
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: DriveTrain Ramp Up

Quote:
Originally Posted by T^2 View Post
Hard to know when you'll need that burst of power at a crucial moment, but your ramping code won't allow it...
If your ramping code interferes with "that burst of power at a crucial moment" then you haven't implemented it correctly.

The purpose of the ramping is to prevent that "burst of power at a crucial moment" from causing your Jags to shut down.


  #9   Spotlight this post!  
Unread 05-12-2013, 00:22
T^2 T^2 is offline
Registered User
FRC #5499
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Berkeley
Posts: 219
T^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond reputeT^2 has a reputation beyond repute
Re: DriveTrain Ramp Up

Quote:
Originally Posted by Ether View Post
If your ramping code interferes with "that burst of power at a crucial moment" then you haven't implemented it correctly.

The purpose of the ramping is to prevent that "burst of power at a crucial moment" from causing your Jags to shut down.
Third way: no ramping, use Talons?
  #10   Spotlight this post!  
Unread 05-12-2013, 03:18
MichaelBick MichaelBick is offline
Registered User
FRC #1836 (MilkenKnights)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2010
Location: Los Angeles
Posts: 734
MichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant future
Re: DriveTrain Ramp Up

We were running a 4 cim 2 550 drive (using talons) and had problems with blowing the main breaker on quick direction changes. Adding in a very small(1/8 second I believe) voltage ramp completely fixed this problem. It doesn't need to be very big at all and was unnoticeable to drivers anyways(you can't accelerate instantly anyways so it is pretty unnoticeable).
__________________
Team 1836 - The Milken Knights
2013 LA Regional Champions with 1717 and 973
2012 LA Regional Finalists with 294 and 973
To follow Team 1836 on Facebook, go to http://www.facebook.com/MilkenKnights
To go to our website, go to http://milkenknights.com/index.html
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 01:56.

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