mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[robotpy] Mirror most other subprojects (#8208)
GitOrigin-RevId: ac60fd3cf4a24023184376687da28373d14b781a This mirrors the robotpy files for the following projects: - apriltag - datalog - hal - ntcore - romiVendordep - wpilibc - wpimath - xrpVendordep This excludes cscore and the halsim wrappers for at this time. NOTE: This does not hook these projects up to the build system, just simply mirrors the files. The building will take place in a follow up PR to make it easier to review the changes necessary to build.
This commit is contained in:
68
wpilibc/src/main/python/semiwrap/DriverStation.yml
Normal file
68
wpilibc/src/main/python/semiwrap/DriverStation.yml
Normal file
@@ -0,0 +1,68 @@
|
||||
extra_includes:
|
||||
- rpy/ControlWord.h
|
||||
- wpi/datalog/DataLog.h
|
||||
|
||||
classes:
|
||||
frc::DriverStation:
|
||||
attributes:
|
||||
kJoystickPorts:
|
||||
enums:
|
||||
Alliance:
|
||||
MatchType:
|
||||
POVDirection:
|
||||
methods:
|
||||
GetStickButton:
|
||||
GetStickButtonPressed:
|
||||
GetStickButtonReleased:
|
||||
GetStickAxis:
|
||||
GetStickPOV:
|
||||
GetStickButtons:
|
||||
GetStickAxisCount:
|
||||
GetStickPOVCount:
|
||||
GetStickButtonCount:
|
||||
GetJoystickType:
|
||||
GetJoystickName:
|
||||
GetJoystickAxisType:
|
||||
IsJoystickConnected:
|
||||
IsEnabled:
|
||||
IsDisabled:
|
||||
IsEStopped:
|
||||
IsAutonomous:
|
||||
IsAutonomousEnabled:
|
||||
IsTeleop:
|
||||
IsTeleopEnabled:
|
||||
IsTest:
|
||||
IsTestEnabled:
|
||||
IsDSAttached:
|
||||
IsFMSAttached:
|
||||
GetGameSpecificMessage:
|
||||
GetEventName:
|
||||
GetMatchType:
|
||||
GetMatchNumber:
|
||||
GetReplayNumber:
|
||||
GetAlliance:
|
||||
GetLocation:
|
||||
WaitForDsConnection:
|
||||
GetMatchTime:
|
||||
GetBatteryVoltage:
|
||||
RefreshData:
|
||||
ProvideRefreshedDataEventHandle:
|
||||
RemoveRefreshedDataEventHandle:
|
||||
SilenceJoystickConnectionWarning:
|
||||
IsJoystickConnectionWarningSilenced:
|
||||
StartDataLog:
|
||||
GetAngle:
|
||||
GetJoystickIsGamepad:
|
||||
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"))
|
||||
Reference in New Issue
Block a user