From: niyatisriram Date: Wed, 17 Feb 2016 19:32:49 +0000 (-0800) Subject: Make 2 new classes, ExtendPunch and RetractPunch in the place of Punch X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=90cf1657f15a9f66ce79dacf898ad2b9b453ae16 Make 2 new classes, ExtendPunch and RetractPunch in the place of Punch --- 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 index 00000000..a3cb8138 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/ExtendPunch.java @@ -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 index 36ef785f..00000000 --- a/src/org/usfirst/frc/team3501/robot/commands/shooter/Punch.java +++ /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 index 00000000..c977a2e8 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RetractPunch.java @@ -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() { + + } + +}