Added Getter for Error

Revision:
1:6895ff841ee2
Parent:
0:6e12a3e5af19
--- a/PID.h	Thu Sep 02 16:48:10 2010 +0000
+++ b/PID.h	Tue Apr 12 07:51:25 2022 +0000
@@ -164,6 +164,8 @@
     float getIParam();
     float getDParam();
 
+    float getError();
+
 private:
 
     bool usingFeedForward;
@@ -207,6 +209,8 @@
 
     //Controller output as a real world value.
     volatile float realOutput_;
+    
+    float   fError;
 
 };