mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Add a getControlWord() call to the run thread in DS so that the program is kept alive
Change-Id: I8b86506f6125422e19e8b5ab23e3667bf808bdc4
This commit is contained in:
@@ -103,6 +103,8 @@ public class DriverStation implements RobotState.Interface {
|
||||
synchronized (m_dataSem) {
|
||||
m_dataSem.notifyAll();
|
||||
}
|
||||
// need to get the controlWord to keep the motors enabled
|
||||
HALControlWord controlWord = FRCNetworkCommunicationsLibrary.HALGetControlWord();
|
||||
m_newControlData = true;
|
||||
if (++safetyCounter >= 5) {
|
||||
MotorSafetyHelper.checkMotors();
|
||||
|
||||
Reference in New Issue
Block a user