7 #include "Commands/PIDCommand.h"
9 #include "PIDController.h"
12 PIDCommand::PIDCommand(
const char *name,
double p,
double i,
double d,
double f,
double period) :
15 m_controller =
new PIDController(p, i, d,
this,
this, period);
18 PIDCommand::PIDCommand(
double p,
double i,
double d,
double f,
double period)
20 m_controller =
new PIDController(p, i, d, f,
this,
this, period);
23 PIDCommand::PIDCommand(
const char *name,
double p,
double i,
double d) :
29 PIDCommand::PIDCommand(
const char *name,
double p,
double i,
double d,
double period) :
32 m_controller =
new PIDController(p, i, d,
this,
this, period);
35 PIDCommand::PIDCommand(
double p,
double i,
double d)
40 PIDCommand::PIDCommand(
double p,
double i,
double d,
double period)
42 m_controller =
new PIDController(p, i, d,
this,
this, period);
45 PIDCommand::~PIDCommand()
50 void PIDCommand::_Initialize()
55 void PIDCommand::_End()
60 void PIDCommand::_Interrupted()
65 void PIDCommand::SetSetpointRelative(
double deltaSetpoint)
67 SetSetpoint(GetSetpoint() + deltaSetpoint);
70 void PIDCommand::PIDWrite(
float output)
75 double PIDCommand::PIDGet()
77 return ReturnPIDInput();
85 void PIDCommand::SetSetpoint(
double setpoint)
90 double PIDCommand::GetSetpoint()
95 double PIDCommand::GetPosition()
97 return ReturnPIDInput();
virtual void SetSetpoint(float setpoint)
virtual void InitTable(ITable *table)
virtual std::string GetSmartDashboardType()
virtual void InitTable(ITable *table)
virtual float GetSetpoint()
virtual void InitTable(ITable *table)