View Single Post
  #2   Spotlight this post!  
Unread 03-03-2015, 22:13
TFleig78's Avatar
TFleig78 TFleig78 is offline
Registered User
AKA: Tyler
FRC #0078 (Air Strike)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Rhode Island
Posts: 58
TFleig78 will become famous soon enoughTFleig78 will become famous soon enough
Re: Autonomous: addParallel

I believe a parallel command won't run until the sequential command above it has finished. if you want two things to happen simultaneously, make the first one parallel.

This is a snippet of our code from last year:

Code:
          addSequential(new ShootAndReloadBall());
          addSequential(new WaitCommand(0.75));
          addParallel(new IntakeFastStore());
          addParallel(new DriveStraight(DRIVE_SPEED, DRIVE_TIME));
The last two commands execute at the same time.
Reply With Quote