mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
halsim_ds_socket: Update tag parsing, and add rumble support (#1214)
Outputs are now sent. Ensure only the proper number of outputs are actually sent though. Also adds match time, and proper enable tags.
This commit is contained in:
committed by
Peter Johnson
parent
d54c2665dc
commit
63c1f80d60
@@ -36,6 +36,7 @@ int64_t GetFPGATime() {
|
||||
double GetFPGATimestamp() { return GetFPGATime() * 1.0e-6; }
|
||||
|
||||
void SetProgramStarted() { programStarted = true; }
|
||||
bool GetProgramStarted() { return programStarted; }
|
||||
} // namespace hal
|
||||
|
||||
using namespace hal;
|
||||
@@ -52,5 +53,7 @@ void HALSIM_WaitForProgramStart(void) {
|
||||
|
||||
void HALSIM_SetProgramStarted(void) { SetProgramStarted(); }
|
||||
|
||||
HAL_Bool HALSIM_GetProgramStarted(void) { return GetProgramStarted(); }
|
||||
|
||||
void HALSIM_RestartTiming(void) { RestartTiming(); }
|
||||
} // extern "C"
|
||||
|
||||
Reference in New Issue
Block a user