main content

fixed-凯发k8网页登录

this example shows how to use sltuner and systune to tune the standard configuration of a longitudinal autopilot. we thank professor d. alazard from institut superieur de l'aeronautique et de l'espace for providing the aircraft model and professor pierre apkarian from onera for developing the example.

aircraft model and autopilot configuration

the longitudinal autopilot for a supersonic passenger jet flying at mach 0.7 and 5000 ft is depicted in figure 1. the autopilot main purpose is to follow vertical acceleration commands $n_{zc}$ issued by the pilot. the feedback structure consists of an inner loop controlling the pitch rate $q$ and an outer loop controlling the vertical acceleration $n_z$. the autopilot also includes a feedforward component and a reference model $g_{ref}(s)$ that specifies the desired response to a step command $n_{zc}$. finally, the second-order roll-off filter

$$ f_{ro}(s) = {\omega_n^2 \over s^2   2 \zeta \omega_n s   \omega_n^2} $$

is used to attenuate noise and limit the control bandwidth as a safeguard against unmodeled dynamics. the tunable components are highlighted in orange.

figure 1: longitudinal autopilot configuration.

the aircraft model $g(s)$ is a 5-state model, the state variables being the aerodynamic speed $v$ (m/s), the climb angle $\gamma$ (rad), the angle of attack $\alpha$ (rad), the pitch rate $q$ (rad/s), and the altitude $h$ (m). the elevator deflection $\delta_m$ (rad) is used to control the vertical load factor $n_z$. the open-loop dynamics include the $\alpha$ oscillation with frequency and damping ratio $\omega_n$ = 1.7 (rad/s) and $\zeta$ = 0.33, the phugoid mode $\omega_n$ = 0.64 (rad/s) and $\zeta$ = 0.06, and the slow altitude mode $\lambda$ = -0.0026.

load concordedata g
bode(g,{1e-3,1e2}), grid
title('aircraft model')

note the zero at the origin in $g(s)$. because of this zero, we cannot achieve zero steady-state error and must instead focus on the transient response to acceleration commands. note that acceleration commands are transient in nature so steady-state behavior is not a concern. this zero at the origin also precludes pure integral action so we use a pseudo-integrator $1/(s \epsilon)$ with $\epsilon$ = 0.001.

tuning setup

when the control system is modeled in simulink, you can use the sltuner interface to quickly set up the tuning task. open the simulink model of the autopilot.

open_system('rct_concorde')

configure the sltuner interface by listing the tuned blocks in the simulink model (highlighted in orange). this automatically picks all linear analysis points in the model as points of interest for analysis and tuning.

st0 = sltuner('rct_concorde',{'ki','kp','kq','kf','rolloff'});

this also parameterizes each tuned block and initializes the block parameters based on their values in the simulink model. note that the four gains ki,kp,kq,kf are initialized to zero in this example. by default the roll-off filter $f_{ro}(s)$ is parameterized as a generic second-order transfer function. to parameterize it as

$$ f_{ro}(s) = {\omega_n^2 \over s^2   2 \zeta \omega_n s   \omega_n^2} , $$

create real parameters $\zeta, \omega_n$, build the transfer function shown above, and associate it with the rolloff block.

wn = realp('wn', 3);               % natural frequency
zeta = realp('zeta',0.8);          % damping
fro = tf(wn^2,[1 2*zeta*wn wn^2]); % parametric transfer function
setblockparam(st0,'rolloff',fro)   % use fro to parameterize "rolloff" block

design requirements

the autopilot must be tuned to satisfy three main design requirements:

1. setpoint tracking: the response $n_z$ to the command $n_{zc}$ should closely match the response of the reference model:

$$ g_{ref}(s) = {1.7^2 \over s^2   2 \times 0.7 \times 1.7 s   1.7^2} . $$

this reference model specifies a well-damped response with a 2 second settling time.

2. high-frequency roll-off: the closed-loop response from the noise signals to $\delta_m$ should roll off past 8 rad/s with a slope of at least -40 db/decade.

3. stability margins: the stability margins at the plant input $\delta_m$ should be at least 7 db and 45 degrees.

