Implement stopFlyWheel and stopIndexWheel
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / OI.java
... / ...
CommitLineData
1package org.usfirst.frc.team3501.robot;
2
3import edu.wpi.first.wpilibj.Joystick;
4import edu.wpi.first.wpilibj.buttons.Button;
5import edu.wpi.first.wpilibj.buttons.JoystickButton;
6
7public 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 OI() {
14 leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT);
15 rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT);
16 toggleWinch = new JoystickButton(leftJoystick,
17 Constants.OI.TOGGLE_WINCH_PORT);
18
19 }
20
21 public static OI getOI() {
22 if (oi == null)
23 oi = new OI();
24 return oi;
25 }
26}