Template for group 4
Dependencies: mbed
Fork of RT2_P3_students_G4 by
Diff: PI_Cntrl.cpp
- Revision:
- 0:78ca29b4c49e
- Child:
- 2:769ce5f06d3e
diff -r 000000000000 -r 78ca29b4c49e PI_Cntrl.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PI_Cntrl.cpp Tue Apr 03 08:47:41 2018 +0000 @@ -0,0 +1,31 @@ +#include "PI_Cntrl.h" + +using namespace std; + +PI_Cntrl::PI_Cntrl(float Kp, float Tn){ + this->Kp = Kp; + this->Tn = Tn_; + + //... + + + } + + +PI_Cntrl::~PI_Cntrl() {} + +void PI_Cntrl::reset(float initValue) { +//... + +} + +float PI_Cntrl::doStep(float error){ + + // ... + + // -------- Anti-Windup -------- + // ... + // -------- Timeshift -------- + + + } \ No newline at end of file