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

import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import org.usfirst.frc.team3335.robot.RobotMap;

import com.ctre.CANTalon;

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

public class BallShooter extends Subsystem implements LoggableSubsystem {

	private CANTalon motor;
	
	public BallShooter() {
		motor = new CANTalon(RobotMap.BALL_SHOOTER_MOTOR);
		//motor.setControlMode();
	}

	public void set(double value) {
		motor.set(value);
	}

	@Override
	protected void initDefaultCommand() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void log() {
		SmartDashboard.putNumber("Ball Shooter Value",motor.get());
	}
}

@@ -238,16 +238,114 @@
 oller;%0D%0A
+import edu.wpi.first.wpilibj.DoubleSolenoid;%0D%0Aimport edu.wpi.first.wpilibj.DoubleSolenoid.Value;%0D%0A
 import e
@@ -385,16 +385,16 @@
 ystem;%0D%0A
-
 %0D%0Apublic
@@ -493,16 +493,54 @@
 or;%0D%0A%09%0D%0A
+%09private DoubleSolenoid solenoid;%0D%0A%09%0D%0A
 %09public 
@@ -610,16 +610,16 @@
 OTOR);%0D%0A
-
 %09%09//moto
@@ -638,24 +638,232 @@
 Mode();%0D%0A%09%7D%0D
+%0A%09public void switchPos()%7B%0D%0A%09%09switch(solenoid.get())%7B%0D%0A%09%09%09case kOff: case kReverse: %0D%0A%09%09%09%09solenoid.set(Value.kForward);%0D%0A%09%09%09%09break;%0D%0A%09%09%09case kForward: %0D%0A%09%09%09%09solenoid.set(Value.kReverse);%0D%0A%09%09%09%09break;%0D%0A%09%09%7D%0D%0A%09%7D%0D
 %0A%0D%0A%09public v

add double solinoid and method for switching its position