Delete extra space in OI class
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / OI.java
1 package org.usfirst.frc.team3501.robot;
2
3 import edu.wpi.first.wpilibj.Joystick;
4 import edu.wpi.first.wpilibj.buttons.Button;
5 import edu.wpi.first.wpilibj.buttons.JoystickButton;
6
7 public class OI {
8 private static OI oi;
9 public static Joystick leftJoystick;
10 public static Joystick rightJoystick;
11 public static Button toggleWinch;
12
13 public static Button toggleIndexWheel;
14 public static Button toggleFlyWheel;
15
16 public OI() {
17 leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT);
18 rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT);
19 toggleWinch = new JoystickButton(leftJoystick,
20 Constants.OI.TOGGLE_WINCH_PORT);
21
22 toggleIndexWheel = new JoystickButton(leftJoystick,
23 Constants.OI.TOGGLE_INDEXWHEEL_PORT);
24 toggleFlyWheel = new JoystickButton(leftJoystick,
25 Constants.OI.TOGGLE_FLYWHEEL_PORT);
26 }
27
28 public static OI getOI() {
29 if (oi == null)
30 oi = new OI();
31 return oi;
32 }
33 }