View Single Post
  #5   Spotlight this post!  
Unread 04-03-2015, 10:46
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,717
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Autonomous: addParallel

Quote:
If we convert this into the translated syntax you'll come up with this.

Code:
[2|1]
[3]
[4]
What you'll notice is that 1 will only execute as only as 2 executes. If 2 finishes, 1 also finishes, even if it's not done.
Looking at the source code for CommandGroups I do not believe this is the case. Command 1 will run until another command that requires the same subsystem interrupts it or it finishes on its own.

Quote:
So when you are implementing a series of parallel commands in a command group they need to be followed by the sequential command which acts as the control for the command.

Code:
addParrallel(1);
addParrallel(2);
addSequential(3);
In this case the command group will run until 3 finishes.
I also do not believe this is the case. The CommandGroup will not finish until all commands it contains are finished.

Last edited by notmattlythgoe : 04-03-2015 at 10:51.
Reply With Quote