geez0x1 / CompliantJointToolbox

Compliant Joint Toolbox (CJT) for MATLAB and Simulink
GNU General Public License v3.0
37 stars 14 forks source link

Automatic computation of derivative gain is too high when a compensation term is used #74

Open geez0x1 opened 5 years ago

geez0x1 commented 5 years ago

When setting Kd=-1 as argument to get_controlled_closed_loop(), the derivative gain is automagically computed to obtain a desired damping ratio zeta (another argument) for 2nd order plants. However, when ff_comp_switch='comp', i.e. a spring force compensation term is included, the derivative gain computation is not taking that into account.