From e52450a4cfab8f8f23539228a6da949b87236bc3 Mon Sep 17 00:00:00 2001 From: Arunima DIvya Date: Mon, 23 Jan 2017 19:47:08 -0800 Subject: [PATCH] Add 'requires' command and fill in execute method --- .../team3501/robot/commands/intake/RunIntakeContinuous.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/usfirst/frc/team3501/robot/commands/intake/RunIntakeContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/intake/RunIntakeContinuous.java index 9036f15..961c3fc 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/intake/RunIntakeContinuous.java +++ b/src/org/usfirst/frc/team3501/robot/commands/intake/RunIntakeContinuous.java @@ -1,5 +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; @@ -16,7 +17,7 @@ public class RunIntakeContinuous extends Command { // speed to 0 public RunIntakeContinuous() { - + requires(Robot.getIntake()); } @Override @@ -34,7 +35,7 @@ public class RunIntakeContinuous extends Command { // 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 -- 2.30.2