Adding call to notify program started (#692)

Causes the HALSIM_WaitForProgramStart loop to break, essentially
notifying simulators the robot is good to go.
This commit is contained in:
PJ Reiniger
2017-10-28 00:00:52 -04:00
committed by Peter Johnson
parent 90f99dc571
commit de95f08a10

View File

@@ -18,6 +18,7 @@
#include <string>
#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