}
public static class Shooter {
- public static final int PORT = 0;
+ public static final int PORT = 4;
public static final int PUNCH_FORWARD = 5;
public static final int PUNCH_REVERSE = 1;
public static final int ANGLE_ADJUSTER_PORT = 0;
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 = new JoystickButton(leftJoystick,
+ Constants.OI.LEFT_JOYSTICK_TRIGGER_PORT);
toggleGear.toggleWhenPressed(new ChangeGear());
// passPortcullis = new DigitalButton(
@Override
public void teleopPeriodic() {
Scheduler.getInstance().run();
+ if (OI.rightJoystick.getTrigger()) {
+ Robot.shooter.setSpeed(1);
+ } else {
+ Robot.shooter.setSpeed(0);
+ }
}
}