View Single Post
  #2   Spotlight this post!  
Unread 02-03-2015, 14:31
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 325
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Labview and programming gradual start/stop

Quote:
Originally Posted by pastelpony View Post
Multiply your joystck inputs by their absolute value. This squares the inputs, only allowing full speed at a full push. For example, what would normally be 0.5 would be 0.25 and -0.9 would be -8.1 etc.
If you look closely at the Tank Drive and Arcade Drive VIs, this is already done for you by default. Though this will not accomplish what was asked. If you jam the joysticks forward with the squared inputs, you will still go full speed immediately.

What you are asking is described fairly well here starting at post #8: http://www.chiefdelphi.com/forums/sh...d.php?t=125439

I attached a LabVIEW example at the end in post #10. If you search for the VI "PID Output Rate Limiter" you will get a VI that works well for this, and you can adjust the ramp time.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote