Rover: fixing a bug the Rover simulation

Just a small change to ensure the max_wheel_turn parameter is used
instead of a hard coded value.
This commit is contained in:
Grant Morphett 2016-04-07 17:15:54 +10:00 committed by Randy Mackay
parent 0366bce9c1
commit 5861b754cc

View File

@ -54,7 +54,7 @@ float SimRover::turn_circle(float steering)
if (fabsf(steering) < 1.0e-6) {
return 0;
}
return turning_circle * sinf(radians(35)) / sinf(radians(steering*35));
return turning_circle * sinf(radians(max_wheel_turn)) / sinf(radians(steering*max_wheel_turn));
}
/*