From: Arunima DIvya Date: Wed, 25 Jan 2017 04:40:32 +0000 (-0800) Subject: add end method code to initialize method X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=d7f90383757ce33ce71e8331d6c2782b048657df add end method code to initialize method --- 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; }