package org.robockets.tshirtcannon;

import org.robockets.buttonmanager.ButtonManager;
import org.robockets.buttonmanager.buttons.ActionButton;
import org.robockets.tshirtcannon.subsystems.cannon.AdjustCannon;
import org.robockets.tshirtcannon.subsystems.cannon.AlignGatling;
import org.robockets.tshirtcannon.subsystems.cannon.FireCannon;
import org.robockets.tshirtcannon.subsystems.cannon.PopCannon;
import org.robockets.tshirtcannon.subsystems.cannon.SpinGatling;

import edu.wpi.first.wpilibj.Joystick;

/**
 * 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() {
		ButtonManager.addJoystick(0);
		
		//ButtonManager.addButton(new ActionButton(0, 0, new FireCannon(), false));
		//ButtonManager.addButton(new ActionButton(0, 1, new AlignGatling(), false));
		ButtonManager.addButton(new ActionButton(0, 6, new PopCannon(0.05), false));
		ButtonManager.addButton(new ActionButton(0, 1, new AdjustCannon(ZAxisRelativeDirection.UP), true));
		ButtonManager.addButton(new ActionButton(0, 4, new AdjustCannon(ZAxisRelativeDirection.DOWN), true));
		ButtonManager.addButton(new ActionButton(0, 2, new SpinGatling(0.5), true));
		ButtonManager.addButton(new ActionButton(0, 3, new SpinGatling(-0.5), true));
	}
}


@@ -500,16 +500,76 @@
 oystick;
+%0Aimport edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
 %0A%0A/**%0A *
@@ -1398,14 +1398,444 @@
 true));%0A
+%09%09%0A%09%09// SmartDashboard stuff.%0A%09%09SmartDashboard.putData(%22Pop Cannon%22, new PopCannon(0.05));%0A%09%09SmartDashboard.putData(%22Adjust Cannon Upwards%22, new AdjustCannon(ZAxisRelativeDirection.UP));%0A%09%09SmartDashboard.putData(%22Adjust Cannon Downwards%22, new AdjustCannon(ZAxisRelativeDirection.DOWN));%0A%09%09SmartDashboard.putData(%22Spin Gatling Forward%22, new SpinGatling(1));%0A%09%09SmartDashboard.putData(%22Spin Gatling Backwards%22, new SpinGatling(-1));%0A
 %09%7D%0A%7D%0A%0A

Add commands to SmartDashboard dash.