Package frc.alotobots

Class OI

java.lang.Object
frc.alotobots.OI

public class OI extends Object
The Operator Interface (OI) class handles all driver control inputs and button mappings. This class provides methods to access controller inputs and defines button bindings for commanding the robot.
  • Field Details

    • DEADBAND

      public static final double DEADBAND
      The minimum value that joystick inputs must exceed to be registered. Used to prevent drift and unintended movement.
      See Also:
    • driveFacingBestObjectButton

      public static Trigger driveFacingBestObjectButton
      Button for activating the drive facing best object command.
    • pathfindToBestObjectButton

      public static Trigger pathfindToBestObjectButton
      Button for activating the pathfind to best object command.
    • testButton

      public static Trigger testButton
      A temporary test button.
    • testButton2

      public static Trigger testButton2
      A temporary test button.
  • Constructor Details

    • OI

      public OI()
  • Method Details

    • getTranslateForwardAxis

      public static double getTranslateForwardAxis()
      Gets the forward/backward translation input from the driver's controller.
      Returns:
      Value between -1.0 (backward) and 1.0 (forward)
    • getTranslateStrafeAxis

      public static double getTranslateStrafeAxis()
      Gets the left/right translation input from the driver's controller.
      Returns:
      Value between -1.0 (left) and 1.0 (right)
    • getRotationAxis

      public static double getRotationAxis()
      Gets the rotation input from the driver's controller.
      Returns:
      Value between -1.0 (counter-clockwise) and 1.0 (clockwise)
    • getTurtleSpeedTrigger

      public static double getTurtleSpeedTrigger()
      Gets the turtle (slow) speed control input value.
      Returns:
      Value between 0.0 and 1.0
    • getTurboSpeedTrigger

      public static double getTurboSpeedTrigger()
      Gets the turbo (fast) speed control input value.
      Returns:
      Value between 0.0 and 1.0