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.
Dependencies: mbed
Fork of Robocode by
Diff: source/Movement.cpp
- Revision:
- 88:b89cace9329b
- Parent:
- 87:df8c869a5a52
- Child:
- 90:7f9d6e641a01
--- a/source/Movement.cpp Mon May 01 12:55:11 2017 +0000
+++ b/source/Movement.cpp Mon May 01 13:38:00 2017 +0000
@@ -40,6 +40,7 @@
float move_for_distance(float distance)
{
+ printf("move for distance\r\n");
if(distance != 0) {
is_moving = true;
@@ -57,6 +58,7 @@
left = -50.0f;
right = -50.0f;
}
+ printf("set speed %f\r\n", left);
set_speed(left, right);
t.reset();
t.start();
@@ -73,6 +75,7 @@
t.stop();
}
}
+ printf("remaining distance to cover: %f\r\n", wanted_dist);
return wanted_dist;
}
