// RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code or it will be lost on an
// update. Deleting the comments indicating the section will prevent
// it from being updated in the future.


package org.usfirst.frc4001.frc2016Explore.subsystems;

import org.usfirst.frc4001.frc2016Explore.RobotMap;
import org.usfirst.frc4001.frc2016Explore.commands.*;
import edu.wpi.first.wpilibj.CANTalon;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.Solenoid;

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


/**
 *
 */
public class Intake extends Subsystem {

    private final DigitalInput limitSwitch = RobotMap.intakelimitSwitch;
    private final CANTalon controller = RobotMap.intakecontroller;
    private final Solenoid roller_open = RobotMap.intakerollopen;
    private final Solenoid roller_close = RobotMap.intakerollclose;


    public void initDefaultCommand() {

        // Set the default command for a subsystem here.
        // setDefaultCommand(new MySpecialCommand());
    }
    
    public void receive(){
    	// roll in the ball
    	controller.set(0.5);
    }
    
    public void stop(){
    	// halt movement of intake
    	controller.set(0);
    }
    
    public void eject(){
    	// eject the ball at half speed
    	controller.set(-0.5);
    }
    
    public void fire(){
    	// eject the ball at full speed
    	controller.set(-1);
    }
    
    public boolean ballset(){
    	// ball is set in position
    	return !(limitSwitch.get());
    }
    
    public void open_roller(){
    	// open the roller
    	roller_open.set(true);
    	roller_close.set(false);
    	
    }
    
    public void close_roller(){
    	// close the roller
    	roller_open.set(false);
    	roller_close.set(true);
 
    }
    	
    
}


@@ -727,47 +727,8 @@
 put;
-%0Aimport edu.wpi.first.wpilibj.Solenoid;
 %0A%0D%0A%09
@@ -974,142 +974,8 @@
 er;%0A
-    private final Solenoid roller_open = RobotMap.intakerollopen;%0A    private final Solenoid roller_close = RobotMap.intakerollclose;%0A
 %0A%0A  
@@ -1603,24 +1603,24 @@
 tch.get());%0A
+
     %7D%0A    %0A 
@@ -1622,271 +1622,7 @@
    %0A
-    public void open_roller()%7B%0A    %09// open the roller%0A    %09roller_open.set(true);%0A    %09roller_close.set(false);%0A    %09%0A    %7D%0A    %0A    public void close_roller()%7B%0A    %09// close the roller%0A    %09roller_open.set(false);%0A    %09roller_close.set(true);%0A %0A    %7D%0A    %09%0A    %0A
 %7D%0A%0A

Revert "Intake Solenoid methods"