add require statements
authorLauren Meier <meier.lauren@gmail.com>
Wed, 10 Feb 2016 04:16:57 +0000 (20:16 -0800)
committerLauren Meier <meier.lauren@gmail.com>
Sat, 13 Feb 2016 22:43:23 +0000 (14:43 -0800)
src/org/usfirst/frc/team3501/robot/commands/ExpelBall.java
src/org/usfirst/frc/team3501/robot/commands/IntakeBall.java
src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerExpel.java
src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerIntake.java

index 573bd9048cdef6fbabb75ed98b343494cd2f6bd4..00ad7426b0557564951e67a301068090d438afdf 100644 (file)
@@ -7,6 +7,7 @@ import edu.wpi.first.wpilibj.command.Command;
 public class ExpelBall extends Command {
 
   public ExpelBall() {
+    requires(Robot.intakeArm);
   }
 
   @Override
index 7d90e44abef6e99d3e9b2ec819fe9b9ee54d9555..55039a5e2af158dfaeb0638b7f69df8489ebcfff 100644 (file)
@@ -7,6 +7,7 @@ import edu.wpi.first.wpilibj.command.Command;
 public class IntakeBall extends Command {
 
   public IntakeBall() {
+    requires(Robot.intakeArm);
   }
 
   @Override
index b6d6ffe7daa4b3fddcd592951e0f946c01de14b1..d769ace1005e20978a5722db2da2f8cb392efd32 100644 (file)
@@ -7,6 +7,7 @@ import edu.wpi.first.wpilibj.command.Command;
 public class ToggleBallRollerExpel extends Command {
 
   public ToggleBallRollerExpel() {
+    requires(Robot.intakeArm);
   }
 
   @Override
index 5741c1c0710becd3cffd8303f225692fcd3e8369..223e789c59a06ee26f2a8d442b9a90c5754b8ab2 100644 (file)
@@ -7,6 +7,7 @@ import edu.wpi.first.wpilibj.command.Command;
 public class ToggleBallRollerIntake extends Command {
 
   public ToggleBallRollerIntake() {
+    requires(Robot.intakeArm);
   }
 
   @Override