Go to Post If the refs are not calling something that you think should be called, you have to adjust your play style to deal with it. - Rob [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 15-02-2011, 18:56
SidneySalvo SidneySalvo is offline
Registered User
FRC #1691
 
Join Date: Jan 2008
Location: Sidney
Posts: 22
SidneySalvo is an unknown quantity at this point
Understanding the Autonomous.vi

So I'm looking at the Autonomous.vi, and I simply do not understand how to wire everything on the robot, to it's specifications, or how it works. I'd like to know how the sensor are supposed to be mounted on the bot such that it will work. In addition to that i need to know where in the code you would put controls other than for the line senseing portion.

Any help for a terrible programmer would be greatly appreciated.
__________________
The Universe is filled with magical things, patiently waiting for our wits to grow sharper.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2011, 19:06
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Understanding the Autonomous.vi

Have you read the NI Tutorials, especially the "Line Following Tutorial" and the "Timed Movement VIs for Autonomous Mode Tutorial" or watched the videos at frcmastery.com especially "Step 5 - Turn on Autonomous Mode" and "Exploring the default autonomous code"?
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2011, 19:13
SidneySalvo SidneySalvo is offline
Registered User
FRC #1691
 
Join Date: Jan 2008
Location: Sidney
Posts: 22
SidneySalvo is an unknown quantity at this point
Re: Understanding the Autonomous.vi

No I had not, thank you very kindly for directing me at them. I'll post something more if I still manage to have questions.
__________________
The Universe is filled with magical things, patiently waiting for our wits to grow sharper.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2011, 00:37
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Understanding the Autonomous.vi

I'd definitely suggest erasing what they have and using it as a refrence to how to wire things. The way to do it is to write what exactly you want each motor to do when each combination of light sensors are pressed. From there, it's quite easy to wire up a few case structures to make it happen.

Note: Instead of stacking a bunch of case structures for all the different sensor values, it's much easier to put all the outputs of the digital IO into a build array function. Then put a boolean array to number on that, and wire the number into a single case structure. Then use binary to decimal conversion to figure out which number means which set of sensors -- for example, if the number is a 6, the second and third sensors are pressed (second and third in the array, that is).

However, if you want to use the default, that's fine, but I find that they added a bunch of really confusing things to it, like having options to follow either the left or right lines (who cares?)
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2011, 20:33
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,752
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: Understanding the Autonomous.vi

You've given this advice several times, and I'm not sure that it is as helpful as you think it is. A number of the techniques you are telling others to program are demonstrated by the default code. If you want to give advice on how to improve or simplify auto code, I think that would seem far more helpful.

Congratulations if you are capable of writing the code from scratch, but not all teams are. Keep that in mind when giving advice.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 16-02-2011, 21:25
Dustin Shadbolt's Avatar
Dustin Shadbolt Dustin Shadbolt is offline
In a server room somewhere...
AKA: Dustin Shadbolt
FRC #1555 (Team PULSE)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Monticello,Indiana
Posts: 320
Dustin Shadbolt is on a distinguished road
Re: Understanding the Autonomous.vi

Quote:
Originally Posted by Greg McKaskle View Post
You've given this advice several times, and I'm not sure that it is as helpful as you think it is. A number of the techniques you are telling others to program are demonstrated by the default code. If you want to give advice on how to improve or simplify auto code, I think that would seem far more helpful.

Congratulations if you are capable of writing the code from scratch, but not all teams are. Keep that in mind when giving advice.

Greg McKaskle
I completely agree with Greg. You keep giving the same advice as if each team is capable of carrying it out word for word. Some teams don't even know how to deploy a project, let alone re-write a whole vi.

on topic - I would suggest watching the frcmastery video and then reading the paper. The frcmastery really helps A LOT when understanding what the heck is going on in that code. We got ours sort of working, just have to tweak it now .
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 20:30.

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