13 #include "ErrorBase.h" 40 mutable std::mutex m_syncMutex;
44 static std::set<MotorSafetyHelper*> m_helperList;
46 static std::mutex m_listMutex;
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:113
void Feed()
Feed the motor safety object.
Definition: MotorSafetyHelper.cpp:54
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:123
Definition: MotorSafetyHelper.h:19
double GetExpiration() const
Retrieve the timeout value for the corresponding motor safety object.
Definition: MotorSafetyHelper.cpp:72
void Check()
Check if this motor has exceeded its timeout.
Definition: MotorSafetyHelper.cpp:93
bool IsAlive() const
Determine if the motor is still operating or has timed out.
Definition: MotorSafetyHelper.cpp:82
void SetExpiration(double expirationTime)
Set the expiration time for the corresponding motor safety object.
Definition: MotorSafetyHelper.cpp:63
static void CheckMotors()
Check the motors to see if any have timed out.
Definition: MotorSafetyHelper.cpp:133
Base class for most objects.
Definition: ErrorBase.h:74
MotorSafetyHelper(MotorSafety *safeObject)
The constructor for a MotorSafetyHelper object.
Definition: MotorSafetyHelper.cpp:35