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.DoubleSolenoid;
import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
import edu.wpi.first.wpilibj.command.Subsystem;

public class Intake extends Subsystem implements LoggableSubsystem {

	private CANTalon motor;
	
	private double motorValue = 0.5;
	
	public Intake() {
		motor = new CANTalon(RobotMap.INTAKE_MOTOR);
		motor.set(0);
		//motor.setControlMode();
	}
	public void turnOn(){
		set(motorValue);
	}
	
	public void turnOff(){
		set(0);
	}

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

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

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

@@ -517,16 +517,23 @@
 Value = 
+1.0; //
 0.5;%0D%0A%09%0D

Increase intake motor value to 1.0.