import edu.wpi.first.wpilibj.buttons.JoystickButton;
public class OI {
- public static boolean isScalingMode = false;
- public static boolean isCompactRobot = false;
-
public static Joystick leftJoystick;
public static Joystick rightJoystick;
intakeBoulder.whenPressed(new IntakeBall());
shootBoulder.whenPressed(new Shoot());
- } else if (isScalingMode) {
+ } else {
// toggleShooter becomes winch
// compact robot button 1 and 2 retracts the lift
// intake button stops the winch
// shoot button extends the lift
toggleShooter.whenPressed(new RunWinchContinuous(
- Constants.Scaler.WINCH_IN_SPEED));
+ Constants.Scaler.SCALE_SPEED, Constants.Scaler.SECONDS_TO_SCALE));
compactRobot_1.whenPressed(new RetractLift());
compactRobot_2.whenPressed(new RetractLift());