package org.usfirst.frc.team2503.r2016.subsystem;

import org.usfirst.frc.team2503.r2016.component.pneumatics.PortcullisLift;
import org.usfirst.frc.team2503.r2016.subsystem.base.ModalSubsystem;

import edu.wpi.first.wpilibj.DoubleSolenoid.Value;

public class PortcullisLiftSubsystem implements ModalSubsystem {
	
	public enum PortcullisLiftSubsystemMode implements ModalSubsystem.SubsystemMode {
		DISABLED,
		STOPPED,
		
		RAISING,
		LOWERING
	}

	
	
	private PortcullisLift _lift;
	private SubsystemMode _mode;
	
	
	@Override
	public void tick() {
		PortcullisLiftSubsystemMode mode = (PortcullisLiftSubsystemMode) this.getMode();
		
		switch(mode) {
		case RAISING:
			this._lift.set(Value.kForward);
			break;
			
		case LOWERING:
			this._lift.set(Value.kReverse);
			break;

		case DISABLED:
		case STOPPED:
		default:
			this._lift.set(Value.kOff);
			break;
		}
	}
	


	public void setMode(SubsystemMode mode) {
		this._mode = mode;
	}

	public SubsystemMode getMode() {
		return this._mode;
	}

	public PortcullisLiftSubsystem(PortcullisLift lift) {
		this._lift = lift;
	}

}

@@ -306,18 +306,17 @@
 ystem %7B%0A
-%09
 %0A
+
 %09public 
@@ -413,19 +413,17 @@
 TOPPED,%0A
-%09%09
 %0A
+
 %09%09RAISIN
@@ -440,19 +440,17 @@
 ING%0A%09%7D%0A%0A
-%09%0A%09
+%0A
 %0A%09privat
@@ -503,19 +503,18 @@
  _mode;%0A
-%09%0A%09
+%0A%0A
 %0A%09@Overr
@@ -622,19 +622,17 @@
 Mode();%0A
-%09%09
 %0A
+
 %09%09switch
@@ -705,12 +705,9 @@
 ak;%0A
-%09%09%09
 %0A
+
 %09%09ca
@@ -857,17 +857,16 @@
 %0A%09%09%7D%0A%09%7D%0A
-%09
 %0A%0A%0A%09publ

Delete trailing whitespace