Add thumb button to send to RioLog/Drive console the current speed of the shooter...
[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 leftSilverButton;
11 public static Button rightSilverButton;
12 public static Button thumbButton;
13
14 public OI() {
15 leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT);
16 rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT);
17
18 leftSilverButton = new JoystickButton(rightJoystick,
19 Constants.OI.RIGHT_STICK_LEFT_SILVER_BUTTON);
20 ;
21
22 rightSilverButton = new JoystickButton(rightJoystick,
23 Constants.OI.RIGHT_STICK_RIGHT_SILVER_BUTTON);
24 ;
25 thumbButton = new JoystickButton(rightJoystick,
26 Constants.OI.RIGHT_STICK_THUMB_BUTTON);
27
28 thumbButton = new JoystickButton(rightJoystick,
29 Constants.OI.RIGHT_STICK_THUMB_BUTTON);
30
31 }
32
33 }