projects
/
3501
/
3501-spark-go
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add claw toggle and winch tensioning
[3501/3501-spark-go]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
subsystems
/
Claw.java
diff --git
a/src/org/usfirst/frc/team3501/robot/subsystems/Claw.java
b/src/org/usfirst/frc/team3501/robot/subsystems/Claw.java
index 5c9ae5b6c9e3e3b7adaca6426d26c806221869d7..a4c4cb46f44fdd62a890eed4cd6589aa6307e3ff 100644
(file)
--- 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() {}
}