From ed1b7b7485b9939ed80e9b44e29b93ac1372add3 Mon Sep 17 00:00:00 2001 From: Cindy Zhang Date: Sat, 14 Jan 2017 11:24:10 -0800 Subject: [PATCH] Add Example Command Group --- .../commandgroups/ExampleCommandGroup.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/org/usfirst/frc/team3501/robot/commandgroups/ExampleCommandGroup.java 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..27909f4 --- /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; + +/** + * Example Command group + */ +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. + } +} -- 2.30.2