mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +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
@@ -8,6 +8,7 @@
|
||||
#include <thread>
|
||||
|
||||
#include <hal/HAL.h>
|
||||
#include <wpi/Format.h>
|
||||
#include <wpi/raw_ostream.h>
|
||||
|
||||
extern "C" int HALSIM_InitExtension(void);
|
||||
@@ -15,4 +16,10 @@ extern "C" int HALSIM_InitExtension(void);
|
||||
int main() {
|
||||
HAL_Initialize(500, 0);
|
||||
HALSIM_InitExtension();
|
||||
|
||||
HAL_ObserveUserProgramStarting();
|
||||
|
||||
while (true) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user