package org.usfirst.frc.team166.robot.subsystems;

import edu.wpi.first.wpilibj.Solenoid;
import edu.wpi.first.wpilibj.command.Subsystem;

import org.usfirst.frc.team166.robot.RobotMap;

/**
 *
 */
public class Claw extends Subsystem {

	enum ClawStates {
		open, close
	}

	ClawStates clawState;
	public static Solenoid solenoid = new Solenoid(RobotMap.solenoid.ClawSolenoid);

	private void Open() {
		solenoid.set(true);
		this.clawState = ClawStates.open;
	}

	private void Close() {
		solenoid.set(false);
		this.clawState = ClawStates.close;
	}

	public void Toggle() {
		if (this.clawState == ClawStates.open) {
			Close();
		} else {
			Open();
		}
	}

	public void begin() {
		solenoid.get();
		if (this.clawState == ClawStates.close) {
			Open();
		}
	}

	public void end() {
		solenoid.get();
		if (this.clawState == ClawStates.open) {

		}
	}

	private void start() {
		// TODO Auto-generated method stub

	}

	@Override
	public void initDefaultCommand() {
		// Set the default command for a subsystem here.
		// setDefaultCommand(new MySpecialCommand());
	}
}

@@ -378,21 +378,20 @@
 %0A%0A%09p
-rivate
+ublic
  void 
-O
+o
 pen(
@@ -462,21 +462,20 @@
 %0A%0A%09p
-rivate
+ublic
  void 
-C
+c
 lose
@@ -613,17 +613,17 @@
 n) %7B%0A%09%09%09
-C
+c
 lose();%0A
@@ -632,25 +632,25 @@
 %7D else %7B%0A%09%09%09
-O
+o
 pen();%0A%09%09%7D%0A%09
@@ -740,17 +740,17 @@
 e) %7B%0A%09%09%09
-O
+o
 pen();%0A%09

Fix build issue from merge