Package frc.robot

Class TeleopInput


  • public class TeleopInput
    extends java.lang.Object
    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.
    • Constructor Detail

      • TeleopInput

        public TeleopInput()
        Create a TeleopInput and register input devices. Note that while inputs are registered at robot initialization, valid values will not be provided by WPILib until teleop mode.
    • Method Detail

      • getLeftJoystickX

        public double getLeftJoystickX()
        Get X axis of Left Joystick.
        Returns:
        Axis value
      • getLeftJoystickY

        public double getLeftJoystickY()
        Get Y axis of Left Joystick.
        Returns:
        Axis value
      • isShooterButtonPressed

        public boolean isShooterButtonPressed()
        Get the value of the shooter button.
        Returns:
        True if button is pressed
      • isIntakeButtonPressed

        public boolean isIntakeButtonPressed()
        Get the value of the intake button.
        Returns:
        True if button is pressed
      • isOuttakeButtonPressed

        public boolean isOuttakeButtonPressed()
        Get the value of the outtake button.
        Returns:
        True if button is pressed
      • getRightJoystickX

        public double getRightJoystickX()
        Get X axis of Right Joystick.
        Returns:
        Axis value
      • getRightJoystickY

        public double getRightJoystickY()
        Get Y axis of Right Joystick.
        Returns:
        Axis value