13 #include "MotorSafety.h"
14 #include "MotorSafetyHelper.h"
37 void GetDescription(std::ostringstream& desc)
const;
42 std::unique_ptr<MotorSafetyHelper> m_safetyHelper;
virtual void SetSpeed(double speed)
Feed the MotorSafety timer when setting the speed.
Definition: SafePWM.cpp:89
double GetExpiration() const
Return the expiration time for the PWM object.
Definition: SafePWM.cpp:37
void SetExpiration(double timeout)
Set the expiration time for the PWM object.
Definition: SafePWM.cpp:28
void StopMotor()
Stop the motor associated with this PWM object.
Definition: SafePWM.cpp:55
Definition: MotorSafety.h:16
SafePWM(int channel)
Constructor for a SafePWM object taking a channel number.
Definition: SafePWM.cpp:18
void SetSafetyEnabled(bool enabled)
Enable/disable motor safety for this device.
Definition: SafePWM.cpp:64
bool IsSafetyEnabled() const
Check if motor safety is enabled for this object.
Definition: SafePWM.cpp:73
A safe version of the PWM class.
Definition: SafePWM.h:26
bool IsAlive() const
Check if the PWM object is currently alive or stopped due to a timeout.
Definition: SafePWM.cpp:47
Class implements the PWM generation in the FPGA.
Definition: PWM.h:37