<commit_before>package org.usfirst.frc.team340.robot;

import org.usfirst.frc.team340.robot.commands.Climb;
import org.usfirst.frc.team340.robot.commands.DriveWithJoysticks;
import org.usfirst.frc.team340.robot.commands.ReleaseLatch;
import org.usfirst.frc.team340.robot.commands.Shooter;

import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.buttons.JoystickButton;

/**
 * This class is the glue that binds the controls on the physical operator
 * interface to the commands and command groups that allow control of the robot.
 */
public class OI {
	
    public OI() {
    	X1.whenPressed(new ReleaseLatch());
    	Y1.whenPressed(new Climb());
    	Y1.whenReleased(new DriveWithJoysticks());
    	
    	A1.whileActive(new Shooter());
    }
    //// CREATING BUTTONS
    // One type of button is a joystick button which is any button on a joystick.<commit_msg>added button to control the discharge of the ball<commit_after>package org.usfirst.frc.team340.robot;

import org.usfirst.frc.team340.robot.commands.Climb;
import org.usfirst.frc.team340.robot.commands.DischargeBall;
import org.usfirst.frc.team340.robot.commands.DriveWithJoysticks;
import org.usfirst.frc.team340.robot.commands.ReleaseLatch;
import org.usfirst.frc.team340.robot.commands.Shooter;

import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.buttons.JoystickButton;

/**
 * This class is the glue that binds the controls on the physical operator
 * interface to the commands and command groups that allow control of the robot.
 */
public class OI {
	
    public OI() {
    	X1.whenPressed(new ReleaseLatch());
    	Y1.whenPressed(new Climb());
    	Y1.whenReleased(new DriveWithJoysticks());
    	
    	A1.whileActive(new Shooter());
    	B1.whenPressed(new DischargeBall());
    }
    //// CREATING BUTTONS
    // One type of button is a joystick button which is any button on a joystick.
{'fraction_non_alphanumeric': 0.10459828196058615, 'fraction_numerical': 0.021222839818089943, 'mean_word_length': 3.9874055415617127, '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': '824108', 'n_tokens_mistral': 722, 'n_tokens_neox': 666, 'n_words': 155}