From de95f08a104255df894bc7a96e71722757fd4cc0 Mon Sep 17 00:00:00 2001 From: PJ Reiniger Date: Sat, 28 Oct 2017 00:00:52 -0400 Subject: [PATCH] Adding call to notify program started (#692) Causes the HALSIM_WaitForProgramStart loop to break, essentially notifying simulators the robot is good to go. --- hal/src/main/native/sim/DriverStation.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hal/src/main/native/sim/DriverStation.cpp b/hal/src/main/native/sim/DriverStation.cpp index 5f9e32a155..fd452559a4 100644 --- a/hal/src/main/native/sim/DriverStation.cpp +++ b/hal/src/main/native/sim/DriverStation.cpp @@ -18,6 +18,7 @@ #include #include "MockData/DriverStationDataInternal.h" +#include "MockData/MockHooks.h" static std::mutex msgMutex; static std::condition_variable newDSDataAvailableCond; @@ -152,9 +153,7 @@ double HAL_GetMatchTime(int32_t* status) { return SimDriverStationData.GetMatchTime(); } -void HAL_ObserveUserProgramStarting(void) { - // TODO -} +void HAL_ObserveUserProgramStarting(void) { HALSIM_SetProgramStarted(); } void HAL_ObserveUserProgramDisabled(void) { // TODO