Rover: use get_pid_4500() to prevent PID overflow
if users set much too large gains
This commit is contained in:
parent
5d54215221
commit
a5fdbadcc2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user