diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-01-16 12:56:01 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-01-16 12:56:01 -0500 |
commit | 0e7c82c6173c0d230c1a921150d691bd8ebfde7d (patch) | |
tree | 8eb9f1d3465d3a81e12393cae4e0bbcfa690beef /src/org/usfirst/frc/team4272/robotlib/DoubleSolenoid.java | |
parent | 75c2407dd85a69b8f80e9b376da1bfb9ed0bb173 (diff) |
trailing whitespace cleanup
Diffstat (limited to 'src/org/usfirst/frc/team4272/robotlib/DoubleSolenoid.java')
-rw-r--r-- | src/org/usfirst/frc/team4272/robotlib/DoubleSolenoid.java | 10 |
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) { |