From: Arunima DIvya Date: Tue, 24 Jan 2017 03:13:45 +0000 (-0800) Subject: Write execute method , wrote initialize method, and emptied end method X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=e0c1a10ba9083f01bd8061c3e74dbc5b139067ae Write execute method , wrote initialize method, and emptied end method --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java b/src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java index 82bb550..e4f9cd7 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java +++ b/src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java @@ -1,6 +1,6 @@ package org.usfirst.frc.team3501.robot.commands.intake; -import org.usfirst.frc.team3501.robot.subsystems.Intake; +import org.usfirst.frc.team3501.robot.Robot; import edu.wpi.first.wpilibj.Timer; import edu.wpi.first.wpilibj.command.Command; @@ -28,17 +28,18 @@ public class RunIntake extends Command { // Called just before this Command runs the first time @Override protected void initialize() { + timer.start(); } // Called repeatedly when this Command is scheduled to run @Override protected void execute() { + Robot.getIntake().setSpeed(Robot.getIntake().INTAKE_SPEED); } // 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