main content

fault-凯发k8网页登录

this example shows how to tune a fixed-structure controller for multiple operating modes of the plant.

background

this example deals with fault-tolerant flight control of passenger jet undergoing outages in the elevator and aileron actuators. the flight control system must maintain stability and meet performance and comfort requirements in both nominal operation and degraded conditions where some actuators are no longer effective due to control surface impairment. wind gusts must be alleviated in all conditions. this application is sometimes called reliable control as aircraft safety must be maintained in extreme flight conditions.

aircraft model

the control system is modeled in simulink.

open_system('faulttolerantaircraft')

the aircraft is modeled as a rigid 6th-order state-space system with the following state variables (units are mph for velocities and deg/s for angular rates):

  • u: x-body axis velocity

  • w: z-body axis velocity

  • q: pitch rate

  • v: y-body axis velocity

  • p: roll rate

  • r: yaw rate

the state vector is available for control as well as the flight-path bank angle rate mu (deg/s), the angle of attack alpha (deg), and the sideslip angle beta (deg). the control inputs are the deflections of the right elevator, left elevator, right aileron, left aileron, and rudder. all deflections are in degrees. elevators are grouped symmetrically to generate the angle of attack. ailerons are grouped anti-symmetrically to generate roll motion. this leads to 3 control actions as shown in the simulink model.

the controller consists of state-feedback control in the inner loop and mimo integral action in the outer loop. the gain matrices ki and kx are 3-by-3 and 3-by-6, respectively, so the controller has 27 tunable parameters.

actuator failures

we use a 9x5 matrix to encode the nominal mode and various actuator failure modes. each row corresponds to one flight condition, a zero indicating outage of the corresponding deflection surface.

outagecases = [...
   1 1 1 1 1; ... % nominal operational mode
   0 1 1 1 1; ... % right elevator outage
   1 0 1 1 1; ... % left elevator outage
   1 1 0 1 1; ... % right aileron outage
   1 1 1 0 1; ... % left aileron outage
   1 0 0 1 1; ... % left elevator and right aileron outage
   0 1 0 1 1; ... % right elevator and right aileron outage
   0 1 1 0 1; ... % right elevator and left aileron outage
   1 0 1 0 1; ... % left elevator and left aileron outage
   ];

design requirements

the controller should:

  1. provide good tracking performance in mu, alpha, and beta in nominal operating mode with adequate decoupling of the three axes

  2. maintain performance in the presence of wind gust of 10 mph

  3. limit stability and performance degradation in the face of actuator outage.

to express the first requirement, you can use an lqg-like cost function that penalizes the integrated tracking error e and the control effort u:

$$ j = lim_{t \rightarrow \infty} e \left( {1 \over t} \int_0^t \| w_e e \|^2   \| w_u u \|^2 dt \right) . $$

the diagonal weights $w_e$ and $w_u$ are the main tuning knobs for trading responsiveness and control effort and emphasizing some channels over others. use the weightedvariance requirement to express this cost function, and relax the performance weight $w_e$ by a factor 2 for the outage scenarios.

we = diag([10 20 15]);   wu = eye(3);
% nominal tracking requirement
softnom = tuninggoal.weightedvariance('setpoint',{'e','u'}, blkdiag(we,wu), []);
softnom.models = 1;    % nominal model
% tracking requirement for outage conditions
softout = tuninggoal.weightedvariance('setpoint',{'e','u'}, blkdiag(we/2,wu), []);
softout.models = 2:9;  % outage scenarios

for wind gust alleviation, limit the variance of the error signal e due to the white noise wg driving the wind gust model. again use a less stringent requirement for the outage scenarios.

% nominal gust alleviation requirement
hardnom = tuninggoal.variance('wg','e',0.02);
hardnom.models = 1;
% gust alleviation requirement for outage conditions
hardout = tuninggoal.variance('wg','e',0.1);
hardout.models = 2:9;

controller tuning for nominal flight

set the wind gust speed to 10 mph and initialize the tunable state-feedback and integrators gains of the controller.

gustspeed = 10;
ki = eye(3);
kx = zeros(3,6);

use the sltuner interface to set up the tuning task. list the blocks to be tuned and specify the nine flight conditions by varying the outage variable in the simulink model. because you can only vary scalar parameters in sltuner, independently specify the values taken by each entry of the outage vector.

outagedata = struct(...
   'name',{'outage(1)','outage(2)','outage(3)','outage(4)','outage(5)'},...
   'value',mat2cell(outagecases,9,[1 1 1 1 1]));
st0 = sltuner('faulttolerantaircraft',{'ki','kx'},outagedata);

use systune to tune the controller gains subject to the nominal requirements. treat the wind gust alleviation as a hard constraint.

[st,fsoft,ghard]  = systune(st0,softnom,hardnom);
final: soft = 22.6, hard = 0.9987, iterations = 287

retrieve the gain values and simulate the responses to step commands in mu, alpha, beta for the nominal and degraded flight conditions. all simulations include wind gust effects, and the red curve is the nominal response.

ki = getblockvalue(st, 'ki');  ki = ki.d;
kx = getblockvalue(st, 'kx');  kx = kx.d;
% bank-angle setpoint simulation
plotresponses(outagecases,1,0,0);

% angle-of-attack setpoint simulation
plotresponses(outagecases,0,1,0);

% sideslip-angle setpoint simulation
plotresponses(outagecases,0,0,1);

the nominal responses are good but the deterioration in performance is unacceptable when faced with actuator outage.

controller tuning for impaired flight

to improve reliability, retune the controller gains to meet the nominal requirement for the nominal plant as well as the relaxed requirements for all eight outage scenarios.

[st,fsoft,ghard]  = systune(st0,[softnom;softout],[hardnom;hardout]);
final: soft = 25.7, hard = 0.99815, iterations = 490

the optimal performance (square root of lqg cost $j$) is only slightly worse than for the nominal tuning (26 vs. 23). retrieve the gain values and rerun the simulations (red curve is the nominal response).

ki = getblockvalue(st, 'ki');  ki = ki.d;
kx = getblockvalue(st, 'kx');  kx = kx.d;
% bank-angle setpoint simulation
plotresponses(outagecases,1,0,0);

% angle-of-attack setpoint simulation
plotresponses(outagecases,0,1,0);

% sideslip-angle setpoint simulation
plotresponses(outagecases,0,0,1);

the controller now provides acceptable performance for all outage scenarios considered in this example. the design could be further refined by adding specifications such as minimum stability margins and gain limits to avoid actuator rate saturation.

see also

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

related topics

网站地图