View Single Post
  #2   Spotlight this post!  
Unread 03-16-2015, 10:20 AM
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