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:
- 31:4ef53fbd6759
- Parent:
- 30:4158120cf801
- Child:
- 33:03b0b66038e1
diff -r 4158120cf801 -r 4ef53fbd6759 main.cpp --- a/main.cpp Fri Mar 21 04:44:11 2014 +0000 +++ b/main.cpp Sat Mar 22 00:38:12 2014 +0000 @@ -111,7 +111,7 @@ break; case 'E': //drive forward five times as much //bot.driveForward(targetAngle,5000); - bot.absDriveForward(0,29*16); + bot.absDriveForward(0,290*16); DBGPRINT("={%f,\t%f,\t%f}\n\r",bot.x,bot.y,bot.rot*180.0/3.14159); break; case 'X': // small reverse @@ -123,7 +123,7 @@ break; case 'C': // big reverse //bot.driveForward(targetAngle,-5000); - bot.absDriveForward(0,-29*16); + bot.absDriveForward(0,-290*16); DBGPRINT("={%f,\t%f,\t%f}\n\r",bot.x,bot.y,bot.rot*180.0/3.14159); break; case 'p': // poll the gyro @@ -167,8 +167,7 @@ bot.pollForRigs(); break; case 'j': - //bot.dfac/=2; - //DBGPRINT("dfac = %f\r\n",bot.dfac); + DBGPRINT("LeftStable (15,8) = %f\r\n",bot.pingLeft.getStablePoll()); break; case 'i': //put distance ping here