|
Valkyrie 2026
|
Enhanced wrapper around frc::XboxController. More...
#include <valkyrie/Gamepad.h>
Classes | |
| class | AnalogValue |
| Represents a processed analog controller input. More... | |
Public Member Functions | |
| Gamepad (int id) | |
| Construct a new Valor Gamepad object. | |
| bool | DPadUp () const |
| Is the gamepad's D-pad up button pressed? | |
| bool | DPadDown () const |
| Is the gamepad's D-pad down button pressed? | |
| bool | DPadLeft () const |
| Is the gamepad's D-pad left button pressed? | |
| bool | DPadRight () const |
| Is the gamepad's D-pad right button pressed? | |
| constexpr AnalogValue & | LeftStickX () |
| Gets the processed left stick X-axis input. | |
| constexpr const AnalogValue & | LeftStickX () const |
| Gets the processed left stick X-axis input. | |
| constexpr AnalogValue & | LeftStickY () |
| Gets the processed left stick Y-axis input. | |
| constexpr const AnalogValue & | LeftStickY () const |
| Gets the processed left stick Y-axis input. | |
| constexpr AnalogValue & | RightStickX () |
| Gets the processed right stick X-axis input. | |
| constexpr const AnalogValue & | RightStickX () const |
| Gets the processed right stick X-axis input. | |
| constexpr AnalogValue & | RightStickY () |
| Gets the processed right stick Y-axis input. | |
| constexpr const AnalogValue & | RightStickY () const |
| Gets the processed right stick Y-axis input. | |
| constexpr AnalogValue & | LeftTrigger () |
| Gets the processed left trigger input. | |
| constexpr const AnalogValue & | LeftTrigger () const |
| Gets the processed left trigger input. | |
| constexpr AnalogValue & | RightTrigger () |
| Gets the processed right trigger input. | |
| constexpr const AnalogValue & | RightTrigger () const |
| Gets the processed right trigger input. | |
Enhanced wrapper around frc::XboxController.
Provides utility functions and higher-level abstractions for Xbox gamepad input handling in robot code. This class extends the default WPILib XboxController API with:
|
explicit |
Construct a new Valor Gamepad object.
| id | USB ID that shows up on the driver station. Between 0 and 3 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineconstexpr |
Gets the processed left stick X-axis input.
|
inlineconstexpr |
Gets the processed left stick X-axis input.
|
inlineconstexpr |
Gets the processed left stick Y-axis input.
|
inlineconstexpr |
Gets the processed left stick Y-axis input.
|
inlineconstexpr |
Gets the processed left trigger input.
|
inlineconstexpr |
Gets the processed left trigger input.
|
inlineconstexpr |
Gets the processed right stick X-axis input.
|
inlineconstexpr |
Gets the processed right stick X-axis input.
|
inlineconstexpr |
Gets the processed right stick Y-axis input.
|
inlineconstexpr |
Gets the processed right stick Y-axis input.
|
inlineconstexpr |
Gets the processed right trigger input.
|
inlineconstexpr |
Gets the processed right trigger input.