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:
- 90:7f9d6e641a01
- Parent:
- 88:b89cace9329b
- Child:
- 92:b2f4ed4cb1e5
diff -r b89cace9329b -r 7f9d6e641a01 source/Movement.cpp
--- a/source/Movement.cpp Mon May 01 13:38:00 2017 +0000
+++ b/source/Movement.cpp Mon May 01 15:26:30 2017 +0000
@@ -66,7 +66,7 @@
} else {
float speed_left = get_speed_left();
- wanted_dist -= (2*(float)wheel_r*(float)M_PI) * t.read() * fabsf(speed_left);
+ wanted_dist -= (2*(float)wheel_r*(float)M_PI)/(2*M_PI) * t.read() * fabsf(speed_left)*0.1f;
t.reset();
if(wanted_dist <= 0) { //distance covered, Stop function
