Go to Post I love it when there is someone that obviously "gets it". - dlavery [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
  #1   Spotlight this post!  
Unread 31-01-2014, 20:27
AutoBotAM AutoBotAM is offline
Registered User
AKA: Christian Reese
FRC #2077 (Laser Robotics (Laserbots))
Team Role: Programmer
 
Join Date: Mar 2012
Rookie Year: 2010
Location: Wisconsin
Posts: 34
AutoBotAM is an unknown quantity at this point
Parallel commands that depend on the same subsystem?

How would the two commands be ran in this situation? Either by running them in parallel in a command group, or if both commands were default commands of different subsystems.

I know that if one command is run that depends on a subsystem that another running command depends on, either of the commands are terminated depending on the circumstances. Is there a way to get two commands to literally run in parallel, accessing the same subsystem? So if commands A and B depend on subsystem C, the scheduler will execute A, then B, A, B, and so on.

Is there a way to get that working?

EDIT:

If there is not, I'll explain my design further. In this case command A would only read information from subsystem C. It would only use accessor methods and no mutator methods. So would it be safe to just omit the "requires" call?
__________________
"Mecanum drivetrains, like every other, have advantages and disadvantages, but some of the disadvantages being discussed here are overstated and/or misinformation." -buchanan

Last edited by AutoBotAM : 31-01-2014 at 20:31.
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 12:45.

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