
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 = new Joystick(1);
    Button button1 = new  JoystickButton(xbox,1);

    public OI() {

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


@@ -485,16 +485,70 @@
 oystick 
+xbox;%0A    Button button1;%0A%0A    public OI() %7B%0A%0A        
 xbox = n
@@ -563,30 +563,27 @@
 ick(1);%0A    
-Button
+   
  button1 = n
@@ -611,35 +611,16 @@
 ox,1);%0A%0A
-    public OI() %7B%0A%0A
         

Change where values are initiated