From d7f90383757ce33ce71e8331d6c2782b048657df Mon Sep 17 00:00:00 2001 From: Arunima DIvya Date: Tue, 24 Jan 2017 20:40:32 -0800 Subject: [PATCH] add end method code to initialize method --- .../frc/team3501/robot/commands/intake/StopIntake.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java b/src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java index 5228040..92b8b82 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java +++ b/src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java @@ -1,7 +1,6 @@ package org.usfirst.frc.team3501.robot.commands.intake; import org.usfirst.frc.team3501.robot.Robot; -import org.usfirst.frc.team3501.robot.subsystems.Intake; import edu.wpi.first.wpilibj.command.Command; @@ -19,6 +18,7 @@ public class StopIntake extends Command { // Called just before this Command runs the first time @Override protected void initialize() { + Robot.getIntake().stopIntake(); } // Called repeatedly when this Command is scheduled to run @@ -29,7 +29,6 @@ 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 @@ -41,7 +40,6 @@ public class StopIntake extends Command { @Override protected boolean isFinished() { - // TODO Auto-generated method stub return true; } -- 2.30.2