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: BMX055 Motor Way
Diff: main.cpp
- Revision:
- 11:5ae0c22d5473
- Parent:
- 10:cea77ea5af93
- Child:
- 12:a4d7e7615fc3
--- a/main.cpp Thu Jan 16 05:13:02 2020 +0000 +++ b/main.cpp Thu Jan 16 05:14:40 2020 +0000 @@ -76,14 +76,14 @@ while (1) { - /*if(reflectorFL > 0.1) + if(reflectorFL > 0.1) { flag = L; } if(reflectorFR > 0.1) { flag = R; - }*/ + } if( reflectorFM<=0.4 && reflectorBL<=0.1 && reflectorBR<=0.1 )//&& reflectorFL<=0.1 && reflectorFR<=0.1 ) { if( flag == L ) @@ -137,8 +137,7 @@ } } - /* - float gap_min = 0.0; + float gap_min = 10000.0; int i_min = 0; for (int i = 0; i < 478; i++) {