Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Autonomous Mode, Independent, Iterative (?) (http://www.chiefdelphi.com/forums/showthread.php?t=82928)

FRC2669_Valery 17-02-2010 18:23

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

Joe Ross 17-02-2010 19:50

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.

FRC2669_Valery 18-02-2010 00:47

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

apalrd 18-02-2010 02:01

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

Joe Ross 18-02-2010 09:50

Re: Autonomous Mode, Independent, Iterative (?)
 
Quote:

Originally Posted by apalrd (Post 922701)
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.


All times are GMT -5. The time now is 08:24.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi