From: Cindy Zhang Date: Wed, 11 Jan 2017 03:46:28 +0000 (-0800) Subject: add example command group X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=04743f96b4f14a88a7315e1ea0a6aa47651358f5 add example command group --- diff --git a/src/org/usfirst/frc/team3501/robot/commandGroups/ExampleCommandGroup.java b/src/org/usfirst/frc/team3501/robot/commandGroups/ExampleCommandGroup.java new file mode 100644 index 0000000..7035c91 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commandGroups/ExampleCommandGroup.java @@ -0,0 +1,28 @@ +package org.usfirst.frc.team3501.robot.commandGroups; + +import edu.wpi.first.wpilibj.command.CommandGroup; + +/** + * + */ +public class ExampleCommandGroup extends CommandGroup { + + public ExampleCommandGroup() { + // Add Commands here: + // e.g. addSequential(new Command1()); + // addSequential(new Command2()); + // these will run in order. + + // To run multiple commands at the same time, + // use addParallel() + // e.g. addParallel(new Command1()); + // addSequential(new Command2()); + // Command1 and Command2 will run in parallel. + + // A command group will require all of the subsystems that each member + // would require. + // e.g. if Command1 requires chassis, and Command2 requires arm, + // a CommandGroup containing them would require both the chassis and the + // arm. + } +}