935c4c6e32eb4da8fb3dbc5590e4f51bfef6aea5
1 package org
.usfirst
.frc
.team3501
.robot
;
3 import edu
.wpi
.first
.wpilibj
.Joystick
;
4 import edu
.wpi
.first
.wpilibj
.buttons
.Button
;
5 import edu
.wpi
.first
.wpilibj
.buttons
.JoystickButton
;
9 public static Joystick leftJoystick
;
10 public static Joystick rightJoystick
;
11 public static Button toggleWinch
;
13 public static Button toggleIndexWheel
;
14 public static Button toggleFlyWheel
;
17 leftJoystick
= new Joystick(Constants
.OI
.LEFT_STICK_PORT
);
18 rightJoystick
= new Joystick(Constants
.OI
.RIGHT_STICK_PORT
);
19 toggleWinch
= new JoystickButton(leftJoystick
,
20 Constants
.OI
.TOGGLE_WINCH_PORT
);
21 toggleIndexWheel
= new JoystickButton(leftJoystick
,
22 Constants
.OI
.TOGGLE_INDEXWHEEL_PORT
);
23 toggleFlyWheel
= new JoystickButton(leftJoystick
,
24 Constants
.OI
.TOGGLE_FLYWHEEL_PORT
);
27 public static OI
getOI() {