Allow users to feed the watchdog contained in drive objects (#1044)

This commit is contained in:
Austin Shalit
2018-05-09 23:18:55 -04:00
committed by Peter Johnson
parent b7ea481bf9
commit 665a6e356a
3 changed files with 18 additions and 0 deletions

View File

@@ -67,6 +67,15 @@ public abstract class RobotDriveBase extends SendableBase implements MotorSafety
m_maxOutput = maxOutput;
}
/**
* Feed the motor safety object. Resets the timer that will stop the motors if it completes.
*
* @see MotorSafetyHelper#feed()
*/
public void feedWatchdog() {
m_safetyHelper.feed();
}
@Override
public void setExpiration(double timeout) {
m_safetyHelper.setExpiration(timeout);