[sim] Map HAL_GetSystemActive to HALSIM_GetDriverStationEnabled (#2501)

Vendors have requested this for testing purposes.
This commit is contained in:
Thad House
2020-05-01 09:05:54 -07:00
committed by GitHub
parent 0b9316d94a
commit cf20b068ca

View File

@@ -17,6 +17,7 @@
#include "hal/Errors.h"
#include "hal/Extensions.h"
#include "hal/handles/HandlesInternal.h"
#include "mockdata/DriverStationData.h"
#include "mockdata/RoboRioDataInternal.h"
using namespace hal;
@@ -253,7 +254,7 @@ HAL_Bool HAL_GetFPGAButton(int32_t* status) {
}
HAL_Bool HAL_GetSystemActive(int32_t* status) {
return true; // Figure out if we need to handle this
return HALSIM_GetDriverStationEnabled();
}
HAL_Bool HAL_GetBrownedOut(int32_t* status) {