mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[sim] Add HAL hooks for simulationPeriodic (#2881)
This allows vendor libs to hook into the begin or end of simulationPeriodic().
This commit is contained in:
@@ -171,7 +171,9 @@ void IterativeRobotBase::LoopFunc() {
|
||||
m_watchdog.AddEpoch("Shuffleboard::Update()");
|
||||
|
||||
if constexpr (IsSimulation()) {
|
||||
HAL_SimPeriodicBefore();
|
||||
SimulationPeriodic();
|
||||
HAL_SimPeriodicAfter();
|
||||
m_watchdog.AddEpoch("SimulationPeriodic()");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user