From e0c1a10ba9083f01bd8061c3e74dbc5b139067ae Mon Sep 17 00:00:00 2001 From: Arunima DIvya Date: Mon, 23 Jan 2017 19:13:45 -0800 Subject: [PATCH] Write execute method , wrote initialize method, and emptied end method --- .../frc/team3501/robot/commands/intake/RunIntake.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.30.2