View Single Post
  #10   Spotlight this post!  
Unread 13-02-2009, 00:13
chmp09 chmp09 is offline
Registered User
AKA: Marc Pulte
FRC #1702 (Robocubs)
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Troy, Michigan
Posts: 25
chmp09 is a jewel in the roughchmp09 is a jewel in the roughchmp09 is a jewel in the rough
Re: how do I ramp up the wheels slowly

Quote:
Originally Posted by seanl View Post
are there any documentation on using a PID controller being that i am a novice at labview programming. And is there an advantage to using a PID controller over the method stated above?
I use a lead-lag PID controller to control our ramping, and it works really well. It will take some tweaking, but it is not that difficult.

For basics, just set you [EDIT] output range to -1 and 1. Set you gain to 1. Set your lag time to whatever you find is best (ours is .2); this changes how fast it ramps. Set lead time to zero. Set dt to -1(sets it to milliseconds). [/EDIT] You may want to tell it to reinitialize at values of zero because it will also ramp down.

The code attached was made for ramp code on a tank drive robot.
Attached Files
File Type: vi Ramp Motors.vi (27.2 KB, 43 views)

Last edited by chmp09 : 13-02-2009 at 08:19.