1 package org
.usfirst
.frc
.team3501
.robot
;
3 import org
.usfirst
.frc
.team3501
.robot
.commands
.climber
.ToggleWinch
;
4 import org
.usfirst
.frc
.team3501
.robot
.commands
.driving
.ToggleGear
;
5 import org
.usfirst
.frc
.team3501
.robot
.commands
.intake
.ReverseIntakeContinuous
;
6 import org
.usfirst
.frc
.team3501
.robot
.commands
.intake
.RunIntakeContinuous
;
7 import org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
.DecreaseShootingSpeed
;
8 import org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
.IncreaseShootingSpeed
;
9 import org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
.ReverseIndexWheelContinuous
;
10 import org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
.RunFlyWheelContinuous
;
11 import org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
.RunIndexWheelContinuous
;
13 import edu
.wpi
.first
.wpilibj
.Joystick
;
14 import edu
.wpi
.first
.wpilibj
.buttons
.Button
;
15 import edu
.wpi
.first
.wpilibj
.buttons
.JoystickButton
;
19 public static Joystick leftJoystick
;
20 public static Joystick rightJoystick
;
21 public static Button toggleWinch
;
23 public static Button runIndexWheel
;
24 public static Button reverseIndexWheel
;
25 public static Button toggleFlyWheel
;
27 public static Button toggleGear
;
29 public static Button runIntake
;
30 public static Button reverseIntake
;
32 public static Button increaseShooterSpeed
;
33 public static Button decreaseShooterSpeed
;
36 leftJoystick
= new Joystick(Constants
.OI
.LEFT_STICK_PORT
);
37 rightJoystick
= new Joystick(Constants
.OI
.RIGHT_STICK_PORT
);
39 runIndexWheel
= new JoystickButton(rightJoystick
,
40 Constants
.OI
.RUN_INDEXWHEEL_PORT
);
41 runIndexWheel
.whileHeld(new RunIndexWheelContinuous());
43 reverseIndexWheel
= new JoystickButton(leftJoystick
,
44 Constants
.OI
.REVERSE_INDEXWHEEL_PORT
);
45 reverseIndexWheel
.whileHeld(new ReverseIndexWheelContinuous());
47 toggleFlyWheel
= new JoystickButton(rightJoystick
,
48 Constants
.OI
.TOGGLE_FLYWHEEL_PORT
);
49 toggleFlyWheel
.toggleWhenPressed(new RunFlyWheelContinuous());
51 toggleGear
= new JoystickButton(leftJoystick
,
52 Constants
.OI
.TOGGLE_GEAR_PORT
);
54 toggleGear
.whenPressed(new ToggleGear());
56 runIntake
= new JoystickButton(leftJoystick
,
57 Constants
.OI
.RUN_INTAKE_PORT
);
58 runIntake
.whileHeld(new RunIntakeContinuous());
60 reverseIntake
= new JoystickButton(leftJoystick
,
61 Constants
.OI
.REVERSE_INTAKE_PORT
);
62 reverseIntake
.whileHeld(new ReverseIntakeContinuous());
64 toggleWinch
= new JoystickButton(leftJoystick
,
65 Constants
.OI
.TOGGLE_WINCH_PORT
);
66 toggleWinch
.whenPressed(new ToggleWinch());
68 increaseShooterSpeed
= new JoystickButton(leftJoystick
,
69 Constants
.OI
.INCREASE_SHOOTER_SPEED_PORT
);
70 increaseShooterSpeed
.whenPressed(new IncreaseShootingSpeed());
72 decreaseShooterSpeed
= new JoystickButton(leftJoystick
,
73 Constants
.OI
.DECREASE_SHOOTER_SPEED_PORT
);
74 decreaseShooterSpeed
.whenPressed(new DecreaseShootingSpeed());
77 public static OI
getOI() {