diff --git a/src/main/java/com/overture/lib/gamepads/OverXboxController.java b/src/main/java/com/overture/lib/gamepads/OverXboxController.java index 8df9080..67b6e3b 100644 --- a/src/main/java/com/overture/lib/gamepads/OverXboxController.java +++ b/src/main/java/com/overture/lib/gamepads/OverXboxController.java @@ -143,69 +143,6 @@ public Command getRumbleCommand(double intensity) { return Commands.runOnce(() -> setRumble(GenericHID.RumbleType.kBothRumble, intensity)); } - /** - * Returns a trigger for the left stick being pushed past a threshold on the y axis. - * - * @param triggerThreshold the threshold to exceed - * @return the trigger - */ - public Trigger leftYTrigger(double triggerThreshold) { - return new Trigger(() -> Math.abs(getLeftY()) >= triggerThreshold); - } - - /** - * Returns a trigger for the left stick being pushed past a threshold on the x axis. - * - * @param triggerThreshold the threshold to exceed - * @return the trigger - */ - public Trigger leftXTrigger(double triggerThreshold) { - return new Trigger(() -> Math.abs(getLeftX()) >= triggerThreshold); - } - - /** - * Returns a trigger for the right stick being pushed past a threshold on the y axis. - * - * @param triggerThreshold the threshold to exceed - * @return the trigger - */ - public Trigger rightYTrigger(double triggerThreshold) { - return new Trigger(() -> Math.abs(getRightY()) >= triggerThreshold); - } - - /** - * Returns a trigger for the right stick being pushed past a threshold on the x axis. - * - * @param triggerThreshold the threshold to exceed - * @return the trigger - */ - public Trigger rightXTrigger(double triggerThreshold) { - return new Trigger(() -> Math.abs(getRightX()) >= triggerThreshold); - } - - /** - * Returns a trigger for the right stick being pushed past a threshold on either axis. - * - * @param triggerThreshold the threshold to exceed - * @return the trigger - */ - public Trigger rightStick(double triggerThreshold) { - return new Trigger( - () -> - Math.abs(getRightX()) >= triggerThreshold || Math.abs(getRightY()) >= triggerThreshold); - } - - /** - * Returns a trigger for the left stick being pushed past a threshold on either axis. - * - * @param triggerThreshold the threshold to exceed - * @return the trigger - */ - public Trigger leftStick(double triggerThreshold) { - return new Trigger( - () -> Math.abs(getLeftX()) >= triggerThreshold || Math.abs(getLeftY()) >= triggerThreshold); - } - /** Publishes the connection state of the controller. */ public void updateTelemetry() { isConnectedAlert.set(!isConnected()); diff --git a/src/main/java/com/overture/lib/robots/OverContainer.java b/src/main/java/com/overture/lib/robots/OverContainer.java index 1c50f59..6b6fead 100644 --- a/src/main/java/com/overture/lib/robots/OverContainer.java +++ b/src/main/java/com/overture/lib/robots/OverContainer.java @@ -12,9 +12,6 @@ public interface OverContainer { /** Configures the operator's button bindings. */ void configOperatorBindings(); - /** Configures the default commands of every subsystem. */ - void configDefaultCommands(); - /** Configures the bindings used for characterization routines. */ void configCharacterizationBindings();