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: PID_VelocityExample TheProgram
Fork of PID by
Revision 5:15998473cc64, committed 2015-10-06
- Comitter:
- ewoud
- Date:
- Tue Oct 06 14:20:57 2015 +0000
- Parent:
- 3:54068e076b84
- Commit message:
- updated deadzone function
Changed in this revision
| PID.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 54068e076b84 -r 15998473cc64 PID.cpp
--- a/PID.cpp Tue Oct 06 10:50:31 2015 +0000
+++ b/PID.cpp Tue Oct 06 14:20:57 2015 +0000
@@ -281,9 +281,6 @@
else if (controllerOutputSum_ > 0){
controllerOutput_ = scaledDeadzoneTop;
}
- else {
- controllerOutput_ = (scaledDeadzoneBottom+scaledDeadzoneTop)/2;
- }
}
//Make sure the computed output is within output constraints.
if (controllerOutput_ < 0) {
