mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Allow users to feed the watchdog contained in drive objects (#1044)
This commit is contained in:
committed by
Peter Johnson
parent
b7ea481bf9
commit
665a6e356a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user