mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +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
@@ -40,6 +40,13 @@ void RobotDriveBase::SetDeadband(double deadband) { m_deadband = deadband; }
|
||||
*/
|
||||
void RobotDriveBase::SetMaxOutput(double maxOutput) { m_maxOutput = maxOutput; }
|
||||
|
||||
/**
|
||||
* Feed the motor safety object. Resets the timer that will stop the motors if it completes.
|
||||
*
|
||||
* @see MotorSafetyHelper::Feed()
|
||||
*/
|
||||
void RobotDriveBase::FeedWatchdog() { m_safetyHelper.Feed(); }
|
||||
|
||||
void RobotDriveBase::SetExpiration(double timeout) {
|
||||
m_safetyHelper.SetExpiration(timeout);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user