From: Cindy Zhang Date: Sat, 13 Feb 2016 21:05:44 +0000 (-0800) Subject: add command MoveDefenseArm to specified target position based on input verticalDispla... X-Git-Url: http://challenge-bot.com/repos/?a=commitdiff_plain;h=4385395b74362c087ea4f0bf848058a77bafa40a;p=3501%2Fstronghold-2016 add command MoveDefenseArm to specified target position based on input verticalDisplacement --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/MoveDefenseArmVertical.java b/src/org/usfirst/frc/team3501/robot/commands/MoveDefenseArmVertical.java index 71abaab1..73db39c4 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/MoveDefenseArmVertical.java +++ b/src/org/usfirst/frc/team3501/robot/commands/MoveDefenseArmVertical.java @@ -6,23 +6,8 @@ import edu.wpi.first.wpilibj.command.CommandGroup; * */ public class MoveDefenseArmVertical extends CommandGroup { - - public MoveDefenseArmVertical() { - // 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. - } + public MoveDefenseArmVertical(double x, double y, double verticalDisplacement) { + addSequential(new MoveDefenseArm(x, y + verticalDisplacement)); + } }