11 #include "frc/SpeedController.h"
31 void Set(
double value)
override;
38 double Get()
const override;
53 void PIDWrite(
double output)
override;
67 bool m_isInverted =
false;
Class implements the PWM generation in the FPGA.
Definition: PWM.h:40
void Set(double value) override
Set the PWM value.
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
void Disable() override
Common interface for disabling a motor.
void StopMotor() override
Common interface to stop the motor until Set is called again.
bool GetInverted() const override
Common interface for returning the inversion state of a speed controller.
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.
Common base class for all PWM Speed Controllers.
Definition: PWMSpeedController.h:18
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16
Interface for speed controlling devices.
Definition: SpeedController.h:19
void PIDWrite(double output) override
Write out the PID value as seen in the PIDOutput base object.
Definition: SendableBuilder.h:23