12 #include <wpi/Twine.h>
14 #include "frc/PIDController.h"
15 #include "frc/PIDOutput.h"
16 #include "frc/PIDSource.h"
17 #include "frc/commands/Command.h"
29 PIDCommand(
double p,
double i,
double d,
double period);
30 PIDCommand(
double p,
double i,
double d,
double f,
double period);
39 PIDCommand(
double p,
double i,
double d,
double f,
double period,
43 void SetSetpointRelative(
double deltaSetpoint);
46 void PIDWrite(
double output)
override;
49 double PIDGet()
override;
52 std::shared_ptr<PIDController> GetPIDController()
const;
53 void _Initialize()
override;
54 void _Interrupted()
override;
56 void SetSetpoint(
double setpoint);
57 double GetSetpoint()
const;
60 virtual double ReturnPIDInput() = 0;
61 virtual void UsePIDOutput(
double output) = 0;
65 std::shared_ptr<PIDController> m_controller;
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
PIDSource interface is a generic sensor source for the PID class.
Definition: PIDSource.h:20
Definition: Subsystem.h:23
Definition: PIDCommand.h:21
PIDOutput interface is a generic output for the PID class.
Definition: PIDOutput.h:20
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
Definition: SendableBuilder.h:23
The Command class is at the very core of the entire command framework.
Definition: Command.h:48
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79