Package frc.robot
Class TeleopInput
- java.lang.Object
-
- frc.robot.TeleopInput
-
public class TeleopInput extends java.lang.ObjectCommon 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 Summary
Constructors Constructor Description TeleopInput()Create a TeleopInput and register input devices.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetLeftJoystickX()Get X axis of Left Joystick.doublegetLeftJoystickY()Get Y axis of Left Joystick.doublegetRightJoystickX()Get X axis of Right Joystick.doublegetRightJoystickY()Get Y axis of Right Joystick.booleanisIntakeButtonPressed()Get the value of the intake button.booleanisOuttakeButtonPressed()Get the value of the outtake button.booleanisShooterButtonPressed()Get the value of the shooter button.
-
-
-
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
-
-