X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FClaw.java;h=a4c4cb46f44fdd62a890eed4cd6589aa6307e3ff;hb=d24e8611dc96b16cc613a0de54bde4e682a06ba2;hp=5c9ae5b6c9e3e3b7adaca6426d26c806221869d7;hpb=510cff21b567a9d71b188b28081b716b9ea816cc;p=3501%2F3501-spark-go diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/Claw.java b/src/org/usfirst/frc/team3501/robot/subsystems/Claw.java index 5c9ae5b..a4c4cb4 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/Claw.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/Claw.java @@ -22,5 +22,13 @@ public class Claw extends Subsystem { piston.set(RobotMap.CLOSED); } + public boolean isOpen() { + return piston.get().equals(RobotMap.OPEN); + } + + public boolean isClosed() { + return piston.get().equals(RobotMap.CLOSED); + } + public void initDefaultCommand() {} }