Go to Post "Professionalism at all times... even when you're playing an epic prank on your friends." - JVN [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, 13:53
crollison crollison is offline
Registered User
AKA: Chris Rollison
FRC #4809 (Black Knight Robotics)
Team Role: Coach
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Marceline, MO
Posts: 57
crollison is an unknown quantity at this point
Labview and programming gradual start/stop

How do you program so that the robot has to gradually start/stop. We are a little top heavy and need to reduce inertia. Looking at the examples and I don't think that the Joystick Response Curve is the right thing? Thanks for any help.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-03-2015, 13:55
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

What do you mean "gradually start/stop" ? Do you want to throttle the speed of your drivetrain?
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)
Reply With Quote
  #3   Spotlight this post!  
Unread 02-03-2015, 14:00
crollison crollison is offline
Registered User
AKA: Chris Rollison
FRC #4809 (Black Knight Robotics)
Team Role: Coach
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Marceline, MO
Posts: 57
crollison is an unknown quantity at this point
Re: Labview and programming gradual start/stop

So that when you jam the joystick forward, it doesn't immediately go full speed.
Reply With Quote
  #4   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
  #5   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
  #6   Spotlight this post!  
Unread 02-03-2015, 14:24
Nyxyxylyth Nyxyxylyth is online now
Registered User
AKA: Neal Manson
FRC #1481 (The Riveters)
Team Role: Mentor
 
Join Date: Mar 2013
Rookie Year: 2013
Location: Southfield, MI
Posts: 70
Nyxyxylyth is just really niceNyxyxylyth is just really niceNyxyxylyth is just really niceNyxyxylyth is just really niceNyxyxylyth is just really nice
Re: Labview and programming gradual start/stop

If you're using CANTalons, consider letting them do the heavy lifting by using Set Voltage Ramp. See 6.1 in the TALON SRX Software Reference Manual. Consider something like 0.33 (1 second for 0-33%; 3 second ramp from 0-100%).
Reply With Quote
  #7   Spotlight this post!  
Unread 02-03-2015, 14:31
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Labview and programming gradual start/stop

Use the PID rate limit VI which can be found in the control & simulation -> PID palette.

See attached image.
Attached Thumbnails
Click image for larger version

Name:	JoyRateLimit.jpg
Views:	53
Size:	18.8 KB
ID:	18531  
__________________
-
An ounce of perception is worth a pound of obscure.
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