From ee31518f357dbc4d63f2790938c0c71dcad088af Mon Sep 17 00:00:00 2001 From: Cindy Zhang Date: Wed, 17 Feb 2016 11:11:14 -0800 Subject: [PATCH] add second piston that controls hood to isHoodDown method --- src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java index 69bff0bd..3633c04c 100755 --- a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java @@ -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; } -- 2.30.2