Tobis Programm forked to not destroy your golden files
Fork of Robocode by
Diff: source/Movement.cpp
- Revision:
- 89:7f9d6e641a01
- Parent:
- 88:b89cace9329b
- Child:
- 92:b2f4ed4cb1e5
--- 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