for setpoint tracking, we require that the gain of the closed-loop transfer from the command $n_{zc}$ to the tracking error $e$ be small in the frequency band [0.05,5] rad/s (recall that we cannot drive the steady-state error to zero because of the plant zero at s=0). using a few frequency points, sketch the maximum tracking error as a function of frequency and use it to limit the gain from $n_{zc}$ to $e$.

freqs = [0.005 0.05 5 50];
gains = [5 0.05 0.05 5];
req1 = tuninggoal.gain('nzc','e',frd(gains,freqs));
req1.name = 'maximum tracking error';

the tuninggoal.gain constructor automatically turns the maximum error sketch into a smooth weighting function. use viewgoal to graphically verify the desired error profile.

viewgoal(req1)

repeat the same process to limit the high-frequency gain from the noise inputs to $\delta_m$ and enforce a -40 db/decade slope in the frequency band from 8 to 800 rad/s

freqs = [0.8 8 800];
gains = [10 1 1e-4];
req2 = tuninggoal.gain('n','delta_m',frd(gains,freqs));
req2.name = 'roll-off requirement';
viewgoal(req2)

finally, register the plant input $\delta_m$ as a site for open-loop analysis and use tuninggoal.margins to capture the stability margin requirement.

addpoint(st0,'delta_m')
req3 = tuninggoal.margins('delta_m',7,45);

autopilot tuning

we are now ready to tune the autopilot parameters with systune. this command takes the untuned configuration st0 and the three design requirements and returns the tuned version st of st0. all requirements are satisfied when the final value is less than one.

[st,fsoft] = systune(st0,[req1 req2 req3]);
final: soft = 0.968, hard = -inf, iterations = 120

use showtunable to see the tuned block values.

showtunable(st)
block 1: rct_concorde/ki =
 
  d = 
             u1
   y1  -0.03053
 
name: ki
static gain.
-----------------------------------
block 2: rct_concorde/kp =
 
  d = 
              u1
   y1  -0.008857
 
name: kp
static gain.
-----------------------------------
block 3: rct_concorde/kq =
 
  d = 
            u1
   y1  -0.2911
 
name: kq
static gain.
-----------------------------------
block 4: rct_concorde/kf =
 
  d = 
             u1
   y1  -0.02366
 
name: kf
static gain.
-----------------------------------
wn = 4.82
-----------------------------------
zeta = 0.519

to get the tuned value of $f_{ro}(s)$, use getblockvalue to evaluate fro for the tuned parameter values in st:

fro = getblockvalue(st,'rolloff');
tf(fro)
ans =
 
          23.27
  ---------------------
  s^2   5.006 s   23.27
 
continuous-time transfer function.

finally, use viewgoal to graphically verify that all requirements are satisfied.

figure('position',[100,100,550,710])
viewgoal([req1 req2 req3],st)

closed-loop simulations

we now verify that the tuned autopilot satisfies the design requirements. first compare the step response of $n_z$ with the step response of the reference model $g_{ref}(s)$. again use getiotransfer to compute the tuned closed-loop transfer from nzc to nz:

gref = tf(1.7^2,[1 2*0.7*1.7 1.7^2]);    % reference model
t = getiotransfer(st,'nzc','nz');  % transfer nzc -> nz
figure, step(t,'b',gref,'b--',6), grid,
ylabel('n_z'), legend('actual response','reference model')

also plot the deflection $\delta_m$ and the respective contributions of the feedforward and feedback paths:

t = getiotransfer(st,'nzc','delta_m');  % transfer nzc -> delta_m
kf = getblockvalue(st,'kf');            % tuned value of kf
tff = fro*kf;         % feedforward contribution to delta_m
step(t,'b',tff,'g--',t-tff,'r-.',6), grid
ylabel('\delta_m'), legend('total','feedforward','feedback')

finally, check the roll-off and stability margin requirements by computing the open-loop response at $\delta_m$.

ol = getlooptransfer(st,'delta_m',-1); % negative-feedback loop transfer
margin(ol);
grid;
xlim([1e-3,1e2]);

the bode plot confirms a roll-off of -40 db/decade past 8 rad/s and indicates gain and phase margins in excess of 10 db and 70 degrees.

see also

(simulink control design) | (simulink control design) | |

related topics

网站地图