<commit_before>package org.usfirst.frc.team1306.robot.subsystems;

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

import edu.wpi.first.wpilibj.CANTalon;
import edu.wpi.first.wpilibj.DoubleSolenoid;
import edu.wpi.first.wpilibj.Victor;
import edu.wpi.first.wpilibj.command.Subsystem;

/**
 *
 */
public class Intake extends Subsystem {
    
    private final CANTalon leftIntakeMotor;
    private final CANTalon rightIntakeMotor;
    
    private final Victor roller1;
    private final Victor roller2;
    
    private final DoubleSolenoid leftIntakeSol;
    private final DoubleSolenoid rightIntakeSol;
    
    public Intake() {
    	leftIntakeMotor = new CANTalon(RobotMap.intakeMotor1Port);
    	rightIntakeMotor = new CANTalon(RobotMap.intakeMotor2Port);
    	
    	roller1 = new Victor(RobotMap.intakeRoller1Port);
    	roller2 = new Victor(RobotMap.intakeRoller2Port);
    	
    	leftIntakeSol = new DoubleSolenoid(RobotMap.intakeSol1PortA, RobotMap.intakeSol1PortB);
    	rightIntakeSol = new DoubleSolenoid(RobotMap.intakeSol2PortA, RobotMap.intakeSol2PortB);
    }

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

<commit_msg>Added basic subsystem methods to control the intake<commit_after>package org.usfirst.frc.team1306.robot.subsystems;

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

import edu.wpi.first.wpilibj.CANTalon;
import edu.wpi.first.wpilibj.DoubleSolenoid;
import edu.wpi.first.wpilibj.Talon;
import edu.wpi.first.wpilibj.Victor;
import edu.wpi.first.wpilibj.command.Subsystem;

/**
 *
 */
public class Intake extends Subsystem {
    
    private final CANTalon leftIntakeMotor;
    private final CANTalon rightIntakeMotor;
    
    private final Talon roller1;
    private final Talon roller2;
    
    private final DoubleSolenoid leftIntakeSol;
    private final DoubleSolenoid rightIntakeSol;
    
    public Intake() {
    	leftIntakeMotor = new CANTalon(RobotMap.intakeMotor1Port);
    	rightIntakeMotor = new CANTalon(RobotMap.intakeMotor2Port);
    	
    	roller1 = new Talon(RobotMap.intakeRoller1Port);
    	roller2 = new Talon(RobotMap.intakeRoller2Port);
    	
    	leftIntakeSol = new DoubleSolenoid(RobotMap.intakeSol1PortA, RobotMap.intakeSol1PortB);
    	rightIntakeSol = new DoubleSolenoid(RobotMap.intakeSol2PortA, RobotMap.intakeSol2PortB);
    }

    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }
    
    /**
     * Set the rollers spinning
     */
    
    public void startRollers() {
    	roller1.set(1.0);
    	roller2.set(1.0);
    }
    
    /**
     * Stop the rollers spinning
     */
    
    public void stopRollers() {
    	roller1.set(0.0);
    	roller2.set(0.0);
    }
    
    /**
     * Actuate the solenoids to extend the tusks
     */
    
    public void extendTusks() {
    	leftIntakeSol.set(DoubleSolenoid.Value.kForward);
    	rightIntakeSol.set(DoubleSolenoid.Value.kForward);
    }
    
    /**
     * Actuate the solenoids to retract the tusks
     */
    
    public void retractTusks() {
    	leftIntakeSol.set(DoubleSolenoid.Value.kReverse);
    	rightIntakeSol.set(DoubleSolenoid.Value.kReverse);
    }
}


{'fraction_non_alphanumeric': 0.08873410054512416, 'fraction_numerical': 0.015748031496062992, 'mean_word_length': 3.181012658227848, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5041715', 'n_tokens_mistral': 1230, 'n_tokens_neox': 1167, 'n_words': 203}