add requires statements
authorArunima DIvya <adivya822@student.fuhsd.org>
Thu, 26 Jan 2017 03:50:08 +0000 (19:50 -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/ReverseIntakeContinuous.java

index bab630da953142a9e95034e66bec90d22e08b1cd..b84a1920b9cbf90a3509c108522fb1e8a1169fb5 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;
 
 /**
@@ -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