10 #include <wpi/mutex.h>
12 #include "frc/ErrorBase.h"
114 mutable wpi::mutex m_thisMutex;
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
void SetSafetyEnabled(bool enabled)
Enable/disable motor safety for this device.
MotorSafetyHelper(MotorSafety *safeObject)
The constructor for a MotorSafetyHelper object.
double GetExpiration() const
Retrieve the timeout value for the corresponding motor safety object.
Definition: MotorSafety.h:16
Definition: MotorSafetyHelper.h:18
void Feed()
Feed the motor safety object.
bool IsSafetyEnabled() const
Return the state of the motor safety enabled flag.
Base class for most objects.
Definition: ErrorBase.h:74
bool IsAlive() const
Determine if the motor is still operating or has timed out.
static void CheckMotors()
Check the motors to see if any have timed out.
void SetExpiration(double expirationTime)
Set the expiration time for the corresponding motor safety object.
void Check()
Check if this motor has exceeded its timeout.