1 package org
.usfirst
.frc
.team3501
.robot
;
3 import org
.usfirst
.frc
.team3501
.robot
.commands
.changeSpeed
;
5 import edu
.wpi
.first
.wpilibj
.Joystick
;
6 import edu
.wpi
.first
.wpilibj
.buttons
.Button
;
7 import edu
.wpi
.first
.wpilibj
.buttons
.JoystickButton
;
10 public static Joystick leftJoystick
;
11 public static Joystick rightJoystick
;
12 public static Button decrementSpeed
;
13 public static Button incrementSpeed
;
14 public static Button outputCurrentShooterSpeed
;
15 public static Button runWheel
;
18 leftJoystick
= new Joystick(Constants
.OI
.LEFT_STICK_PORT
);
19 rightJoystick
= new Joystick(Constants
.OI
.RIGHT_STICK_PORT
);
21 decrementSpeed
= new JoystickButton(rightJoystick
,
22 Constants
.OI
.DECREMENT_SHOOTER_PORT
);
24 incrementSpeed
= new JoystickButton(rightJoystick
,
25 Constants
.OI
.INCREMENT_SHOOTER_PORT
);
27 outputCurrentShooterSpeed
= new JoystickButton(rightJoystick
,
28 Constants
.OI
.SHOOTER_PORT
);
30 runWheel
= new JoystickButton(rightJoystick
, Constants
.OI
.TRIGGER_PORT
);
32 incrementSpeed
.whenPressed(new changeSpeed(0.1));
34 decrementSpeed
.whenPressed(new changeSpeed(-0.1));