Fix intake/expel ball methods by calling shooter subsystem instead of photogate class
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / intakearm / IntakeBall.java
index 8eda8dba52c2aaa1ea16920d9f54d665cc314803..7966c6144b730ecefc61dc9e87f0a076c84dd8f5 100644 (file)
@@ -28,7 +28,7 @@ public class IntakeBall extends Command {
   @Override
   protected void initialize() {
     this.setTimeout(TIMEOUT_AMOUNT);
-    if (!Robot.photogate.isBallPresent())
+    if (!Robot.shooter.isBallInside())
       Robot.intakeArm.intakeBall();
 
   }
@@ -40,7 +40,7 @@ public class IntakeBall extends Command {
 
   @Override
   protected boolean isFinished() {
-    return (this.isTimedOut() || Robot.photogate.isBallPresent());
+    return (this.isTimedOut() || Robot.shooter.isBallInside());
   }
 
   @Override