Add Intake subsystem, filled in methods for Intake commands
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / intake / StopIntake.java
index 6a2cc26c9821ec478b0517b62f8b2cb4c6a80ebd..54e8a603b5aff28bb1b23e8871f921d3b62a0c6d 100644 (file)
@@ -1,5 +1,7 @@
 package org.usfirst.frc.team3501.robot.commands.intake;
 
+import org.usfirst.frc.team3501.robot.subsystems.Intake;
+
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
@@ -26,12 +28,14 @@ public class StopIntake extends Command {
   // Called once after isFinished returns true
   @Override
   protected void end() {
+    Intake.intake.setSpeed(0);
   }
 
   // Called when another command which requires one or more of the same
   // subsystems is scheduled to run
   @Override
   protected void interrupted() {
+    end();
   }
 
   @Override