Go to Post I'd love to see a simple, robust system that connects quickly and dependably. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 02-03-2015, 14:22
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Re: Labview and programming gradual start/stop

Quote:
Originally Posted by crollison View Post
So that when you jam the joystick forward, it doesn't immediately go full speed.
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.
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)
Reply With Quote
  #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: 323
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
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 10:22.

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