From 6bc8d8a06d559e43ed10772d4a8e1a2247a028fc Mon Sep 17 00:00:00 2001 From: Shaina Chen Date: Tue, 9 Feb 2016 20:46:07 -0800 Subject: [PATCH] create and fill in retractDefenseArm command group --- .../robot/commands/RetractDefenseArm.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 src/org/usfirst/frc/team3501/robot/commands/RetractDefenseArm.java diff --git a/src/org/usfirst/frc/team3501/robot/commands/RetractDefenseArm.java b/src/org/usfirst/frc/team3501/robot/commands/RetractDefenseArm.java new file mode 100755 index 00000000..cdd3c4cf --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/RetractDefenseArm.java @@ -0,0 +1,18 @@ +package org.usfirst.frc.team3501.robot.commands; + +import org.usfirst.frc.team3501.robot.Robot; + +import edu.wpi.first.wpilibj.command.CommandGroup; + +/** + * + */ +public class RetractDefenseArm extends CommandGroup { + + public RetractDefenseArm(double speed, double retractPosition) { + requires(Robot.defenseArm); + + addParallel(new SetArmToAngle(speed, retractPosition)); + addParallel(new SetHandToAngle(speed, retractPosition)); + } +} -- 2.30.2