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"
51 WPI_DEPRECATED(
"Use frc2::PIDController class instead.")
67 WPI_DEPRECATED(
"Use frc2::PIDController class instead.")
83 WPI_DEPRECATED(
"Use frc2::PIDController class instead.")
99 WPI_DEPRECATED(
"Use frc2::PIDController class instead.")
101 PIDOutput& output,
double period = 0.05);
129 void Reset()
override;
134 std::unique_ptr<Notifier> m_controlLoop;
PIDSource interface is a generic sensor source for the PID class.
Definition: PIDSource.h:20
void Enable() override
Begin running the PIDController.
bool IsEnabled() const
Return true if PIDController is enabled.
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
Class implements a PID Control Loop.
Definition: PIDBase.h:39
void Reset() override
Reset the previous error, the integral term, and disable the controller.
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.
Interface for Controllers.
Definition: Controller.h:21
void Disable() override
Stop running the PIDController, this sets the output to zero before stopping.
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16
Class implements a PID Control Loop.
Definition: PIDController.h:37
PIDOutput interface is a generic output for the PID class.
Definition: PIDOutput.h:20
void SetEnabled(bool enable)
Set the enabled state of the PIDController.
Definition: SendableBuilder.h:23