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

import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.SpeedController;

public class Intake extends SpeedControllerComponent {
	
	public enum IntakeMode {
		UNKNOWN,
		STOPPED,
		INBOUND,
		OUTBOUND,
		FIRE
	}

	public DigitalInput limitSwitch;

	private IntakeMode mode = IntakeMode.UNKNOWN;
	
	public void setMode(IntakeMode mode) { this.mode = mode; }
	public IntakeMode getMode() { return this.mode; }
	
	public void tick() {
		switch(this.mode) {
		case STOPPED:
			this.controller.set(0.0);
			break;
			
		case INBOUND:
			if(this.limitSwitch.get()) {
				this.controller.set(0.0);
			} else {
				this.controller.set(1.0);
			}
			
			break;
			
		case OUTBOUND:
			this.controller.set(-1.0);
			break;
			
		case FIRE:
			this.controller.set(1.0);
			break;
		
		case UNKNOWN:
		default:
			break;
		}
	}
	
	public Intake(SpeedController controller, DigitalInput limitSwitch) {
		super(controller);
		
		this.limitSwitch = limitSwitch;
	}
	
}

@@ -189,18 +189,17 @@
 onent %7B%0A
-%09
 %0A
+
 %09public 
@@ -354,18 +354,17 @@
 NKNOWN;%0A
-%09
 %0A
+
 %09public 
@@ -466,18 +466,17 @@
 mode; %7D%0A
-%09
 %0A
+
 %09public 
@@ -562,28 +562,25 @@
 ;%0A%09%09%09break;%0A
-%09%09%09
 %0A
+
 %09%09case INBOU
@@ -692,20 +692,17 @@
 );%0A%09%09%09%7D%0A
-%09%09%09
 %0A
+
 %09%09%09break
@@ -699,28 +699,25 @@
 %0A%0A%09%09%09break;%0A
-%09%09%09
 %0A
+
 %09%09case OUTBO
@@ -765,12 +765,9 @@
 ak;%0A
-%09%09%09
 %0A
+
 %09%09ca
@@ -814,19 +814,17 @@
 %09break;%0A
-%09%09
 %0A
+
 %09%09case U
@@ -859,18 +859,17 @@
 %0A%09%09%7D%0A%09%7D%0A
-%09
 %0A
+
 %09public 
@@ -956,11 +956,9 @@
 r);%0A
-%09%09
 %0A
+
 %09%09th
@@ -990,12 +990,11 @@
 tch;%0A%09%7D%0A
-%09
 %0A%7D%0A

Remove superfluous whitespace