#include <PID_v1.h>
Public Member Functions | |
bool | Compute () |
int | GetDirection () |
double | GetKd () |
double | GetKi () |
double | GetKp () |
int | GetMode () |
PID (double *, double *, double *, double, double, double, int) | |
void | SetControllerDirection (int) |
void | SetMode (int Mode) |
void | SetOutputLimits (double, double) |
void | SetSampleTime (int) |
void | SetTunings (double, double, double) |
Private Member Functions | |
void | Initialize () |
Private Attributes | |
int | controllerDirection |
double | dispKd |
double | dispKi |
double | dispKp |
bool | inAuto |
double | ITerm |
double | kd |
double | ki |
double | kp |
double | lastInput |
unsigned long | lastTime |
double * | myInput |
double * | myOutput |
double * | mySetpoint |
double | outMax |
double | outMin |
unsigned long | SampleTime |
PID::PID | ( | double * | Input, |
double * | Output, | ||
double * | Setpoint, | ||
double | Kp, | ||
double | Ki, | ||
double | Kd, | ||
int | ControllerDirection | ||
) |
Definition at line 20 of file PID_v1.cpp.
bool PID::Compute | ( | ) |
Definition at line 47 of file PID_v1.cpp.
int PID::GetDirection | ( | ) |
Definition at line 194 of file PID_v1.cpp.
double PID::GetKd | ( | ) |
Definition at line 192 of file PID_v1.cpp.
double PID::GetKi | ( | ) |
Definition at line 191 of file PID_v1.cpp.
double PID::GetKp | ( | ) |
Definition at line 190 of file PID_v1.cpp.
int PID::GetMode | ( | ) |
Definition at line 193 of file PID_v1.cpp.
void PID::Initialize | ( | ) | [private] |
Definition at line 160 of file PID_v1.cpp.
void PID::SetControllerDirection | ( | int | Direction | ) |
Definition at line 174 of file PID_v1.cpp.
void PID::SetMode | ( | int | Mode | ) |
Definition at line 146 of file PID_v1.cpp.
void PID::SetOutputLimits | ( | double | Min, |
double | Max | ||
) |
Definition at line 125 of file PID_v1.cpp.
void PID::SetSampleTime | ( | int | NewSampleTime | ) |
Definition at line 105 of file PID_v1.cpp.
void PID::SetTunings | ( | double | Kp, |
double | Ki, | ||
double | Kd | ||
) |
Definition at line 83 of file PID_v1.cpp.
int PID::controllerDirection [private] |
double PID::dispKd [private] |
double PID::dispKi [private] |
double PID::dispKp [private] |
bool PID::inAuto [private] |
double PID::ITerm [private] |
double PID::lastInput [private] |
unsigned long PID::lastTime [private] |
double* PID::myInput [private] |
double* PID::myOutput [private] |
double* PID::mySetpoint [private] |
double PID::outMax [private] |
double PID::outMin [private] |
unsigned long PID::SampleTime [private] |