Commit | Line | Data |
---|---|---|
38a404b3 KZ |
1 | package org.usfirst.frc.team3501.robot; |
2 | ||
3 | import edu.wpi.first.wpilibj.Joystick; | |
cb3389eb E |
4 | import edu.wpi.first.wpilibj.buttons.Button; |
5 | import edu.wpi.first.wpilibj.buttons.JoystickButton; | |
38a404b3 KZ |
6 | |
7 | public class OI { | |
8 | public static Joystick leftJoystick; | |
9 | public static Joystick rightJoystick; | |
647e73b5 KZ |
10 | public static Button decrementShooterSpeed; |
11 | public static Button incrementShooterSpeed; | |
8a394843 | 12 | public static Button outputCurrentShooterSpeed; |
be737818 | 13 | public static Button trigger; |
38a404b3 KZ |
14 | |
15 | public OI() { | |
16 | leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT); | |
17 | rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT); | |
18 | ||
647e73b5 KZ |
19 | decrementShooterSpeed = new JoystickButton(rightJoystick, |
20 | Constants.OI.DEC_SHOOTER_SPD_PORT); | |
cb3389eb | 21 | |
647e73b5 KZ |
22 | incrementShooterSpeed = new JoystickButton(rightJoystick, |
23 | Constants.OI.INC_SHOOTER_SPD_PORT); | |
7a949394 | 24 | |
8a394843 | 25 | outputCurrentShooterSpeed = new JoystickButton(rightJoystick, |
55504016 | 26 | Constants.OI.SHOOT_PORT); |
8a394843 | 27 | |
be737818 E |
28 | trigger = new JoystickButton(rightJoystick, Constants.OI.TRIGGER_PORT); |
29 | ||
38a404b3 | 30 | } |
cb3389eb | 31 | |
38a404b3 | 32 | } |