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:
Brad Miller
2014-11-25 17:34:38 -05:00
parent 56430ccd7c
commit 81840b2c49
2 changed files with 12 additions and 1 deletions

View File

@@ -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();