Fertig

Dependencies:   mbed

Fork of RT2_P3_students by TeamSurface

Revision:
4:16f47c056c7c
Parent:
3:769ce5f06d3e
--- a/PI_Cntrl.cpp	Mon Apr 09 08:01:29 2018 +0000
+++ b/PI_Cntrl.cpp	Tue Apr 17 12:03:20 2018 +0000
@@ -1,10 +1,10 @@
-/*#include "PI_Cntrl.h"
+#include "PI_Cntrl.h"
 
 using namespace std;
 
 PI_Cntrl::PI_Cntrl(float Kp, float Tn){
     this->Kp = Kp;
-    this->Tn = Tn_;
+    this->Tn = Tn;
     
     //...
     
@@ -21,11 +21,12 @@
 
 float PI_Cntrl::doStep(float error){
     
-    // ...
-    
+    // P
+    return error*this->Kp;
     // -------- Anti-Windup -------- 
     // ...
     // -------- Timeshift --------
     
     
-    }*/
\ No newline at end of file
+    }
+    
\ No newline at end of file