From: Arunima DIvya Date: Thu, 26 Jan 2017 03:49:46 +0000 (-0800) Subject: add requires statement X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=2cbf20d2bf871cbc8684ef06c7d5051644e52d19 add requires statement --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntake.java b/src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntake.java index 580b059..6b7caff 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntake.java +++ b/src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntake.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; /** @@ -10,8 +12,7 @@ import edu.wpi.first.wpilibj.command.Command; public class ReverseIntake extends Command { public ReverseIntake(double timeToMove) { - // Use requires() here to declare subsystem dependencies - // eg. requires(chassis); + requires(Robot.getIntake()); } // Called just before this Command runs the first time