2018-07-22 23:03:55 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
/* 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>
|
2018-07-26 01:30:29 -07:00
|
|
|
#include <wpi/Format.h>
|
2018-07-22 23:03:55 -07:00
|
|
|
#include <wpi/raw_ostream.h>
|
|
|
|
|
|
|
|
|
|
extern "C" int HALSIM_InitExtension(void);
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
HAL_Initialize(500, 0);
|
|
|
|
|
HALSIM_InitExtension();
|
2018-07-26 01:30:29 -07:00
|
|
|
|
|
|
|
|
HAL_ObserveUserProgramStarting();
|
|
|
|
|
|
|
|
|
|
while (true) {
|
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
|
|
|
|
}
|
2018-07-22 23:03:55 -07:00
|
|
|
}
|