PID

Fork of PID by LDSC_Robotics_TAs

Files at this revision

API Documentation at this revision

Comitter:
roger5641
Date:
Thu Apr 12 11:38:23 2018 +0000
Parent:
2:f8864ce26cd8
Commit message:

Changed in this revision

PID.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r f8864ce26cd8 -r dccd51230bf5 PID.cpp
--- a/PID.cpp	Tue Nov 21 05:55:11 2017 +0000
+++ b/PID.cpp	Thu Apr 12 11:38:23 2018 +0000
@@ -69,10 +69,10 @@
         if( output >= outputLimits_H){
             output = output - (output - outputLimits_H)*Ka;
             //output = outputLimits_H;
-        }else if( output <= outputLimits_L){
+        }
+        else if( output <= outputLimits_L){
             output =output - (output - outputLimits_L)*Ka;
-            //output = outputLimits_L;
-            
+            //output = outputLimits_L;  
         }
     }else{
         output = output;