preliminary code
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 |
diff -r 789224bfa1e4 -r 372ec56bb276 control.cpp --- 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