Package frc.robot.input
Class TeleopInput
java.lang.Object
frc.robot.input.Input
frc.robot.input.TeleopInput
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class frc.robot.input.Input
Input.BooleanEventType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a TeleopInput using the constants defined in this file. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the axis value for a specific axis.Function<edu.wpi.first.wpilibj.event.EventLoop,edu.wpi.first.wpilibj.event.BooleanEvent> Methods inherited from class frc.robot.input.Input
getBooleanEvent, getButtonPressed, getButtonReleased, getButtonValue, reset, update
-
Field Details
-
DRIVE_CONTROLLER_PORT
public static final int DRIVE_CONTROLLER_PORT- See Also:
-
MECH_CONTROLLER_PORT
public static final int MECH_CONTROLLER_PORT- See Also:
-
-
Constructor Details
-
TeleopInput
public TeleopInput()Constructs a TeleopInput using the constants defined in this file.
-
-
Method Details
-
getAxisValue
Description copied from class:InputGets the axis value for a specific axis.- Specified by:
getAxisValuein classInput- 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)
-