[vesc_servo_controller.cpp] Nonlinear treatment of integral terms at saturation boundaries
nyxrobotics opened this issue · comments
TakaakiNumai commented
Abstract
In the following program, the behavior of the I-control appears to be non-linear near saturation.
vesc/vesc_hw_interface/src/vesc_servo_controller.cpp
Lines 93 to 101 in 09f7414
I think the correct solution is as follows.
if (isSaturated(u_pid))
{
u = saturate(u_pid);
}