X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fshooter%2FTestFlyWheelButton.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fshooter%2FTestFlyWheelButton.java;h=7536afd4fa7c633d9d21126e9e4f0704f95e3ecf;hb=e7bf265c6f1232c6d3cd9a938ab2850dd57fbd26;hp=0000000000000000000000000000000000000000;hpb=f625e57a09b295f7d40e4568a8e3a8cd125630aa;p=3501%2F2017steamworks diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/TestFlyWheelButton.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/TestFlyWheelButton.java new file mode 100644 index 0000000..7536afd --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/TestFlyWheelButton.java @@ -0,0 +1,53 @@ +package org.usfirst.frc.team3501.robot.commands.shooter; + +import org.usfirst.frc.team3501.robot.Robot; +import org.usfirst.frc.team3501.robot.subsystems.Shooter; + +import edu.wpi.first.wpilibj.command.Command; + +/** + + */ +public class TestFlyWheelButton extends Command { + private Shooter shooter = Robot.getShooter(); + + /** + * See JavaDoc comment in class for details + * + * @param motorVal + * value range from -1 to 1 + */ + public TestFlyWheelButton() { + requires(shooter); + } + + // Called just before this Command runs the first time + @Override + protected void initialize() { + } + + // Called repeatedly when this Command is scheduled to run + @Override + protected void execute() { + System.out.println("Running Fly Wheel"); + } + + // Called once after isFinished returns true + @Override + protected void end() { + } + + // Called when another command which requires one or more of the same + // subsystems is scheduled to run + @Override + protected void interrupted() { + end(); + } + + @Override + protected boolean isFinished() { + return false; + + } + +}