Go to Post Your entire life is a choice - a choice to believe or denounce everything that is ever said to you. - Amanda Morrison [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 11-02-2010, 23:49
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Re: Autonomous Problems

1.independent is an autonomous that runs once that can be used for almost anything in autonomous(start in independent) iterative runs over and over for extremely short tasks
2.dont touch anything with a light blue top on the subvi or anything in that flat sequence in the top left corner everything else can be taken out for your code
3.in the main while loop
4.stacked or flat sequence is used for timed tasks put the code in steps in each part of the loop if you put a wait in their it will run the section for that amount of time(in miliseconds)

Last edited by bladetech932 : 11-02-2010 at 23:58.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2010, 02:30
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: Autonomous Problems

The framework supports several ways of doing autonomous. This was mostly for compatibility with how things were done on the old system and to match the capabilities across the languages. I would definitely recommend opening the Autonomous Independent VI and examining what is in its diagram. It is started at the beginning of autonomous, and either runs to completion or is aborted at the end of the period.

You can Get Refnums at any time, such as at the beginning of the autonomous, use them, and unless something in teleop is used very differently, you do not need to worry about closing or anything else until Finish.

You typically set the Drive values based on how you would imagine moving the joystick. You use time, distance, or another sensor feedback to determine how to adjust your path.

By default, the LV template runs the vision code independently, including during autonomous. This means you can simply read the global variable about targets. You can use this to time kicks, turn the robot, etc.

Greg McKaskle
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Autonomous problems Sauce Programming 4 07-02-2009 15:59
Autonomous Problems Team_486 Programming 1 08-02-2008 13:59
EasyC/IR problems in Autonomous cardinalman86 Programming 2 22-01-2008 15:50
Gyro Autonomous Problems cprogrammer Programming 5 23-03-2007 14:28
Turning problems in Vex autonomous. jamesgecko Programming 3 09-03-2006 16:41


All times are GMT -5. The time now is 22:38.

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