mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
80 lines
2.1 KiB
YAML
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:
|