12 #include "ErrorBase.h"
13 #include "HAL/cpp/priority_mutex.h"
44 static std::set<MotorSafetyHelper*> m_helperList;
void SetSafetyEnabled(bool enabled)
Enable/disable motor safety for this device Turn on and off the motor safety option for this PWM obje...
Definition: MotorSafetyHelper.cpp:112
void Feed()
Feed the motor safety object.
Definition: MotorSafetyHelper.cpp:53
Definition: MotorSafety.h:16
bool IsSafetyEnabled() const
Return the state of the motor safety enabled flag Return if the motor safety is currently enabled for...
Definition: MotorSafetyHelper.cpp:122
Definition: MotorSafetyHelper.h:19
double GetExpiration() const
Retrieve the timeout value for the corresponding motor safety object.
Definition: MotorSafetyHelper.cpp:71
void Check()
Check if this motor has exceeded its timeout.
Definition: MotorSafetyHelper.cpp:92
bool IsAlive() const
Determine if the motor is still operating or has timed out.
Definition: MotorSafetyHelper.cpp:81
void SetExpiration(double expirationTime)
Set the expiration time for the corresponding motor safety object.
Definition: MotorSafetyHelper.cpp:62
static void CheckMotors()
Check the motors to see if any have timed out.
Definition: MotorSafetyHelper.cpp:132
Base class for most objects.
Definition: ErrorBase.h:72
Definition: priority_mutex.h:26
MotorSafetyHelper(MotorSafety *safeObject)
The constructor for a MotorSafetyHelper object.
Definition: MotorSafetyHelper.cpp:34