From: Shaina Chen Date: Thu, 11 Feb 2016 03:53:03 +0000 (-0800) Subject: Rename commands to clarify defense arm X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=1269b39b71a2b1d5fb7733869d315c52f21a7e36 Rename commands to clarify defense arm --- 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 index 8d46ff92..00000000 --- a/src/org/usfirst/frc/team3501/robot/commands/LowerArmContinuous.java +++ /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 index 00000000..95a1adf6 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/LowerDefenseArmContinuous.java @@ -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 index 00000000..248f4ae0 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/LowerDefenseWristContinuous.java @@ -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 index a0354a9c..00000000 --- a/src/org/usfirst/frc/team3501/robot/commands/LowerWristContinuous.java +++ /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 index 2ca0654c..00000000 --- a/src/org/usfirst/frc/team3501/robot/commands/RaiseArmContinuous.java +++ /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 index 00000000..def18f9f --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/RaiseDefenseArmContinuous.java @@ -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 index 00000000..c8cc2875 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/RaiseDefenseWristContinuous.java @@ -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 index 1270c8e9..00000000 --- a/src/org/usfirst/frc/team3501/robot/commands/RaiseWristContinuous.java +++ /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(); - } -}