7 #ifndef PIDCONTROLLER_H_
8 #define PIDCONTROLLER_H_
12 #include "Controller.h"
13 #include "LiveWindow/LiveWindow.h"
38 virtual void SetInputRange(
float minimumInput,
float maximumInput);
39 virtual void SetOutputRange(
float mimimumOutput,
float maximumOutput);
40 virtual void SetPID(
float p,
float i,
float d);
41 virtual void SetPID(
float p,
float i,
float d,
float f);
52 virtual void SetTolerance(
float percent);
53 virtual void SetAbsoluteTolerance(
float absValue);
54 virtual void SetPercentTolerance(
float percentValue);
55 virtual bool OnTarget();
63 virtual void InitTable(ITable* table);
70 float m_maximumOutput;
71 float m_minimumOutput;
78 enum {kAbsoluteTolerance, kPercentTolerance, kNoTolerance} m_toleranceType;
91 void Initialize(
float p,
float i,
float d,
float f,
94 static void CallCalculate(
void *controller);
96 virtual ITable* GetTable();
97 virtual std::string GetSmartDashboardType();
98 virtual void ValueChanged(ITable* source,
const std::string& key, EntryValue value,
bool isNew);
99 virtual void UpdateTable();
100 virtual void StartLiveWindowMode();
101 virtual void StopLiveWindowMode();
virtual float GetSetpoint()
Definition: PIDController.cpp:402
Definition: Controller.h:18
Definition: PIDController.h:26
virtual float Get()
Definition: PIDController.cpp:307
virtual void SetContinuous(bool continuous=true)
Definition: PIDController.cpp:325
virtual float GetP()
Definition: PIDController.cpp:254
Definition: PIDOutput.h:18
Definition: Notifier.h:16
virtual float GetF()
Definition: PIDController.cpp:293
virtual void SetPID(float p, float i, float d)
Definition: PIDController.cpp:206
void Calculate()
Definition: PIDController.cpp:131
virtual bool IsEnabled()
Definition: PIDController.cpp:537
virtual float GetD()
Definition: PIDController.cpp:280
virtual float GetI()
Definition: PIDController.cpp:267
virtual void SetInputRange(float minimumInput, float maximumInput)
Definition: PIDController.cpp:341
virtual float GetError()
Definition: PIDController.cpp:417
Definition: PIDSource.h:15
virtual void Enable()
Definition: PIDController.cpp:504
virtual void SetOutputRange(float mimimumOutput, float maximumOutput)
Definition: PIDController.cpp:359
PIDController(float p, float i, float d, PIDSource *source, PIDOutput *output, float period=0.05)
Definition: PIDController.cpp:33
virtual void SetSetpoint(float setpoint)
Definition: PIDController.cpp:373
virtual void Disable()
Definition: PIDController.cpp:520
virtual void Reset()
Definition: PIDController.cpp:551
virtual ~PIDController()
Definition: PIDController.cpp:107