X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fshooter%2FRunIndexWheel.java;h=d9966f1171494ace578ccc72ae081a5bbed46c10;hb=f625e57a09b295f7d40e4568a8e3a8cd125630aa;hp=68383544bf95779ff7b7b79f887703b9a8942a83;hpb=00f515a1e32e2ef2217aa5c981a860ec584f16f1;p=3501%2F2017steamworks 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 6838354..d9966f1 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java @@ -38,7 +38,9 @@ public class RunIndexWheel extends Command { // Called repeatedly when this Command is scheduled to run @Override protected void execute() { - shooter.setIndexWheelMotorVal(shooter.DEFAULT_INDEXING_SPEED); + double shooterSpeed = shooter.getShooterRPM(); + if (shooterSpeed > 0) + shooter.runIndexWheel(); } // Called once after isFinished returns true