View Single Post
  #7   Spotlight this post!  
Unread 05-03-2015, 14:16
Ty Tremblay's Avatar
Ty Tremblay Ty Tremblay is offline
Robotics Engineer
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Alton NH
Posts: 822
Ty Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond repute
Re: Autonomous: addParallel

It's a little counter intuitive at first, but addParallel() commands run in parallel with the first addSequential() AFTER them.

Code:
addParallel(1)
addParallel(2)
addSequential(1)  //All 3 commands run

addSequential(1)
addParallel(1)
addParallel(2)
addSequential(2) //sequential 1 will run, then parallels 1&2 will run with sequential 2
__________________
Reply With Quote