Change to 2 space instead of 4 space per Danny's request
[3501/2015-FRC-Spark] / src / org / usfirst / frc3501 / RiceCatRobot / OI.java
index 8477f98f21f6f7b8c9881a82422190d2ae60760e..e463ea3e227410c4652ab503c453c3013b502446 100644 (file)
@@ -7,24 +7,25 @@ import edu.wpi.first.wpilibj.Joystick;
 import edu.wpi.first.wpilibj.buttons.JoystickButton;
 
 public class OI {
-    public static Joystick leftJoystick;
-    public static Joystick rightJoystick;
-    public static JoystickButton trigger;
-    public static JoystickButton toggleCompressor;
-    public static JoystickButton toggleClaw;
-
-    public OI() {
-        System.out.println("OI is open");
-        leftJoystick = new Joystick(RobotMap.LEFT_STICK_PORT);
-        rightJoystick = new Joystick(RobotMap.RIGHT_STICK_PORT);
-
-        trigger = new JoystickButton(rightJoystick, RobotMap.TRIGGER_PORT);
-
-        toggleClaw = new JoystickButton(rightJoystick, RobotMap.TOGGLE_PORT);
-        toggleClaw.whenPressed(new ToggleClaw());
-
-        toggleCompressor = new JoystickButton(rightJoystick,
-                RobotMap.TOGGLE_COMPRESSOR_PORT);
-        toggleCompressor.whenPressed(new ToggleCompressor());
-    }
-}
\ No newline at end of file
+  public static Joystick leftJoystick;
+  public static Joystick rightJoystick;
+  public static JoystickButton trigger;
+  public static JoystickButton toggleCompressor;
+  public static JoystickButton toggleClaw;
+
+  public OI() {
+    System.out.println("OI is open");
+    leftJoystick = new Joystick(RobotMap.LEFT_STICK_PORT);
+    rightJoystick = new Joystick(RobotMap.RIGHT_STICK_PORT);
+
+    trigger = new JoystickButton(rightJoystick, RobotMap.TRIGGER_PORT);
+
+    toggleClaw = new JoystickButton(rightJoystick, RobotMap.TOGGLE_PORT);
+    toggleClaw.whenPressed(new ToggleClaw());
+
+    toggleCompressor = new JoystickButton(rightJoystick,
+        RobotMap.TOGGLE_COMPRESSOR_PORT);
+    toggleCompressor.whenPressed(new ToggleCompressor());
+
+  }
+}