Proportional, integral, derivative controller library. Ported from the Arduino PID library by Brett Beauregard. changed to motor fo noam

Files at this revision

API Documentation at this revision

Comitter:
drorbalbul
Date:
Fri Dec 20 15:18:23 2019 +0000
Parent:
0:6e12a3e5af19
Commit message:
noam

Changed in this revision

PID.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/PID.cpp	Thu Sep 02 16:48:10 2010 +0000
+++ b/PID.cpp	Fri Dec 20 15:18:23 2019 +0000
@@ -57,8 +57,8 @@
     //Default the limits to the full range of I/O: 3.3V
     //Make sure to set these to more appropriate limits for
     //your application.
-    setInputLimits(0.0, 3.3);
-    setOutputLimits(0.0, 3.3);
+    setInputLimits(0.0, 90.0);
+    setOutputLimits(-1.0, 1.0);
 
     tSample_ = interval;