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