View Single Post
  #5   Spotlight this post!  
Unread 18-12-2012, 02:35
jacob9706 jacob9706 is offline
Registered User
AKA: Jacob Ebey
FRC #3574 (High Tekerz)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Seattle
Posts: 101
jacob9706 is on a distinguished road
Re: New autonomous outline tutorial

Quote:
Originally Posted by apalrd View Post
I see. You are able to launch the next command before the previous command finishes.


That makes a lot of sense. However, when do you really need to do that? I spent a very long time trying to get my script system to allow asynchronous command execution and decided that it was too difficult of a tradeoff in code complexity. I found that there was no reasonable case in which it was impossible to write autonomous code with only one autonomous commanded action executing at a time, with the blocks I wanted to write.

The tradeoff is always between simplicity in execution and flexibility in design.
The other reason I would do something like this(Which I have not yet been able to try) is to allow errors. As you see if one of the functions returns false the rest do not execute.
__________________
/*
* Team 3574 Alumni
*
* 2011 - Highest Seeded Rookie
* 2011 - Rookie All-Star
* 2012 - Engineering Inspiration
* 2012 - Olympic Deans List Winner
* 2013 - Engineering Inspiration
* 2013 - Judges Award (For unique circular robot and the way the team works together.)
*/