package org.usfirst.frc.team3501.robot;
+import org.usfirst.frc.team3501.robot.commands.driving.ChangeGear;
+
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
+import edu.wpi.first.wpilibj.buttons.JoystickButton;
public class OI {
public static Joystick leftJoystick;
// right joystick buttons
public static Button intakeBoulder;
public static Button shootBoulder;
+ public static Button toggleGear;
// button to change robot to the scaling mode
public static DigitalButton toggleScaling;
leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT);
rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT);
+ toggleGear = new JoystickButton(rightJoystick,
+ Constants.OI.RIGHT_JOYSTICK_TRIGGER_PORT);
+ toggleGear.toggleWhenPressed(new ChangeGear());
+
// passPortcullis = new DigitalButton(
// new DigitalInput(Constants.OI.PASS_PORTCULLIS_PORT));
// passPortcullis.whenPressed(new PassPortcullis());