Rename commands to clarify defense arm
authorShaina Chen <shaina.sierra@gmail.com>
Thu, 11 Feb 2016 03:53:03 +0000 (19:53 -0800)
committerShaina Chen <shaina.sierra@gmail.com>
Thu, 11 Feb 2016 03:53:03 +0000 (19:53 -0800)
src/org/usfirst/frc/team3501/robot/commands/LowerArmContinuous.java [deleted file]
src/org/usfirst/frc/team3501/robot/commands/LowerDefenseArmContinuous.java [new file with mode: 0755]
src/org/usfirst/frc/team3501/robot/commands/LowerDefenseWristContinuous.java [new file with mode: 0755]
src/org/usfirst/frc/team3501/robot/commands/LowerWristContinuous.java [deleted file]
src/org/usfirst/frc/team3501/robot/commands/RaiseArmContinuous.java [deleted file]
src/org/usfirst/frc/team3501/robot/commands/RaiseDefenseArmContinuous.java [new file with mode: 0755]
src/org/usfirst/frc/team3501/robot/commands/RaiseDefenseWristContinuous.java [new file with mode: 0755]
src/org/usfirst/frc/team3501/robot/commands/RaiseWristContinuous.java [deleted file]

diff --git a/src/org/usfirst/frc/team3501/robot/commands/LowerArmContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/LowerArmContinuous.java
deleted file mode 100755 (executable)
index 8d46ff9..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.usfirst.frc.team3501.robot.commands;
-
-import org.usfirst.frc.team3501.robot.Robot;
-
-import edu.wpi.first.wpilibj.command.Command;
-
-public class LowerArmContinuous extends Command {
-
-  private double speed;
-
-  public LowerArmContinuous(double speed) {
-    requires(Robot.defenseArm);
-    this.speed = -speed;
-  }
-
-  @Override
-  protected void initialize() {
-    Robot.defenseArm.setArmSpeed(speed);
-  }
-
-  @Override
-  protected void execute() {
-  }
-
-  @Override
-  protected boolean isFinished() {
-    return false;
-  }
-
-  @Override
-  protected void end() {
-    Robot.defenseArm.setArmSpeed(0);
-  }
-
-  @Override
-  protected void interrupted() {
-    end();
-  }
-}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/LowerDefenseArmContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/LowerDefenseArmContinuous.java
new file mode 100755 (executable)
index 0000000..95a1adf
--- /dev/null
@@ -0,0 +1,39 @@
+package org.usfirst.frc.team3501.robot.commands;
+
+import org.usfirst.frc.team3501.robot.Robot;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+public class LowerDefenseArmContinuous extends Command {
+
+  private double speed;
+
+  public LowerDefenseArmContinuous(double speed) {
+    requires(Robot.defenseArm);
+    this.speed = -speed;
+  }
+
+  @Override
+  protected void initialize() {
+    Robot.defenseArm.setArmSpeed(speed);
+  }
+
+  @Override
+  protected void execute() {
+  }
+
+  @Override
+  protected boolean isFinished() {
+    return false;
+  }
+
+  @Override
+  protected void end() {
+    Robot.defenseArm.setArmSpeed(0);
+  }
+
+  @Override
+  protected void interrupted() {
+    end();
+  }
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/LowerDefenseWristContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/LowerDefenseWristContinuous.java
new file mode 100755 (executable)
index 0000000..248f4ae
--- /dev/null
@@ -0,0 +1,39 @@
+package org.usfirst.frc.team3501.robot.commands;
+
+import org.usfirst.frc.team3501.robot.Robot;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+public class LowerDefenseWristContinuous extends Command {
+
+  private double speed;
+
+  public LowerDefenseWristContinuous(double speed) {
+    requires(Robot.defenseArm);
+    this.speed = -speed;
+  }
+
+  @Override
+  protected void initialize() {
+    Robot.defenseArm.setHandSpeed(speed);
+  }
+
+  @Override
+  protected void execute() {
+  }
+
+  @Override
+  protected boolean isFinished() {
+    return false;
+  }
+
+  @Override
+  protected void end() {
+    Robot.defenseArm.setHandSpeed(0);
+  }
+
+  @Override
+  protected void interrupted() {
+    end();
+  }
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/LowerWristContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/LowerWristContinuous.java
deleted file mode 100755 (executable)
index a0354a9..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.usfirst.frc.team3501.robot.commands;
-
-import org.usfirst.frc.team3501.robot.Robot;
-
-import edu.wpi.first.wpilibj.command.Command;
-
-public class LowerWristContinuous extends Command {
-
-  private double speed;
-
-  public LowerWristContinuous(double speed) {
-    requires(Robot.defenseArm);
-    this.speed = -speed;
-  }
-
-  @Override
-  protected void initialize() {
-    Robot.defenseArm.setHandSpeed(speed);
-  }
-
-  @Override
-  protected void execute() {
-  }
-
-  @Override
-  protected boolean isFinished() {
-    return false;
-  }
-
-  @Override
-  protected void end() {
-    Robot.defenseArm.setHandSpeed(0);
-  }
-
-  @Override
-  protected void interrupted() {
-    end();
-  }
-}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/RaiseArmContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/RaiseArmContinuous.java
deleted file mode 100755 (executable)
index 2ca0654..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.usfirst.frc.team3501.robot.commands;
-
-import org.usfirst.frc.team3501.robot.Robot;
-
-import edu.wpi.first.wpilibj.command.Command;
-
-public class RaiseArmContinuous extends Command {
-
-  private double speed;
-
-  public RaiseArmContinuous(double speed) {
-    requires(Robot.defenseArm);
-    this.speed = speed;
-  }
-
-  @Override
-  protected void initialize() {
-    Robot.defenseArm.setArmSpeed(speed);
-  }
-
-  @Override
-  protected void execute() {
-  }
-
-  @Override
-  protected boolean isFinished() {
-    return false;
-  }
-
-  @Override
-  protected void end() {
-    Robot.defenseArm.setArmSpeed(0);
-  }
-
-  @Override
-  protected void interrupted() {
-    end();
-  }
-}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/RaiseDefenseArmContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/RaiseDefenseArmContinuous.java
new file mode 100755 (executable)
index 0000000..def18f9
--- /dev/null
@@ -0,0 +1,39 @@
+package org.usfirst.frc.team3501.robot.commands;
+
+import org.usfirst.frc.team3501.robot.Robot;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+public class RaiseDefenseArmContinuous extends Command {
+
+  private double speed;
+
+  public RaiseDefenseArmContinuous(double speed) {
+    requires(Robot.defenseArm);
+    this.speed = speed;
+  }
+
+  @Override
+  protected void initialize() {
+    Robot.defenseArm.setArmSpeed(speed);
+  }
+
+  @Override
+  protected void execute() {
+  }
+
+  @Override
+  protected boolean isFinished() {
+    return false;
+  }
+
+  @Override
+  protected void end() {
+    Robot.defenseArm.setArmSpeed(0);
+  }
+
+  @Override
+  protected void interrupted() {
+    end();
+  }
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/RaiseDefenseWristContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/RaiseDefenseWristContinuous.java
new file mode 100755 (executable)
index 0000000..c8cc287
--- /dev/null
@@ -0,0 +1,39 @@
+package org.usfirst.frc.team3501.robot.commands;
+
+import org.usfirst.frc.team3501.robot.Robot;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+public class RaiseDefenseWristContinuous extends Command {
+
+  private double speed;
+
+  public RaiseDefenseWristContinuous(double speed) {
+    requires(Robot.defenseArm);
+    this.speed = speed;
+  }
+
+  @Override
+  protected void initialize() {
+    Robot.defenseArm.setHandSpeed(speed);
+  }
+
+  @Override
+  protected void execute() {
+  }
+
+  @Override
+  protected boolean isFinished() {
+    return false;
+  }
+
+  @Override
+  protected void end() {
+    Robot.defenseArm.setHandSpeed(0);
+  }
+
+  @Override
+  protected void interrupted() {
+    end();
+  }
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/RaiseWristContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/RaiseWristContinuous.java
deleted file mode 100755 (executable)
index 1270c8e..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.usfirst.frc.team3501.robot.commands;
-
-import org.usfirst.frc.team3501.robot.Robot;
-
-import edu.wpi.first.wpilibj.command.Command;
-
-public class RaiseWristContinuous extends Command {
-
-  private double speed;
-
-  public RaiseWristContinuous(double speed) {
-    requires(Robot.defenseArm);
-    this.speed = speed;
-  }
-
-  @Override
-  protected void initialize() {
-    Robot.defenseArm.setHandSpeed(speed);
-  }
-
-  @Override
-  protected void execute() {
-  }
-
-  @Override
-  protected boolean isFinished() {
-    return false;
-  }
-
-  @Override
-  protected void end() {
-    Robot.defenseArm.setHandSpeed(0);
-  }
-
-  @Override
-  protected void interrupted() {
-    end();
-  }
-}