X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fshooter%2FRunIndexWheel.java;h=d9966f1171494ace578ccc72ae081a5bbed46c10;hp=3f8baa0c3ffe2527e59701e9967115371685f979;hb=f625e57a09b295f7d40e4568a8e3a8cd125630aa;hpb=1782cbadb12ad13d30eab7597f656cbe17f48df2 diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java index 3f8baa0..d9966f1 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java @@ -39,9 +39,8 @@ public class RunIndexWheel extends Command { @Override protected void execute() { double shooterSpeed = shooter.getShooterRPM(); - if (shooterSpeed > 0) { - shooter.setIndexWheelMotorVal(shooter.DEFAULT_INDEXING_SPEED); - } + if (shooterSpeed > 0) + shooter.runIndexWheel(); } // Called once after isFinished returns true