From: Arunima DIvya Date: Tue, 24 Jan 2017 03:47:08 +0000 (-0800) Subject: Add 'requires' command and fill in execute method X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=e52450a4cfab8f8f23539228a6da949b87236bc3 Add 'requires' command and fill in execute method --- 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