Go to Post The greatest reward you can give your mentors is to become one. - Ed Sparks [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-02-2016, 23:26
mjv5720 mjv5720 is offline
Registered User
FRC #5720
 
Join Date: Feb 2016
Location: Hinckley, MN
Posts: 12
mjv5720 is an unknown quantity at this point
Labview Autonomous

Our team plans on having an autonomous mode this year and I'm in charge of doing it. I'm the head programmer of our team and know Labview decently but I'm no pro. We are using a flat sequence with arcade drive subVi's. Our robot uses arcade drive and I just transferred it over.

I guess my question is what the orange constants for the x and y axis's do on the Arcade drive subVI? I've assumed that it can only be -1 or 1 and that each axis determines either left or right and forward or backward. Would using tank drive make it easier? I'm just curious what the constants represent and what increments would work well.

Our main goal is to just drive straight under the low bar and possibly even score in the low goal if possible.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2016, 07:59
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Labview Autonomous

I think the orange constants you are referring to are wired to the Joystick input parameters.

Arcade and tank are closely related, but let you describe the desired movement with differently encoded parameters. Arcade lets you think use the X and Y displacement to specify how much to turn and how fast and which direction to drive. Tank uses two Y's. Arcade comes from arcade game input, and tank from bulldozer or tank driving systems.

Pick whichever makes sense to you, and you can even switch back and forth, but that may lead to mistakes in reading the code if someone doesn't expect it.

The best advice I have is to imagine you want to drive the auto yourself, or you are watching the driver perform the maneuver. Then write code that mimics the (input value, time) pattern. So if the driver only pushes the stick forward half-way, don't use -1, but use -0.5. If the driver holds the stick forward for 1.5 seconds, that is how long the code delays before the next input.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2016, 15:36
mjv5720 mjv5720 is offline
Registered User
FRC #5720
 
Join Date: Feb 2016
Location: Hinckley, MN
Posts: 12
mjv5720 is an unknown quantity at this point
Re: Labview Autonomous

Thanks for the suggestion. That makes more sense and I'll test it on Monday when we have our next practice
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 04:16.

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