add corrections
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / ReverseIndexWheel.java
index 544a81533158ec247845a4fb5c81869d1938fa38..853dff694da97cfdbd487bb97b913125015a79f2 100644 (file)
@@ -1,6 +1,7 @@
 package org.usfirst.frc.team3501.robot.commands.shooter;
 
 import org.usfirst.frc.team3501.robot.Robot;
+import org.usfirst.frc.team3501.robot.subsystems.Shooter;
 
 import edu.wpi.first.wpilibj.command.Command;
 
@@ -14,6 +15,7 @@ import edu.wpi.first.wpilibj.command.Command;
 public class ReverseIndexWheel extends Command {
   private double time;
   private double motorVal;
+  private Shooter shooter = Robot.getShooter();
 
   /**
    * See JavaDoc comment in class for details
@@ -37,7 +39,7 @@ public class ReverseIndexWheel extends Command {
 
   @Override
   protected void execute() {
-    Robot.getShooter().setIndexWheelMotorVal(-motorVal);
+    shooter.runIndexWheelReverse();
 
   }