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 2:e513ada0ecf1, committed 2014-05-21
- Comitter:
- vsal
- Date:
- Wed May 21 11:52:59 2014 +0000
- Parent:
- 1:ac7fc0b5f878
- Child:
- 3:6f773c2ba3a0
- Commit message:
- hdhasdh
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed May 21 11:31:57 2014 +0000
+++ b/main.cpp Wed May 21 11:52:59 2014 +0000
@@ -27,7 +27,7 @@
void smoothFollow(float position, float speed)
{
- float u = speed/4;
+ float u = speed/1.;
u = u * position;
if(speed+u > 1)
{
@@ -36,8 +36,8 @@
}
else
{
- huey.right_motor(speed+u);
- huey.left_motor(speed-u);
+ huey.right_motor(speed-u);
+ huey.left_motor(speed+u);
}
}
@@ -69,7 +69,7 @@
//huey.printf("%f", huey.line_position());
- float speed = 0.1;
+ float speed = 0.25;
float pos;
int z=1;
while(z==1)