add requires statement
authorArunima DIvya <adivya822@student.fuhsd.org>
Thu, 26 Jan 2017 03:49:46 +0000 (19:49 -0800)
committerArunima DIvya <adivya822@student.fuhsd.org>
Thu, 26 Jan 2017 04:33:23 +0000 (20:33 -0800)
src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntake.java

index 580b05967b147d6b9fe8b69d850267717fd83df5..6b7caff5658dca64b68708e9a35f137ff3337cbd 100644 (file)
@@ -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