Files
allwpilib/simulation/halsim_ds_socket/src/dev/native/cpp/main.cpp
Thad House 63c1f80d60 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.
2018-07-26 01:30:29 -07:00

26 lines
816 B
C++

/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
#include <thread>
#include <hal/HAL.h>
#include <wpi/Format.h>
#include <wpi/raw_ostream.h>
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));
}
}