// 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.frc5053.FRC2016Stronghold;

import org.usfirst.frc5053.FRC2016Stronghold.commands.*;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.*;
import org.usfirst.frc5053.FRC2016Stronghold.subsystems.*;


/**
 * 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 {
	//test change
	//test change2w
    //// CREATING BUTTONS
    // One type of button is a joystick button which is any button on a joystick.
    // You create one by telling it which joystick it's on and which button
    // number it is.
    // Joystick stick = new Joystick(port);
    // Button button = new JoystickButton(stick, buttonNumber);

    // There are a few additional built in buttons you can use. Additionally,
    // by subclassing Button you can create custom triggers and bind those to
    // commands the same as any other Button.

    //// TRIGGERING COMMANDS WITH BUTTONS
    // Once you have a button, it's trivial to bind it to a button in one of
    // three ways:

    // Start the command when the button is pressed and let it run the command
    // until it is finished as determined by it's isFinished method.
    // button.whenPressed(new ExampleCommand());

    // Run the command while the button is being held down and interrupt it once
    // the button is released.
    // button.whileHeld(new ExampleCommand());

    // Start the command when the button is released  and let it run the command
    // until it is finished as determined by it's isFinished method.
    // button.whenReleased(new ExampleCommand());


    // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
    public JoystickButton driveStraight;
    public JoystickButton shooter;
    public JoystickButton shooterOff;
    public Joystick driver;
    public JoystickButton intakeSpin;
    public JoystickButton intakeSpinOff;
    public JoystickButton intakeReverse;
    public JoystickButton intakeReverseOff;
    public JoystickButton scalerReach;
    public JoystickButton scalerPullUp;
    public JoystickButton kickShooter;
    public Joystick operator;

    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS

    public OI() {
        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS

        operator = new Joystick(1);
        
        kickShooter = new JoystickButton(operator, 5);
        kickShooter.whileHeld(new ShooterKicker());
        scalerPullUp = new JoystickButton(operator, 4);
        scalerPullUp.whileHeld(new ScalerChinUp());
        scalerReach = new JoystickButton(operator, 3);
        scalerReach.whileHeld(new ScalerReachUp());
        intakeReverseOff = new JoystickButton(operator, 2);
        intakeReverseOff.whenReleased(new SpinIntake(0));
        intakeReverse = new JoystickButton(operator, 2);
        intakeReverse.whileHeld(new SpinIntake(-1));
        intakeSpinOff = new JoystickButton(operator, 1);
        intakeSpinOff.whenReleased(new SpinIntake(0));
        intakeSpin = new JoystickButton(operator, 1);
        intakeSpin.whileHeld(new SpinIntake(1));
        driver = new Joystick(0);
        
        shooterOff = new JoystickButton(driver, 2);
        shooterOff.whenReleased(new ShooterSpin(0));
        shooter = new JoystickButton(driver, 2);
        shooter.whileHeld(new ShooterSpin(0.1));
        driveStraight = new JoystickButton(driver, 1);
        driveStraight.whileHeld(new ArcadeDriveStraight());


        // SmartDashboard Buttons
        SmartDashboard.putData("ShooterSpin: Default", new ShooterSpin(5));
        SmartDashboard.putData("ShooterSpin: Off", new ShooterSpin(0));
        SmartDashboard.putData("Autonomous Command", new AutonomousCommand());
        SmartDashboard.putData("ArcadeDrive", new ArcadeDrive());
        SmartDashboard.putData("ArcadeDriveStraight", new ArcadeDriveStraight());
        SmartDashboard.putData("AutonForward: default", new AutonForward(50));
        SmartDashboard.putData("Turn90", new Turn90());
        SmartDashboard.putData("AllwaysTrackLocation", new AllwaysTrackLocation());
        SmartDashboard.putData("SpinIntake: Forward", new SpinIntake(1));
        SmartDashboard.putData("SpinIntake: Reverse", new SpinIntake(-1));
        SmartDashboard.putData("SpinIntake: Stop", new SpinIntake(0));
        SmartDashboard.putData("ArmControl", new ArmControl());
        SmartDashboard.putData("SquareDrive", new SquareDrive());
        SmartDashboard.putData("ScalerReachUp", new ScalerReachUp());
        SmartDashboard.putData("ScalerChinUp", new ScalerChinUp());
        SmartDashboard.putData("ShooterKicker", new ShooterKicker());
        SmartDashboard.putData("KickBall", new KickBall());
        SmartDashboard.putData("LowBarAuton", new LowBarAuton());

    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
    }

    // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=FUNCTIONS
    public Joystick getDriver() {
        return driver;
    }

    public Joystick getOperator() {
        return operator;
    }


    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=FUNCTIONS
}


@@ -997,17 +997,17 @@
  change2
-w
+b
 %0A    ///

Test commit to show Git in Eclipse