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.
Fork of IEEE_14_Freescale by
Diff: main.cpp
- Revision:
- 11:967469d7e01c
- Parent:
- 10:926f142f16a3
- Child:
- 12:925f52da3ba9
--- a/main.cpp Wed Feb 12 05:38:52 2014 +0000 +++ b/main.cpp Wed Feb 12 06:00:07 2014 +0000 @@ -57,7 +57,7 @@ case 'W': // drive forward a small bit //bot.driveForward(targetAngle,1000); //bot.motors.moveForward(100); - tmpOut = bot.absDriveForward(targetAngle,1000); + tmpOut = bot.absDriveForward(targetAngle,3000); DBGPRINT("W -> %d\n\r",tmpOut); //DBGPRINT("={%f,\t%f,\t%f}\n\r",bot.x,bot.y,bot.rot*180.0/3.14159); break; @@ -69,7 +69,7 @@ //bot.driveForward(targetAngle,-1000); //DBGPRINT("={%f,\t%f,\t%f}\n\r",bot.x,bot.y,bot.rot*180.0/3.14159); - tmpOut = bot.absDriveForward(targetAngle,3000); + tmpOut = bot.absDriveForward(targetAngle,-3000); DBGPRINT("X -> %d\n\r",tmpOut); break; case 'C': // big reverse