// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "frc/simulation/SimHooks.h" #include namespace frc::sim { void SetRuntimeType(HAL_RuntimeType type) { HALSIM_SetRuntimeType(type); } void WaitForProgramStart() { HALSIM_WaitForProgramStart(); } void SetProgramStarted() { HALSIM_SetProgramStarted(); } bool GetProgramStarted() { return HALSIM_GetProgramStarted(); } void RestartTiming() { HALSIM_RestartTiming(); } void PauseTiming() { HALSIM_PauseTiming(); } void ResumeTiming() { HALSIM_ResumeTiming(); } bool IsTimingPaused() { return HALSIM_IsTimingPaused(); } void StepTiming(units::second_t delta) { HALSIM_StepTiming(static_cast(delta.to() * 1e6)); } void StepTimingAsync(units::second_t delta) { HALSIM_StepTimingAsync(static_cast(delta.to() * 1e6)); } } // namespace frc::sim