package org.usfirst.frc.team6027.robot;

import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import org.usfirst.frc.team6027.robot.commands.RotateDriveTrain;

public class OI {
	private Joystick stick = new Joystick(RobotMap.joystickPort);
	private Joystick controller = new Joystick(RobotMap.controllerPort);
	private DigitalInput winchLimit = new DigitalInput(RobotMap.winchLimitPort);

	public OI(){
		JoystickButton aim = new JoystickButton(stick, 5);
		JoystickButton trigger = new JoystickButton(stick, 7);
		aim.whenPressed(new RotateDriveTrain(Robot.vision.getTurn()*0.1875));
		trigger.whenPressed(new RotateDriveTrain(-30));

	}
	public Joystick getJoystick(){
		return stick;
	}
	public Joystick getController(){
		return controller;
	}
	public DigitalInput getWinchLimit(){
		return winchLimit;
	}
}

@@ -216,32 +216,17 @@
 ommands.
-RotateDriveTrain
+*
 ;%0A%0Apubli
@@ -485,41 +485,156 @@
 ton 
-aim = new JoystickButton(stick, 5
+x = new JoystickButton(controller, 0);%0A%09%09JoystickButton y = new JoystickButton(controller, 1);%0A%09%09JoystickButton a = new JoystickButton(controller, 2
 );%0A%09
@@ -653,55 +653,173 @@
 ton 
-trigger = new JoystickButton(stick, 7
+b = new JoystickButton(controller, 3);%0A%09%09JoystickButton rb = new JoystickButton(controller, 4);%0A%09%09JoystickButton lb = new JoystickButton(controller, 5
 );%0A
+%0A
 %09%09a
-im.w
+.toggleW
 henP
@@ -833,104 +833,142 @@
 new 
-RotateDriveTrain(Robot.vision.getTurn()*0.1875));%0A%09%09trigger.whenPressed(new RotateDriveTrain(-30
+PickupOn());%0A%09%09b.whileHeld(new PickupReverse());%0A%09%09y.whileHeld(new OpenGDS());%0A%09%09x.whenPressed(new Climb());%0A%09%09rb.whileHeld(new Shoot(
 ));%0A

Update OI to new map