Public Member Functions | Private Member Functions | Private Attributes
PID Class Reference

#include <PID_v1.h>

List of all members.

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

Detailed Description

Definition at line 5 of file PID_v1.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

bool PID::Compute ( )

Definition at line 47 of file PID_v1.cpp.

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.


Member Data Documentation

int PID::controllerDirection [private]

Definition at line 65 of file PID_v1.h.

double PID::dispKd [private]

Definition at line 59 of file PID_v1.h.

double PID::dispKi [private]

Definition at line 58 of file PID_v1.h.

double PID::dispKp [private]

Definition at line 57 of file PID_v1.h.

bool PID::inAuto [private]

Definition at line 77 of file PID_v1.h.

double PID::ITerm [private]

Definition at line 73 of file PID_v1.h.

double PID::kd [private]

Definition at line 63 of file PID_v1.h.

double PID::ki [private]

Definition at line 62 of file PID_v1.h.

double PID::kp [private]

Definition at line 61 of file PID_v1.h.

double PID::lastInput [private]

Definition at line 73 of file PID_v1.h.

unsigned long PID::lastTime [private]

Definition at line 72 of file PID_v1.h.

double* PID::myInput [private]

Definition at line 67 of file PID_v1.h.

double* PID::myOutput [private]

Definition at line 68 of file PID_v1.h.

double* PID::mySetpoint [private]

Definition at line 69 of file PID_v1.h.

double PID::outMax [private]

Definition at line 76 of file PID_v1.h.

double PID::outMin [private]

Definition at line 76 of file PID_v1.h.

unsigned long PID::SampleTime [private]

Definition at line 75 of file PID_v1.h.


The documentation for this class was generated from the following files:


lizi_arduino
Author(s): RoboTiCan
autogenerated on Wed Aug 26 2015 12:24:23