mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
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:
committed by
Peter Johnson
parent
90f99dc571
commit
de95f08a10
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user