
package edu.wpi.first.wpilibj.technobots;

import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.buttons.DigitalIOButton;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import edu.wpi.first.wpilibj.technobots.commands.SweeperOn;

/**
 * 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 {

    Joystick xbox;
    Button button5;

    public OI() {

        xbox = new Joystick(1);
        button5 = new  JoystickButton(xbox,5);

        button5.whenPressed(new SweeperOn());
    }
}


@@ -287,16 +287,76 @@
 eeperOn;
+%0Aimport edu.wpi.first.wpilibj.technobots.subsystems.Shooter;
 %0A%0A/**%0A *
@@ -725,9 +725,124 @@
     
-%7D%0A%7D%0A%0A
+    if(xbox.getRawAxis(3) %3E 0) %7B%0A            Shooter shooter = new Shooter();%0A        %0A        %0A    %7D%0A    %7D  %0A    %0A    %7D

Add Shooter Button