Creates methods for setting speed, adding to speed, and subtracting from speed along...
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / OI.java
CommitLineData
38a404b3
KZ
1package org.usfirst.frc.team3501.robot;
2
3import edu.wpi.first.wpilibj.Joystick;
cb3389eb
E
4import edu.wpi.first.wpilibj.buttons.Button;
5import edu.wpi.first.wpilibj.buttons.JoystickButton;
38a404b3
KZ
6
7public class OI {
8 public static Joystick leftJoystick;
9 public static Joystick rightJoystick;
cb3389eb
E
10 public static Button leftSilverButton;
11 public static Button rightSilverButton;
38a404b3
KZ
12
13 public OI() {
14 leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT);
15 rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT);
16
cb3389eb
E
17 leftSilverButton = new JoystickButton(rightJoystick,
18 Constants.OI.RIGHT_STICK_LEFT_SILVER_BUTTON);
19 ;
20
21 rightSilverButton = new JoystickButton(rightJoystick,
22 Constants.OI.RIGHT_STICK_RIGHT_SILVER_BUTTON);
23 ;
24
38a404b3 25 }
cb3389eb 26
38a404b3 27}