Pascal Keller
/
GRT_VC_PIDT1
Regler von Kellep15
PID_Cntrl.cpp
- Committer:
- altb2
- Date:
- 2019-05-03
- Revision:
- 0:05dd1de8cc3f
- Child:
- 1:92f175969d90
File content as of revision 0:05dd1de8cc3f:
/* PI Controller class 1 s G(s) = P + I --- + D --------- s T_f*s + p */ #include "PID_Cntrl.h" using namespace std; PID_Cntrl::PID_Cntrl(float P, float I, float D, float tau_f, float Ts, float uMin, float uMax) { // .... reset(0.0f); } PID_Cntrl::~PID_Cntrl() {} void PID_Cntrl::reset(float initValue) { // here code for resetting variables } float PID_Cntrl::update(double e) { // here the main code!!! return 0.0f; }