Allow use of photogate as an option in shoot.java command group
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / subsystems / Shooter.java
index 0d9187a441b6a734e4fc0e61ef3d848a7034d16f..91793d8aebd2546c6733f1cd05f98302d72a6ae5 100755 (executable)
@@ -49,7 +49,10 @@ public class Shooter extends Subsystem {
    */
 
   public boolean isBallInside() {
-    return photogate.isBallPresent();
+    if (usePhotogate())
+      return photogate.isBallPresent();
+    else
+      return false;
   }
 
   public void setSpeed(double speed) {
@@ -113,6 +116,10 @@ public class Shooter extends Subsystem {
     return false;
   }
 
+  public boolean usePhotogate() {
+    return true;
+  }
+
   @Override
   protected void initDefaultCommand() {
   }