preliminary code

Dependencies:   Motor TCS3472_I2C mbed

Files at this revision

API Documentation at this revision

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