shooter code review changes
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / ReverseIndexWheelContinuous.java
index 79a0f237f18e368ea6dc165e5e525f60b00c44e0..4cb18f9b28b8e57061b62c3758a5ef357a975591 100644 (file)
@@ -38,12 +38,13 @@ public class ReverseIndexWheelContinuous extends Command {
   // Called repeatedly when this Command is scheduled to run
   @Override
   protected void execute() {
-    shooter.setIndexWheelMotorVal(shooter.DEFAULT_INDEXING_SPEED * -1);
+    shooter.reverseIndexWheel();
   }
 
   // Called once after isFinished returns true
   @Override
   protected void end() {
+    shooter.stopIndexWheel();
   }
 
   // Called when another command which requires one or more of the same