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.
Dependencies: QEI RemoteIR mbed
Fork of encoder_v2 by
Diff: PID_control.cpp
- Revision:
- 8:6b2f7886768d
- Parent:
- 7:e10dc3cb9212
- Child:
- 9:20b8b64ed259
--- a/PID_control.cpp Wed Nov 29 02:48:57 2017 +0000
+++ b/PID_control.cpp Wed Nov 29 02:51:31 2017 +0000
@@ -198,6 +198,8 @@
backUp();
+ LS_IRE.write(1);
+ RS_IRE.write(1);
if (LS_IRR.read() > turnThreshold)
if (RS_IRR.read() < turnThreshold)
turnRight();
@@ -210,6 +212,8 @@
turnAround();
else
turnAround();
+ LS_IRE.write(0);
+ RS_IRE.write(0);
}
stop();
}
