create and fill in retractDefenseArm command group
authorShaina Chen <shaina.sierra@gmail.com>
Wed, 10 Feb 2016 04:46:07 +0000 (20:46 -0800)
committerShaina Chen <shaina.sierra@gmail.com>
Wed, 10 Feb 2016 04:46:07 +0000 (20:46 -0800)
src/org/usfirst/frc/team3501/robot/commands/RetractDefenseArm.java [new file with mode: 0755]

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 (executable)
index 0000000..cdd3c4c
--- /dev/null
@@ -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));
+  }
+}