2025-10-24 01:28:04 -04:00
|
|
|
|
|
|
|
|
#include "semiwrap_init.wpilib.simulation._simulation.hpp"
|
|
|
|
|
|
|
|
|
|
#ifndef __FRC_SYSTEMCORE__
|
|
|
|
|
|
2025-11-07 20:00:05 -05:00
|
|
|
namespace wpi::impl {
|
2025-10-24 01:28:04 -04:00
|
|
|
void ResetSmartDashboardInstance();
|
|
|
|
|
void ResetMotorSafety();
|
2025-11-07 20:00:05 -05:00
|
|
|
} // namespace wpi::impl
|
2025-10-24 01:28:04 -04:00
|
|
|
|
2025-11-07 20:00:38 -05:00
|
|
|
namespace wpi::util::impl {
|
2025-10-24 01:28:04 -04:00
|
|
|
void ResetSendableRegistry();
|
|
|
|
|
} // namespace wpi::impl
|
|
|
|
|
|
|
|
|
|
void resetWpilibSimulationData() {
|
2025-11-07 20:00:05 -05:00
|
|
|
wpi::impl::ResetSmartDashboardInstance();
|
|
|
|
|
wpi::impl::ResetMotorSafety();
|
2025-11-07 20:00:38 -05:00
|
|
|
wpi::util::impl::ResetSendableRegistry();
|
2025-10-24 01:28:04 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void resetMotorSafety() {
|
2025-11-07 20:00:05 -05:00
|
|
|
wpi::impl::ResetMotorSafety();
|
2025-10-24 01:28:04 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
void resetWpilibSimulationData() {}
|
|
|
|
|
void resetMotorSafety() {}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
SEMIWRAP_PYBIND11_MODULE(m) {
|
|
|
|
|
initWrapper(m);
|
|
|
|
|
|
|
|
|
|
m.def("_resetWpilibSimulationData", &resetWpilibSimulationData,
|
|
|
|
|
release_gil());
|
|
|
|
|
m.def("_resetMotorSafety", &resetMotorSafety, release_gil());
|
|
|
|
|
}
|