from greg

Fork of PID by Greg Abdo

Revision:
9:244f8204d1fa
Parent:
8:a020a225bc65
Child:
10:3296a2150efe
diff -r a020a225bc65 -r 244f8204d1fa PID.h
--- a/PID.h	Tue Dec 31 05:28:01 2013 +0000
+++ b/PID.h	Sat Feb 15 19:55:04 2014 +0000
@@ -31,7 +31,7 @@
      *                          such as momentum.
      * @param windupGainGuard Cap for the maximum error value.
      */
-    PID(const float, const float, const float, const float, const int);
+    PID(const float, const float, const float, const float, const float);
 
     /**
      * Determine how to correct the system to the desired position.
@@ -53,7 +53,7 @@
     const float integralGain;
     float derivativeGain;
     const float windupGainGuard;
-    const int dt;
+    const float dt;
     float proportionalControl, integralControl, derivativeControl;
 
     float currentError;