13 #include <wpi/deprecated.h>
14 #include <wpi/mutex.h>
17 #include "frc/Controller.h"
18 #include "frc/Notifier.h"
19 #include "frc/PIDBase.h"
20 #include "frc/PIDSource.h"
21 #include "frc/Timer.h"
22 #include "frc/filters/LinearDigitalFilter.h"
129 void Reset()
override;
134 std::unique_ptr<Notifier> m_controlLoop;
Definition: SPIAccelerometerSim.h:18
void Reset() override
Reset the previous error, the integral term, and disable the controller.
Interface for Controllers.
Definition: Controller.h:19
void Enable() override
Begin running the PIDController.
PIDSource interface is a generic sensor source for the PID class.
Definition: PIDSource.h:20
Class implements a PID Control Loop.
Definition: PIDController.h:38
PIDOutput interface is a generic output for the PID class.
Definition: PIDOutput.h:20
bool IsEnabled() const
Return true if PIDController is enabled.
PIDController(double p, double i, double d, PIDSource *source, PIDOutput *output, double period=0.05)
Allocate a PID object with the given constants for P, I, D.
Class implements a PID Control Loop.
Definition: PIDBase.h:36
void SetEnabled(bool enable)
Set the enabled state of the PIDController.
Definition: SendableBuilder.h:23
void Disable() override
Stop running the PIDController, this sets the output to zero before stopping.
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.