Class ParallelRaceGroup

java.lang.Object
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.ParallelRaceGroup
All Implemented Interfaces:
Sendable

public class ParallelRaceGroup
extends Command
A composition that runs a set of commands in parallel, ending when any one of the commands ends and interrupting all the others.

The rules for command compositions apply: command instances that are passed to it cannot be added to any other composition or scheduled individually, and the composition requires all subsystems its components require.

This class is provided by the NewCommands VendorDep

  • Constructor Details

    • ParallelRaceGroup

      public ParallelRaceGroup​(Command... commands)
      Creates a new ParallelCommandRace. The given commands will be executed simultaneously, and will "race to the finish" - the first command to finish ends the entire command, with all other commands being interrupted.
      Parameters:
      commands - the commands to include in this composition.
  • Method Details