Class TeleopInput

java.lang.Object
frc.robot.input.Input
frc.robot.input.TeleopInput

public final class TeleopInput extends Input
Common class for providing driver inputs during Teleop. This class is the sole owner of WPILib input objects and is responsible for polling input values. Systems may query TeleopInput via its getter methods for inputs by value, but may not access the internal input objects.
  • Field Details

  • Constructor Details

    • TeleopInput

      public TeleopInput()
      Constructs a TeleopInput using the constants defined in this file.
  • Method Details

    • getAxisValue

      public double getAxisValue(InputTypes.AxialInput key)
      Description copied from class: Input
      Gets the axis value for a specific axis.
      Specified by:
      getAxisValue in class Input
      Parameters:
      key - the axis identifier
      Returns:
      the axis value
    • getButton

      public Function<edu.wpi.first.wpilibj.event.EventLoop,edu.wpi.first.wpilibj.event.BooleanEvent> getButton(InputTypes.ButtonInput key)
      Specified by:
      getButton in class Input