7 #include "Commands/PIDSubsystem.h"
8 #include "PIDController.h"
54 m_controller =
new PIDController(p, i, d, f,
this,
this, period);
98 m_controller =
new PIDController(p, i, d, f,
this,
this, period);
101 PIDSubsystem::~PIDSubsystem()
182 void PIDSubsystem::SetAbsoluteTolerance(
float absValue) {
183 m_controller->SetAbsoluteTolerance(absValue);
191 void PIDSubsystem::SetPercentTolerance(
float percent) {
192 m_controller->SetPercentTolerance(percent);
206 bool PIDSubsystem::OnTarget()
208 return m_controller->OnTarget();
217 return ReturnPIDInput();
220 void PIDSubsystem::PIDWrite(
float output)
222 UsePIDOutput(output);
225 double PIDSubsystem::PIDGet()
227 return ReturnPIDInput();
virtual void SetSetpoint(float setpoint)
void SetInputRange(float minimumInput, float maximumInput)
void SetSetpoint(double setpoint)
PIDController * GetPIDController()
virtual void InitTable(ITable *table)
PIDSubsystem(const char *name, double p, double i, double d)
virtual float GetSetpoint()
void SetSetpointRelative(double deltaSetpoint)
virtual void InitTable(ITable *table)
virtual std::string GetSmartDashboardType()
virtual void SetInputRange(float minimumInput, float maximumInput)
virtual void InitTable(ITable *table)