Implement stopFlyWheel and stopIndexWheel
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / StopIndexWheel.java
index 4a04f4caacf2dee9816ca7b791dd9ff41e9aba12..e878182263275f13f560d849e0efeb535f8df3e1 100644 (file)
@@ -1,5 +1,7 @@
 package org.usfirst.frc.team3501.robot.commands.shooter;
 
+import org.usfirst.frc.team3501.robot.Robot;
+
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
@@ -29,6 +31,7 @@ public class StopIndexWheel extends Command {
   // Called once after isFinished returns true
   @Override
   protected void end() {
+    Robot.getShooter().stopIndexWheel();
   }
 
   // Called when another command which requires one or more of the same
@@ -39,8 +42,7 @@ public class StopIndexWheel extends Command {
 
   @Override
   protected boolean isFinished() {
-    // TODO Auto-generated method stub
-    return false;
+    return true;
   }
 
 }