[copybara] mostrobotpy to allwpilib (#8545)

Project import generated by Copybara.
GitOrigin-RevId: f10284b37498bb6a088891ca41f160793ec7fd90
This commit is contained in:
PJ Reiniger
2026-01-12 22:11:02 -05:00
committed by GitHub
parent 7e1260b003
commit 762d1e8b93
64 changed files with 2665 additions and 66 deletions

View File

@@ -13,6 +13,7 @@ enums:
value_prefix: HAL_kMatchType
HAL_RobotMode:
rename: _RobotMode
value_prefix: HAL_ROBOTMODE
RobotMode:
classes:
HAL_ControlWord:

View File

@@ -6,4 +6,16 @@ functions:
ignore: true # TODO
HAL_HasMain:
HAL_RunMain:
cpp_code: |
[]() {
{
py::gil_scoped_release gil;
HAL_RunMain();
}
// halsim-gui will set the python error indicator if an exception occurs
if (PyErr_Occurred()) {
throw py::error_already_set();
}
}
HAL_ExitMain: