mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user