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.
Revision 7:218e861ea777, committed 2011-05-12
- Comitter:
- chris
- Date:
- Thu May 12 11:34:15 2011 +0000
- Parent:
- 6:8f46c6ac55ca
- Commit message:
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8f46c6ac55ca -r 218e861ea777 main.cpp --- a/main.cpp Thu May 12 11:32:35 2011 +0000 +++ b/main.cpp Thu May 12 11:34:15 2011 +0000 @@ -5,6 +5,11 @@ int main() { + // Parameters that affect the performance + float speed = 0.2; + float correction = 0.1; + float threshold = 0.5; + m3pi.locate(0,1); m3pi.printf("Line Flw"); @@ -12,10 +17,6 @@ m3pi.sensor_auto_calibrate(); - float speed = 0.2; - float correction = 0.1; - float threshold = 0.5; - while (1) { // -1.0 is far left, 1.0 is far right, 0.0 in the middle