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: Motor TCS3472_I2C mbed
Revision 2:372ec56bb276, committed 2015-04-26
- Comitter:
- ThatsAKnife
- Date:
- Sun Apr 26 19:45:50 2015 +0000
- Parent:
- 1:789224bfa1e4
- Commit message:
- minor edits
Changed in this revision
| control.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/control.cpp Sun Apr 26 19:44:10 2015 +0000
+++ b/control.cpp Sun Apr 26 19:45:50 2015 +0000
@@ -74,6 +74,7 @@
left=photo1+photo2;
center=2*photo3;
right=photo4+photo5;
+ //collect sonar
if (left<(center+0.01) && right<(center+0.01) && /* sonar is short */){ //recalibrate
running=0;
//dc left stop