From 6486f4058c2c8fad53e3a6305b18d91d76fa0e1a Mon Sep 17 00:00:00 2001 From: Arunima DIvya Date: Wed, 25 Jan 2017 19:50:08 -0800 Subject: [PATCH] add requires statements --- .../robot/commands/intake/ReverseIntakeContinuous.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntakeContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntakeContinuous.java index bab630d..b84a192 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntakeContinuous.java +++ b/src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntakeContinuous.java @@ -1,5 +1,7 @@ package org.usfirst.frc.team3501.robot.commands.intake; +import org.usfirst.frc.team3501.robot.Robot; + import edu.wpi.first.wpilibj.command.Command; /** @@ -9,9 +11,8 @@ import edu.wpi.first.wpilibj.command.Command; */ public class ReverseIntakeContinuous extends Command { - public ReverseIntakeContinuous(double timeToMove) { - // Use requires() here to declare subsystem dependencies - // eg. requires(chassis); + public ReverseIntakeContinuous() { + requires(Robot.getIntake()); } // Called just before this Command runs the first time -- 2.30.2