add second piston that controls hood to isHoodDown method
authorCindy Zhang <cindyzyx9@gmail.com>
Wed, 17 Feb 2016 19:11:14 +0000 (11:11 -0800)
committerCindy Zhang <cindyzyx9@gmail.com>
Wed, 17 Feb 2016 19:11:14 +0000 (11:11 -0800)
src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java

index 69bff0bda6ca9475560fa93853f245dbdeeea05b..3633c04ca10e2fea9e5c63a656427a86642eaea1 100755 (executable)
@@ -105,7 +105,8 @@ public class Shooter extends Subsystem {
   }
 
   public boolean isHoodDown() {
-    if (hood1.get() == Constants.Shooter.open)
+    if (hood1.get() == Constants.Shooter.open
+        && hood2.get() == Constants.Shooter.open)
       return true;
     return false;
   }