2025-10-24 01:28:04 -04:00
|
|
|
extra_includes:
|
|
|
|
|
- rpy/ControlWord.h
|
2025-11-07 19:56:21 -05:00
|
|
|
- wpi/datalog/DataLog.hpp
|
2025-10-24 01:28:04 -04:00
|
|
|
|
|
|
|
|
classes:
|
2025-11-07 20:00:05 -05:00
|
|
|
wpi::DriverStation:
|
2025-10-24 01:28:04 -04:00
|
|
|
attributes:
|
|
|
|
|
kJoystickPorts:
|
|
|
|
|
enums:
|
|
|
|
|
Alliance:
|
|
|
|
|
MatchType:
|
|
|
|
|
POVDirection:
|
|
|
|
|
methods:
|
|
|
|
|
GetStickButton:
|
|
|
|
|
GetStickButtonPressed:
|
|
|
|
|
GetStickButtonReleased:
|
|
|
|
|
GetStickAxis:
|
|
|
|
|
GetStickPOV:
|
|
|
|
|
GetStickButtons:
|
2025-11-17 14:36:14 -08:00
|
|
|
GetJoystickGamepadType:
|
|
|
|
|
GetJoystickSupportedOutputs:
|
2025-10-24 01:28:04 -04:00
|
|
|
GetJoystickName:
|
|
|
|
|
IsJoystickConnected:
|
|
|
|
|
IsEnabled:
|
|
|
|
|
IsDisabled:
|
|
|
|
|
IsEStopped:
|
|
|
|
|
IsAutonomous:
|
|
|
|
|
IsAutonomousEnabled:
|
|
|
|
|
IsTeleop:
|
|
|
|
|
IsTeleopEnabled:
|
|
|
|
|
IsTest:
|
|
|
|
|
IsTestEnabled:
|
|
|
|
|
IsDSAttached:
|
|
|
|
|
IsFMSAttached:
|
|
|
|
|
GetGameSpecificMessage:
|
|
|
|
|
GetEventName:
|
|
|
|
|
GetMatchType:
|
|
|
|
|
GetMatchNumber:
|
|
|
|
|
GetReplayNumber:
|
|
|
|
|
GetAlliance:
|
|
|
|
|
GetLocation:
|
|
|
|
|
GetMatchTime:
|
|
|
|
|
GetBatteryVoltage:
|
|
|
|
|
RefreshData:
|
|
|
|
|
ProvideRefreshedDataEventHandle:
|
|
|
|
|
RemoveRefreshedDataEventHandle:
|
|
|
|
|
SilenceJoystickConnectionWarning:
|
|
|
|
|
IsJoystickConnectionWarningSilenced:
|
|
|
|
|
StartDataLog:
|
|
|
|
|
GetAngle:
|
|
|
|
|
GetJoystickIsGamepad:
|
2025-11-07 19:58:22 -05:00
|
|
|
GetStickButtonIfAvailable:
|
|
|
|
|
GetStickAxisIfAvailable:
|
|
|
|
|
GetStickAxesMaximumIndex:
|
|
|
|
|
GetStickAxesAvailable:
|
|
|
|
|
GetStickPOVsMaximumIndex:
|
|
|
|
|
GetStickPOVsAvailable:
|
|
|
|
|
GetStickButtonsMaximumIndex:
|
|
|
|
|
GetStickButtonsAvailable:
|
2025-11-21 13:57:11 -08:00
|
|
|
GetStickTouchpadFinger:
|
|
|
|
|
GetStickTouchpadFingerAvailable:
|
2025-10-24 01:28:04 -04:00
|
|
|
inline_code: |
|
|
|
|
|
.def("getControlState",
|
|
|
|
|
[](DriverStation *self) -> std::tuple<bool, bool, bool> {
|
|
|
|
|
py::gil_scoped_release release;
|
|
|
|
|
return rpy::GetControlState();
|
|
|
|
|
},
|
|
|
|
|
py::doc("More efficient way to determine what state the robot is in.\n"
|
|
|
|
|
"\n"
|
|
|
|
|
":returns: booleans representing enabled, isautonomous, istest\n"
|
|
|
|
|
"\n"
|
|
|
|
|
".. versionadded:: 2019.2.1\n"
|
|
|
|
|
"\n"
|
|
|
|
|
".. note:: This function only exists in RobotPy\n"))
|
2025-11-21 13:57:11 -08:00
|
|
|
wpi::DriverStation::TouchpadFinger:
|
|
|
|
|
attributes:
|
|
|
|
|
down:
|
|
|
|
|
x:
|
|
|
|
|
y:
|