Robot Core Documentation
|
Public Member Functions | |
InternalButton () | |
InternalButton (boolean inverted) | |
void | setInverted (boolean inverted) |
void | setPressed (boolean pressed) |
![]() | |
Trigger (EventLoop loop, BooleanSupplier condition) | |
Trigger (BooleanSupplier condition) | |
Trigger | onTrue (Command command) |
Trigger | onFalse (Command command) |
Trigger | whileTrue (Command command) |
Trigger | whileFalse (Command command) |
Trigger | toggleOnTrue (Command command) |
Trigger | toggleOnFalse (Command command) |
Trigger | and (BooleanSupplier trigger) |
Trigger | or (BooleanSupplier trigger) |
Trigger | negate () |
Trigger | debounce (double seconds) |
Trigger | debounce (double seconds, Debouncer.DebounceType type) |
This class is intended to be used within a program. The programmer can manually set its value. Also includes a setting for whether it should invert its value.
This class is provided by the NewCommands VendorDep
edu.wpi.first.wpilibj2.command.button.InternalButton.InternalButton | ( | ) |
Creates an InternalButton that is not inverted.
edu.wpi.first.wpilibj2.command.button.InternalButton.InternalButton | ( | boolean | inverted | ) |
Creates an InternalButton which is inverted depending on the input.
inverted | if false, then this button is pressed when set to true, otherwise it is pressed when set to false. |
void edu.wpi.first.wpilibj2.command.button.InternalButton.setInverted | ( | boolean | inverted | ) |
Sets whether to invert button state.
inverted | Whether button state should be inverted. |
void edu.wpi.first.wpilibj2.command.button.InternalButton.setPressed | ( | boolean | pressed | ) |
Sets whether button is pressed.
pressed | Whether button is pressed. |