Rover: use get_pid_4500() to prevent PID overflow

if users set much too large gains
This commit is contained in:
Andrew Tridgell 2013-04-01 22:16:49 +11:00
parent 5d54215221
commit a5fdbadcc2

View File

@ -136,7 +136,7 @@ static void calc_nav_steer()
// negative error = left turn
// positive error = right turn
nav_steer = g.pidNavSteer.get_pid(bearing_error_cd, nav_gain_scaler);
nav_steer = g.pidNavSteer.get_pid_4500(bearing_error_cd, nav_gain_scaler);
// avoid obstacles, if any
nav_steer += obstacle.turn_angle*100;