mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Fixes initialization when not using the provided main (#1085)
Helpful for simulation, which might not use our main.
This commit is contained in:
committed by
Peter Johnson
parent
381c25c573
commit
86c1f8ae50
@@ -818,6 +818,7 @@ void DriverStation::GetData() {
|
||||
* This is only called once the first time GetInstance() is called
|
||||
*/
|
||||
DriverStation::DriverStation() {
|
||||
HAL_Initialize(500, 0);
|
||||
m_waitForDataCounter = 0;
|
||||
m_joystickAxes = std::make_unique<HAL_JoystickAxes[]>(kJoystickPorts);
|
||||
m_joystickPOVs = std::make_unique<HAL_JoystickPOVs[]>(kJoystickPorts);
|
||||
|
||||
Reference in New Issue
Block a user