Go to Post The kick-off is your opportunity to finally open the REALLY BIG box that has been sitting under the tree. - dlavery [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 27-01-2013, 17:04
Azrathud's Avatar
Azrathud Azrathud is offline
Computer Nerd
AKA: Bryce Guinta
FRC #2945 (BANG)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Colorado
Posts: 24
Azrathud is on a distinguished road
Re: Ramping Motors?

Quote:
Originally Posted by arithehun View Post
Does anyone have any experience with ramping motors in a command based system? I tried adding a for loop to a subsystem method but then I couldn't drive the robot asynchronously. So I tried adding a command to make the subsystem drive at a variable speed and then creating a command group that uses a for-loop to add a series of that command, each with an increasing parameter. This worked asynchronously, but I needed to be able to change the variables continually throughout the program, not have them be statically set like commands do (if you use them correctly, of course). I could. I know these are both terrible ways to accomplish this besides the caveats I mentioned (the second one particularly bad), but I was desperate.

In short, is there a better way to do this by making the variables both adjustable via the dashboard (instead of being initially set when the robot turns on) AND make this loop operate asynchronously?
Instead of trying to do what you want programatically, you might want to use built-in options for your motor controller.

If you are using jaguars, they have ramping modes built in(but disabled by default). To enable voltage ramping, you need to change some jumpers.(see in the attached manual p.12) You can even change the rate of ramping using the serial interface and some NI software.

Checkout page 11 of the attached manual to see if this is what you want. Look at coast/break jumper and the automatic ramp mode.
Attached Files
File Type: pdf black-jaguar-manual.pdf (907.0 KB, 18 views)
Reply With Quote
 


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:46.

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