preliminary code
Dependencies: Motor TCS3472_I2C mbed
Diff: control.cpp
- Revision:
- 2:372ec56bb276
- Parent:
- 1:789224bfa1e4
--- 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