Go to Post why would someone do that? Go on the internet and tell lies? - MaGiC_PiKaChU [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 15-03-2015, 10:42
microbuns's Avatar
microbuns microbuns is offline
Registered User
AKA: Sam Maier
FRC #4917
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Elmira
Posts: 81
microbuns is an unknown quantity at this point
Adding CommandGroup in parallel?

We have a command group that we wish to execute in parallel within another bigger command group. We can add the command group sequentially no problem, but the inner command group does not seem to execute when added in parallel. Any ideas?
Reply With Quote
  #2   Spotlight this post!  
Unread 16-03-2015, 10:20
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 429
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Adding CommandGroup in parallel?

If the two command groups both have commands within them that require the same subsystem, I believe the command group that is added last will execute. The group added earlier will be ended. Two commands requiting the same subsystem cannon run simultaneously (you can't drive a motor fwd and rev at the same time), whichever command comes last will win (unless you explicitly guarded against this in your code).

You may need to restructure your commands into more groups, or you may need to split your subsystems up into more tightly defined groups of hardware. For exams a lift subsystem may contain a motor that changes vertical position and a solenoind controlling a brake. But depending on how you want to structure your commands, you may need to split the brake and motor into their own individual subsystems.

If that's not it:
Can you assign each group to a button and verify that each group works correctly when they are run independently?

Can you post your code (including the code for the commands in the command groups)?
__________________
http://team2168.org
Reply With Quote
  #3   Spotlight this post!  
Unread 16-03-2015, 13:10
microbuns's Avatar
microbuns microbuns is offline
Registered User
AKA: Sam Maier
FRC #4917
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Elmira
Posts: 81
microbuns is an unknown quantity at this point
Re: Adding CommandGroup in parallel?

Otherguy - I think this is it. It didn't occur to me, but now that I think about it, there is a very small overlap in the subsystems I wish to use. Thanks!
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


All times are GMT -5. The time now is 02:59.

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