From: shainachen Date: Thu, 12 Jan 2017 04:37:42 +0000 (-0800) Subject: Create command package for shooter and create skeleton commands X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=809609c90af820574d54545300485fd5e0ff85e7 Create command package for shooter and create skeleton commands --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheel.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheel.java new file mode 100644 index 0000000..6a6e950 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheel.java @@ -0,0 +1,21 @@ +package org.usfirst.frc.team3501.robot.commands.shooter; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * Runs the fly wheel at a given speed in () for input time in seconds + * + * @param speed + * in () + * @param time + * in seconds + */ +public class RunFlyWheel extends Command { + + @Override + protected boolean isFinished() { + // TODO Auto-generated method stub + return false; + } + +} diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java new file mode 100644 index 0000000..c294938 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java @@ -0,0 +1,16 @@ +package org.usfirst.frc.team3501.robot.commands.shooter; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * Runs fly wheel continuously until ________ + */ +public class RunFlyWheelContinuous extends Command { + + @Override + protected boolean isFinished() { + // TODO Auto-generated method stub + return false; + } + +} diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java new file mode 100644 index 0000000..74a7d70 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java @@ -0,0 +1,21 @@ +package org.usfirst.frc.team3501.robot.commands.shooter; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * Runs index wheel at a given speed in () for input time in seconds + * + * @param speed + * in () + * @param time + * in seconds + */ +public class RunIndexWheel extends Command { + + @Override + protected boolean isFinished() { + // TODO Auto-generated method stub + return false; + } + +} diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java new file mode 100644 index 0000000..77ebe24 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java @@ -0,0 +1,16 @@ +package org.usfirst.frc.team3501.robot.commands.shooter; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * Runs index wheel continuously until ________ + */ +public class RunIndexWheelContinuous extends Command { + + @Override + protected boolean isFinished() { + // TODO Auto-generated method stub + return false; + } + +} diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/StopFlyWheel.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/StopFlyWheel.java new file mode 100644 index 0000000..68c6cf0 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/StopFlyWheel.java @@ -0,0 +1,38 @@ +package org.usfirst.frc.team3501.robot.commands.shooter; + +import edu.wpi.first.wpilibj.command.Command; + +public class StopFlyWheel extends Command { + + /** + * Stops fly wheel + */ + + // 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() { + } + + // 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() { + } + + @Override + protected boolean isFinished() { + // TODO Auto-generated method stub + return false; + } + +} diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/StopIndexWheel.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/StopIndexWheel.java new file mode 100644 index 0000000..0af4929 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/StopIndexWheel.java @@ -0,0 +1,40 @@ +package org.usfirst.frc.team3501.robot.commands.shooter; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * Stops index wheel + */ +public class StopIndexWheel extends Command { + public StopIndexWheel() { + + } + + // 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() { + } + + // 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() { + } + + @Override + protected boolean isFinished() { + // TODO Auto-generated method stub + return false; + } + +} diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java index 2181b56..759a232 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java @@ -14,7 +14,7 @@ public class Shooter { /** * Runs the fly wheel at a given speed in () for input time in seconds - * + * * @param speed * in () * @param time @@ -33,7 +33,7 @@ public class Shooter { /** * Runs index wheel at a given speed in () for input time in seconds - * + * * @param speed * in () * @param time