1 package org
.usfirst
.frc
.team3501
.robot
;
3 import org
.usfirst
.frc
.team3501
.robot
.commands
.driving
.SetHighGear
;
4 import org
.usfirst
.frc
.team3501
.robot
.commands
.driving
.SetLowGear
;
5 import org
.usfirst
.frc
.team3501
.robot
.commands
.driving
.ToggleFront
;
6 import org
.usfirst
.frc
.team3501
.robot
.commands
.intakearm
.RunIntake
;
7 import org
.usfirst
.frc
.team3501
.robot
.commands
.intakearm
.StopIntake
;
8 import org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
.Shoot
;
10 import edu
.wpi
.first
.wpilibj
.Joystick
;
11 import edu
.wpi
.first
.wpilibj
.buttons
.Button
;
12 import edu
.wpi
.first
.wpilibj
.buttons
.JoystickButton
;
15 public static Joystick leftJoystick
;
16 public static Joystick rightJoystick
;
18 // left joystick buttons
19 public static Button gearTrigger
;
21 // right joystick buttons
22 public static Button intakeTrigger
;
23 public static Button shootBoulder
;
24 public static Button toggleFront
;
27 leftJoystick
= new Joystick(Constants
.OI
.LEFT_STICK_PORT
);
28 rightJoystick
= new Joystick(Constants
.OI
.RIGHT_STICK_PORT
);
31 gearTrigger
= new JoystickButton(leftJoystick
,
32 Constants
.OI
.LEFT_JOYSTICK_TRIGGER_PORT
);
33 gearTrigger
.whenPressed(new SetHighGear());
34 gearTrigger
.whenReleased(new SetLowGear());
37 intakeTrigger
= new JoystickButton(rightJoystick
,
38 Constants
.OI
.RIGHT_JOYSTICK_TRIGGER_PORT
);
39 intakeTrigger
.whenPressed(new RunIntake());
40 intakeTrigger
.whenReleased(new StopIntake());
42 shootBoulder
= new JoystickButton(rightJoystick
,
43 Constants
.OI
.RIGHT_JOYSTICK_SHOOT_PORT
);
44 shootBoulder
.whenPressed(new Shoot());
46 toggleFront
= new JoystickButton(rightJoystick
,
47 Constants
.OI
.RIGHT_JOYSTICK_THUMB_PORT
);
48 toggleFront
.whenPressed(new ToggleFront());