mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Add simulation pause/resume/step support
Calling HALSIM_PauseTiming pauses the FPGA clock and notifiers. Calling HALSIM_ResumeTiming resumes the FPGA clock and notifiers. Calling HALSIM_StepTiming steps the FPGA clock and runs applicable notifiers. This will effectively pause TimedRobot and any other notifier-based events, but of course will not pause user threads that do not use the notifier (e.g. image processing).
This commit is contained in:
@@ -14,6 +14,10 @@ void HALSIM_WaitForProgramStart(void);
|
||||
void HALSIM_SetProgramStarted(void);
|
||||
HAL_Bool HALSIM_GetProgramStarted(void);
|
||||
void HALSIM_RestartTiming(void);
|
||||
void HALSIM_PauseTiming(void);
|
||||
void HALSIM_ResumeTiming(void);
|
||||
HAL_Bool HALSIM_IsTimingPaused(void);
|
||||
void HALSIM_StepTiming(uint64_t delta);
|
||||
|
||||
typedef int32_t (*HALSIM_SendErrorHandler)(
|
||||
HAL_Bool isError, int32_t errorCode, HAL_Bool isLVCode, const char* details,
|
||||
|
||||
Reference in New Issue
Block a user