mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
[copybara] mostrobotpy to allwpilib (#8545)
Project import generated by Copybara. GitOrigin-RevId: f10284b37498bb6a088891ca41f160793ec7fd90
This commit is contained in:
@@ -13,6 +13,7 @@ enums:
|
||||
value_prefix: HAL_kMatchType
|
||||
HAL_RobotMode:
|
||||
rename: _RobotMode
|
||||
value_prefix: HAL_ROBOTMODE
|
||||
RobotMode:
|
||||
classes:
|
||||
HAL_ControlWord:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user