bode(Gpqr(1,1)*Kp,Gpqr(2,2)*Kq,Gpqr(3,3)*Kr,{1e-1,1e3}), grid
legend('da to p','de to q','dr to r')
To conclude the inner-loop design, push these gain values to the corresponding lookup
tables in the Simulink model and refresh the slTuner object.
MWS = get_param('csthl20_control','ModelWorkspace');
MWS.assignin('Kp',squeeze(Kp))
MWS.assignin('Kq',squeeze(Kq))
MWS.assignin('Kr',squeeze(Kr))
refresh(ST0)
11 Gain-Scheduled Controllers