9a365a7c01e71a08c1ee19b9426c6b547ab1632a
[3501/stronghold-2016] / 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 public static Joystick leftJoystick;
9 public static Joystick rightJoystick;
10 public static Button decrementSpeed;
11 public static Button incrementSpeed;
12 public static Button outputCurrentShooterSpeed;
13 public static Button trigger;
14
15 public OI() {
16 leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT);
17 rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT);
18
19 decrementSpeed = new JoystickButton(rightJoystick,
20 Constants.OI.DECREMENT_SHOOTER_PORT);
21
22 incrementSpeed = new JoystickButton(rightJoystick,
23 Constants.OI.INCREMENT_SHOOTER_PORT);
24
25 outputCurrentShooterSpeed = new JoystickButton(rightJoystick,
26 Constants.OI.SHOOTER_PORT);
27
28 trigger = new JoystickButton(rightJoystick, Constants.OI.TRIGGER_PORT);
29
30 }
31
32 }