mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
committed by
Peter Johnson
parent
614093c0c4
commit
d36d72bd4f
@@ -945,6 +945,10 @@ public class DriverStation implements RobotState.Interface {
|
||||
HAL.waitForDSData();
|
||||
getData();
|
||||
|
||||
if (isDisabled()) {
|
||||
safetyCounter = 0;
|
||||
}
|
||||
|
||||
if (++safetyCounter >= 4) {
|
||||
MotorSafetyHelper.checkMotors();
|
||||
safetyCounter = 0;
|
||||
|
||||
Reference in New Issue
Block a user