Go to Post Duct tape can fix everything except relationships with other people. - dixonij [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Spotlight this post!  
Unread 05-03-2015, 14:12
shindigo shindigo is offline
Registered User
AKA: Mike Parker
FRC #0102
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2009
Location: Somerville, NJ
Posts: 33
shindigo is an unknown quantity at this point
Re: Autonomous: addParallel

We put all our sets of parallel commands in their own CommandGroup. We find this makes is clearer what is running in parallel and what is not.

In the Autonomous CommandGroup we have:
AddSequential(new DoThing1());
AddSequential(new DoThings2and3());
AddSequential(new DoThing4());

Inside the CommandGroup called DoThings2and3 we have:

AddParallel(new DoThing2());
AddParallel(new DoThing3());

Thing4 does not execute until 2 and 3 are finished.
Reply With Quote
 


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


All times are GMT -5. The time now is 18:07.

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