Go to Post You can't derail a thread that had no "rails" to begin with. - bkahl [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 17-02-2010, 18:23
FRC2669_Valery's Avatar
FRC2669_Valery FRC2669_Valery is offline
Team Captain & Programmer
AKA: Valery Davidov
FRC #2669 (KY Bots)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Kiryat Yam, Israel
Posts: 15
FRC2669_Valery is an unknown quantity at this point
Send a message via ICQ to FRC2669_Valery Send a message via MSN to FRC2669_Valery
Autonomous Mode, Independent, Iterative (?)

Hello, My Name is Valery and I'm the lead programmer in our team, 2669, Kiryat Yam, Israel.

My experience with autonomous mode is tiny.
while trying to write an autonomous mode I bumped into a problem.

I couldn't figure the independent and iterative modes and didn't understand what to choose.
finally I've chosen the independent because I understood that this vi does the program one time and then stops.

but I saw that in the Main VI there's a referral to the iterative vi, should I change it to the independent ? in the iterative vi there's a case structure that leads to an independent autonomous but the case is empty, should I put there the independent auto' VI ?

How can I "tell" the robot that I'd like him to use the independent autonomous and not the iterative?


thanks, valery
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2010, 19:50
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,560
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: Autonomous Mode, Independent, Iterative (?)

In Begin.vi, there is a selection for independent and iterative. Independent is selected by default. The default framework has references to both, but it only runs what you have selected in begin.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2010, 00:47
FRC2669_Valery's Avatar
FRC2669_Valery FRC2669_Valery is offline
Team Captain & Programmer
AKA: Valery Davidov
FRC #2669 (KY Bots)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Kiryat Yam, Israel
Posts: 15
FRC2669_Valery is an unknown quantity at this point
Send a message via ICQ to FRC2669_Valery Send a message via MSN to FRC2669_Valery
Re: Autonomous Mode, Independent, Iterative (?)

so if I choose independent autonomous, Where should I put my code?
in the Independent VI or in the iterative vi in the independent case ?

thank you, valery
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2010, 02:01
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Autonomous Mode, Independent, Iterative (?)

Autonomous_independent.vi will be called when autonomous begins and terminated when it ends.

Autonomous_iterative.vi will be called at 50hz during Autonomous. The purpose of putting some Independent code in Iterative is to handle periodic tasks that must be run in a loop, such as feeding the watchdog.

So what you will want to do is feed the watchdog in Autonomous_Iterative.vi and put the rest of your code in Autonomous Independent.vi
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2010, 09:50
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,560
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: Autonomous Mode, Independent, Iterative (?)

Quote:
Originally Posted by apalrd View Post
So what you will want to do is feed the watchdog in Autonomous_Iterative.vi and put the rest of your code in Autonomous Independent.vi
Doing that may be no better then disabling the watchdog. If you have an error in your code in autonomous independent, the watchdog would continue getting fed. It's better to completely ignore the autonomous iterative, and put all your code (including feeding the watchdog) in autonomous independent.
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
global variables and autonomous independent Team1824 NI LabVIEW 10 19-02-2010 23:00
Autonomous (Iterative) j.cole NI LabVIEW 6 12-02-2010 02:01
Autonomous Independent Code Issue Watchdog not fed pilum40 FRC Control System 0 11-02-2010 12:00
Continuous vs. Autonomous in Iterative Robot Shira C/C++ 4 06-02-2009 04:20
Using Sensors in Autonomous Independent Felipe Sagui NI LabVIEW 2 27-01-2009 17:25


All times are GMT -5. The time now is 11:21.

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