Simple PID controller class with output clamp

Dependents:   NXPCUPcar

Revision:
1:946d71f8afc6
Parent:
0:070ecbe87363
Child:
2:994ed695c8a5
diff -r 070ecbe87363 -r 946d71f8afc6 PIDcontroller.h
--- a/PIDcontroller.h	Tue Jul 04 19:21:16 2017 +0000
+++ b/PIDcontroller.h	Wed Jul 05 20:30:07 2017 +0000
@@ -19,9 +19,9 @@
 
     float target;    
     float kp, ki, kd;
-    float integral,derivative;
-    float error,previous_error;
-    float outputMin,outputMax;
+    float integral, derivative;
+    float error, previous_error;
+    float outputMin, outputMax;
     
     Timer t;
 };