From 809609c90af820574d54545300485fd5e0ff85e7 Mon Sep 17 00:00:00 2001 From: shainachen Date: Wed, 11 Jan 2017 20:37:42 -0800 Subject: [PATCH] Create command package for shooter and create skeleton commands --- .../robot/commands/shooter/RunFlyWheel.java | 21 ++++++++++ .../shooter/RunFlyWheelContinuous.java | 16 ++++++++ .../robot/commands/shooter/RunIndexWheel.java | 21 ++++++++++ .../shooter/RunIndexWheelContinuous.java | 16 ++++++++ .../robot/commands/shooter/StopFlyWheel.java | 38 ++++++++++++++++++ .../commands/shooter/StopIndexWheel.java | 40 +++++++++++++++++++ .../team3501/robot/subsystems/Shooter.java | 4 +- 7 files changed, 154 insertions(+), 2 deletions(-) create mode 100644 src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheel.java create mode 100644 src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java create mode 100644 src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java create mode 100644 src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java create mode 100644 src/org/usfirst/frc/team3501/robot/commands/shooter/StopFlyWheel.java create mode 100644 src/org/usfirst/frc/team3501/robot/commands/shooter/StopIndexWheel.java 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 -- 2.30.2