1 package org
.usfirst
.frc
.team3501
.robot
;
5 import org
.usfirst
.frc
.team3501
.robot
.commands
.driving
.ToggleGear
;
7 import org
.usfirst
.frc
.team3501
.robot
.commands
.accessories
.ToggleCameraFeed
;
8 >>>>>>> added command
for toggling camera feeds
10 import org
.usfirst
.frc
.team3501
.robot
.commands
.accessories
.ToggleCameraFeed
;
11 >>>>>>> cb0f662264528bcb0d783fcb00db22eb8d4f4283
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 toggleIndexWheel
;
24 public static Button toggleFlyWheel
;
26 public static Button toggleCameraFeeds
;
28 public static Button toggleCameraFeeds
;
30 public static Button toggleGear
;
33 leftJoystick
= new Joystick(Constants
.OI
.LEFT_STICK_PORT
);
34 rightJoystick
= new Joystick(Constants
.OI
.RIGHT_STICK_PORT
);
35 toggleWinch
= new JoystickButton(leftJoystick
,
36 Constants
.OI
.TOGGLE_WINCH_PORT
);
37 toggleIndexWheel
= new JoystickButton(leftJoystick
,
38 Constants
.OI
.TOGGLE_INDEXWHEEL_PORT
);
39 toggleFlyWheel
= new JoystickButton(leftJoystick
,
40 Constants
.OI
.TOGGLE_FLYWHEEL_PORT
);
43 toggleGear
= new JoystickButton(leftJoystick
,
44 Constants
.OI
.TOGGLE_GEAR_PORT
);
45 toggleGear
.whenPressed(new ToggleGear());
48 toggleCameraFeeds
= new JoystickButton(leftJoystick
, Constants
.OI
.TOGGLE_CAMERA_FEEDS
);
50 toggleCameraFeeds
.whenReleased(new ToggleCameraFeed());
54 toggleCameraFeeds
= new JoystickButton(leftJoystick
, Constants
.OI
.TOGGLE_CAMERA_FEEDS
);
56 toggleCameraFeeds
.whenReleased(new ToggleCameraFeed());
60 public static OI
getOI() {