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:5da0ff9752d5, committed 2016-10-13
- Comitter:
- csellier
- Date:
- Thu Oct 13 22:02:34 2016 +0000
- Parent:
- 6:550027985c6c
- Child:
- 8:07464acc8a85
- Commit message:
- update with comas
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Oct 13 22:01:56 2016 +0000 +++ b/main.cpp Thu Oct 13 22:02:34 2016 +0000 @@ -45,16 +45,16 @@ ServoRight.write(0.5); //turn right ServoLeft.write(0.4); } else { - ServoRight.write(0.6) // turn left - ServoLeft.write(0.5) + ServoRight.write(0.6); // turn left + ServoLeft.write(0.5); } } else if (left > DISTANCE) { if (right < DISTANCE) { - ServoRight.write(0.5) // right - ServoLeft.write(0.4) + ServoRight.write(0.5); // right + ServoLeft.write(0.4); } else { - ServoRight.write(0.6) // forward - ServoLeft.write(0.4) + ServoRight.write(0.6); // forward + ServoLeft.write(0.4); } }