Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Autonomous_quadcopter
Fork of PID by
Diff: PID.cpp
- 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.
