X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fshooter%2FRunIndexWheelContinuous.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fshooter%2FRunIndexWheelContinuous.java;h=ccc0e4374d6223121eefff87bc28ced1bee495c2;hb=6bc81b557f637fa81f73c33161e82cba049235f3;hp=2004c1d506438e2979a3f334f1efa5da251bd908;hpb=dd4a87932b7956021f78c8e86cff6adf0187aa8f;p=3501%2F2017steamworks diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java index 2004c1d..ccc0e43 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java @@ -24,24 +24,18 @@ public class RunIndexWheelContinuous extends Command { /** * See JavaDoc comment in class for details - * - * @param motorVal - * value range from -1 to 1 */ public RunIndexWheelContinuous() { requires(shooter); } - // Called just before this Command runs the first time @Override protected void initialize() { t.start(); } - // Called repeatedly when this Command is scheduled to run @Override protected void execute() { - if (t.get() >= 1) { if (Shooter.getShooter().getPistonValue() == Constants.Shooter.LOW_GEAR) { Shooter.getShooter().setHighGear(); @@ -53,16 +47,14 @@ public class RunIndexWheelContinuous extends Command { if (shooter.isShooterRPMWithinRangeOfTargetSpeed(25)) shooter.runIndexWheel(); + } - // Called once after isFinished returns true @Override protected void end() { shooter.stopIndexWheel(); } - // Called when another command which requires one or more of the same - // subsystems is scheduled to run @Override protected void interrupted() { end(); @@ -71,7 +63,6 @@ public class RunIndexWheelContinuous extends Command { @Override protected boolean isFinished() { return false; - } }