package org.usfirst.frc.team3501.robot;
-import org.usfirst.frc.team3501.robot.commands.runShooter;
-import org.usfirst.frc.team3501.robot.commands.setShooterSpeed;
-
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
public static Button decrementSpeed;
public static Button incrementSpeed;
public static Button outputCurrentShooterSpeed;
- public static Button runWheel;
+ public static Button trigger;
public OI() {
leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT);
decrementSpeed = new JoystickButton(rightJoystick,
Constants.OI.DECREMENT_SHOOTER_PORT);
- decrementSpeed.whenPressed(new setShooterSpeed(-0.1));
incrementSpeed = new JoystickButton(rightJoystick,
Constants.OI.INCREMENT_SHOOTER_PORT);
- incrementSpeed.whenPressed(new setShooterSpeed(0.1));
outputCurrentShooterSpeed = new JoystickButton(rightJoystick,
Constants.OI.SHOOTER_PORT);
- runWheel = new JoystickButton(rightJoystick, Constants.OI.TRIGGER_PORT);
- runWheel.whenPressed(new runShooter());
+ trigger = new JoystickButton(rightJoystick, Constants.OI.TRIGGER_PORT);
+
}
}