07634e7e03e5643082ea3947bd5052fa2e9c67b2
1 package org
.usfirst
.frc
.team3501
.robot
;
4 import org
.usfirst
.frc
.team3501
.robot
.commands
.driving
.ToggleGear
;
6 import org
.usfirst
.frc
.team3501
.robot
.commands
.accessories
.ToggleCameraFeed
;
7 >>>>>>> added command
for toggling camera feeds
9 import edu
.wpi
.first
.wpilibj
.Joystick
;
10 import edu
.wpi
.first
.wpilibj
.buttons
.Button
;
11 import edu
.wpi
.first
.wpilibj
.buttons
.JoystickButton
;
15 public static Joystick leftJoystick
;
16 public static Joystick rightJoystick
;
17 public static Button toggleWinch
;
19 public static Button toggleIndexWheel
;
20 public static Button toggleFlyWheel
;
22 public static Button toggleCameraFeeds
;
24 public static Button toggleGear
;
27 leftJoystick
= new Joystick(Constants
.OI
.LEFT_STICK_PORT
);
28 rightJoystick
= new Joystick(Constants
.OI
.RIGHT_STICK_PORT
);
29 toggleWinch
= new JoystickButton(leftJoystick
,
30 Constants
.OI
.TOGGLE_WINCH_PORT
);
31 toggleIndexWheel
= new JoystickButton(leftJoystick
,
32 Constants
.OI
.TOGGLE_INDEXWHEEL_PORT
);
33 toggleFlyWheel
= new JoystickButton(leftJoystick
,
34 Constants
.OI
.TOGGLE_FLYWHEEL_PORT
);
36 toggleGear
= new JoystickButton(leftJoystick
,
37 Constants
.OI
.TOGGLE_GEAR_PORT
);
38 toggleGear
.whenPressed(new ToggleGear());
41 toggleCameraFeeds
= new JoystickButton(leftJoystick
, Constants
.OI
.TOGGLE_CAMERA_FEEDS
);
43 toggleCameraFeeds
.whenReleased(new ToggleCameraFeed());
44 >>>>>>> added command
for toggling camera feeds
47 public static OI
getOI() {