Proportional, integral, derivative controller library. Ported from the Arduino PID library by Brett Beauregard.

Fork of PID by Aaron Berk

Revision:
1:b1c9d8d482cb
Parent:
0:6e12a3e5af19
diff -r 6e12a3e5af19 -r b1c9d8d482cb PID.cpp
--- a/PID.cpp	Thu Sep 02 16:48:10 2010 +0000
+++ b/PID.cpp	Tue Jul 05 11:55:15 2016 +0000
@@ -322,3 +322,12 @@
     return dParam_;
 
 }
+
+PID::operator float() {
+    return setPoint_;
+}
+
+PID& PID::operator=(float sp) {
+    setPoint_ = sp;
+    return *this;
+}