Go to Post To think that the seminal work on the FRC experience is about the least favorite game of all time, being played by a team that no longer exists, is either the height of insanity or a master stroke of inspiration. - GeeTwo [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, 22:11
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Autonomous Problems

I know exactly what I want for our team in regards to autonomous, but sadly I have no idea where to even begin.

Questions
1. Whats the difference between independent and iterative.
2. What of the basic code, provided upon starting a new project, is needed.
3. Where do I put my code? (RefNum Gets, Joystick Gets, Solenoid sets, ect.)
4. How do I run certain motors for specified time periods. (ex. Run Left & Right motors 1 second)

I feel like other teams have been asking themselves these questions too, but no one has posted them (I've searched a few times).

This post could be used as a database so if you have any questions or answers post them here (or, and I know that this might be a huge undertaking, a new sub-forum, under programming, dedicated to autonomous)
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote
  #2   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
  #3   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,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: 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 03:49.

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