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,
		
		LIFTING,
		LOWERING
	}

	
	
	private PortcullisLift _lift;
	private SubsystemMode _mode;
	
	
	@Override
	public void tick() {
		PortcullisLiftSubsystemMode mode = (PortcullisLiftSubsystemMode) this.getMode();
		
		switch(mode) {
		case LIFTING:
			this._lift.set(Value.kForward);
			break;
			
		case LOWERING:
			this._lift.set(Value.kReverse);
		
		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;
	}

}

@@ -419,20 +419,20 @@
 D,%0A%09%09%0A%09%09
-LIFT
+RAIS
 ING,%0A%09%09L
@@ -659,12 +659,12 @@
 ase 
-LIFT
+RAIS
 ING:
@@ -767,16 +767,24 @@
 rse);%0A%09%09
+%09break;%0A
 %0A%09%09case 

Rename LIFTING mode, add break