10 #include "frc/SafePWM.h"
11 #include "frc/SpeedController.h"
28 void Set(
double value)
override;
35 double Get()
const override;
50 void PIDWrite(
double output)
override;
64 bool m_isInverted =
false;
Interface for speed controlling devices.
Definition: SpeedController.h:17
Definition: SPIAccelerometerSim.h:18
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
PWMSpeedController(int channel)
Constructor for a PWM Speed Controller connected via PWM.
void Set(double value) override
Set the PWM value.
void SetInverted(bool isInverted) override
Common interface for inverting direction of a speed controller.
double Get() const override
Get the recently set value of the PWM.
A safe version of the PWM class.
Definition: SafePWM.h:28
bool GetInverted() const override
Common interface for returning the inversion state of a speed controller.
void StopMotor() override
Stop the motor associated with this PWM object.
Definition: SendableBuilder.h:23
void Disable() override
Common interface for disabling a motor.
Common base class for all PWM Speed Controllers.
Definition: PWMSpeedController.h:18
void PIDWrite(double output) override
Write out the PID value as seen in the PIDOutput base object.