Files
allwpilib/wpilibc/src/main/python/semiwrap/simulation/DriverStationSim.yml
Thad House 85adbf990e [hal,wpilib] Switch to new game data (#8584)
Game data is now limited to 8 bytes, and comes through the UDP packets.
2026-02-06 21:38:15 -08:00

80 lines
2.1 KiB
YAML

classes:
wpi::sim::OpModeOptions:
ignored_bases:
- std::span<HAL_OpModeOption>
force_no_trampoline: true
methods:
OpModeOptions:
overloads:
"":
ignore: true
HAL_OpModeOption*, int32_t:
ignore: true
inline_code: |
.def("__len__", [](const OpModeOptions &self) { return self.size(); })
.def("__getitem__", [](const OpModeOptions &self, int index) {
if (index >= static_cast<int>(self.size())) {
throw std::out_of_range("OpModeOptions index out of range");
}
return self[index];
})
.def("__iter__", [](OpModeOptions &self) {
return py::make_iterator(self.begin(), self.end());
}, py::keep_alive<0,1>());
wpi::sim::DriverStationSim:
force_type_casters:
- std::function
methods:
RegisterEnabledCallback:
GetEnabled:
SetEnabled:
RegisterEStopCallback:
GetEStop:
SetEStop:
RegisterFmsAttachedCallback:
GetFmsAttached:
SetFmsAttached:
RegisterDsAttachedCallback:
GetDsAttached:
SetDsAttached:
RegisterAllianceStationIdCallback:
GetAllianceStationId:
SetAllianceStationId:
RegisterMatchTimeCallback:
GetMatchTime:
SetMatchTime:
NotifyNewData:
SetSendError:
SetSendConsoleLine:
GetJoystickLeds:
GetJoystickRumble:
SetJoystickButton:
SetJoystickAxis:
SetJoystickPOV:
SetJoystickGamepadType:
SetJoystickSupportedOutputs:
SetJoystickName:
SetGameData:
SetEventName:
SetMatchType:
SetMatchNumber:
SetReplayNumber:
ResetData:
SetJoystickIsGamepad:
SetJoystickAxesMaximumIndex:
SetJoystickAxesAvailable:
SetJoystickPOVsMaximumIndex:
SetJoystickPOVsAvailable:
SetJoystickButtonsMaximumIndex:
SetJoystickButtonsAvailable:
RegisterRobotModeCallback:
GetRobotMode:
SetRobotMode:
RegisterOpModeCallback:
GetOpMode:
SetOpMode:
RegisterOpModeOptionsCallback:
ignore: true
GetOpModeOptions: