Eduard Medla / PID

Dependents:   Autonomous_quadcopter

Fork of PID by Aaron Berk

Revision:
1:a36e49dac330
Parent:
0:6e12a3e5af19
Child:
2:b03de6191e60
--- a/PID.cpp	Thu Sep 02 16:48:10 2010 +0000
+++ b/PID.cpp	Fri Dec 01 11:11:13 2017 +0000
@@ -177,6 +177,11 @@
 
 }
 
+void PID::resetError(void){
+    //Clear any error in the integral.
+    accError_ = 0;
+}
+
 void PID::setMode(int mode) {
 
     //We were in manual, and we just got set to auto.