summaryrefslogtreecommitdiff
path: root/src/org/usfirst/frc/team4272/robotlib/DoubleSolenoid.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/usfirst/frc/team4272/robotlib/DoubleSolenoid.java')
-rw-r--r--src/org/usfirst/frc/team4272/robotlib/DoubleSolenoid.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/usfirst/frc/team4272/robotlib/DoubleSolenoid.java b/src/org/usfirst/frc/team4272/robotlib/DoubleSolenoid.java
index 8698277..33524f1 100644
--- a/src/org/usfirst/frc/team4272/robotlib/DoubleSolenoid.java
+++ b/src/org/usfirst/frc/team4272/robotlib/DoubleSolenoid.java
@@ -3,7 +3,7 @@ package org.usfirst.frc.team4272.robotlib;
public class DoubleSolenoid extends edu.wpi.first.wpilibj.DoubleSolenoid {
private boolean enabled = true;
private Value value;
-
+
public DoubleSolenoid(int forwardChannel, int reverseChannel) {
super(forwardChannel, reverseChannel);
value = get();
@@ -12,7 +12,7 @@ public class DoubleSolenoid extends edu.wpi.first.wpilibj.DoubleSolenoid {
super(moduleNumber, forwardChannel, reverseChannel);
value = get();
}
-
+
public void setEnabled(boolean enabled) {
this.enabled = enabled;
if (enabled) {
@@ -21,15 +21,15 @@ public class DoubleSolenoid extends edu.wpi.first.wpilibj.DoubleSolenoid {
set(Value.kOff);
}
}
-
+
public void setForward(boolean forward) {
set(forward ? Value.kForward : Value.kReverse);
}
-
+
public boolean getForward() {
return value == Value.kForward;
}
-
+
public void set(Value value) {
this.value = value;
if (enabled) {