12 #include <wpi/raw_ostream.h>
14 #include "frc/MotorSafety.h"
15 #include "frc/MotorSafetyHelper.h"
102 std::unique_ptr<MotorSafetyHelper> m_safetyHelper;
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:45
void SetSafetyEnabled(bool enabled)
Enable/disable motor safety for this device.
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
double GetExpiration() const
Return the expiration time for the PWM object.
SafePWM(int channel)
Constructor for a SafePWM object taking a channel number.
bool IsAlive() const
Check if the PWM object is currently alive or stopped due to a timeout.
bool IsSafetyEnabled() const
Check if motor safety is enabled for this object.
Definition: MotorSafety.h:16
virtual void SetSpeed(double speed)
Feed the MotorSafety timer when setting the speed.
A safe version of the PWM class.
Definition: SafePWM.h:28
Class implements the PWM generation in the FPGA.
Definition: PWM.h:36
void StopMotor()
Stop the motor associated with this PWM object.
void SetExpiration(double timeout)
Set the expiration time for the PWM object.