[wpilibc] Start DriverStation thread from RobotBase (#3785)

With the change from GetInstance to static functions, many functions
don't call DriverStation::GetInstance(), so the DS thread wasn't
getting started by default.  Call InDisabled() to make sure this
happens.
This commit is contained in:
Peter Johnson
2021-12-12 22:23:13 -08:00
committed by GitHub
parent 8d9836ca02
commit 589a00e379

View File

@@ -251,6 +251,9 @@ RobotBase::RobotBase() {
}
}
// Call DriverStation::InDisabled() to kick off DS thread
DriverStation::InDisabled(true);
// First and one-time initialization
inst.GetTable("LiveWindow")
->GetSubTable(".status")