Make 2 new classes, ExtendPunch and RetractPunch in the place of Punch
authorniyatisriram <niyatisriram@gmail.com>
Wed, 17 Feb 2016 19:32:49 +0000 (11:32 -0800)
committerKevin Zhang <icestormf1@gmail.com>
Wed, 17 Feb 2016 20:33:40 +0000 (12:33 -0800)
src/org/usfirst/frc/team3501/robot/commands/shooter/ExtendPunch.java [new file with mode: 0644]
src/org/usfirst/frc/team3501/robot/commands/shooter/Punch.java [deleted file]
src/org/usfirst/frc/team3501/robot/commands/shooter/RetractPunch.java [new file with mode: 0644]

diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/ExtendPunch.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/ExtendPunch.java
new file mode 100644 (file)
index 0000000..a3cb813
--- /dev/null
@@ -0,0 +1,34 @@
+package org.usfirst.frc.team3501.robot.commands.shooter;
+
+import org.usfirst.frc.team3501.robot.Robot;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+public class ExtendPunch extends Command {
+
+  @Override
+  protected void initialize() {
+    Robot.shooter.extendPunch();
+  }
+
+  @Override
+  protected void execute() {
+
+  }
+
+  @Override
+  protected boolean isFinished() {
+    return true;
+  }
+
+  @Override
+  protected void end() {
+
+  }
+
+  @Override
+  protected void interrupted() {
+
+  }
+
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/Punch.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/Punch.java
deleted file mode 100644 (file)
index 36ef785..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.usfirst.frc.team3501.robot.commands.shooter;
-
-import org.usfirst.frc.team3501.robot.Robot;
-
-import edu.wpi.first.wpilibj.command.Command;
-
-public class Punch extends Command {
-
-  @Override
-  protected void initialize() {
-    Robot.shooter.extendPunch();
-  }
-
-  @Override
-  protected void execute() {
-
-  }
-
-  @Override
-  protected boolean isFinished() {
-    return true;
-  }
-
-  @Override
-  protected void end() {
-    Robot.shooter.retractPunch();
-  }
-
-  @Override
-  protected void interrupted() {
-
-  }
-
-}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RetractPunch.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RetractPunch.java
new file mode 100644 (file)
index 0000000..c977a2e
--- /dev/null
@@ -0,0 +1,34 @@
+package org.usfirst.frc.team3501.robot.commands.shooter;
+
+import org.usfirst.frc.team3501.robot.Robot;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+public class RetractPunch extends Command {
+
+  @Override
+  protected void initialize() {
+    Robot.shooter.retractPunch();
+  }
+
+  @Override
+  protected void execute() {
+
+  }
+
+  @Override
+  protected boolean isFinished() {
+    return true;
+  }
+
+  @Override
+  protected void end() {
+
+  }
+
+  @Override
+  protected void interrupted() {
+
+  }
+
+}