Real-Time Fixed-Order Lateral H 2 Controller for Micro Air Vehicle

This paper presents the design and development of a fixed low-order, robust H2 controller for a micro air vehicle (MAV) named Sarika-2. The controller synthesis uses strengthened discrete optimal projection equations and frequency-dependent performance index to achieve robust performance and stability. A single fixed gain low-order dynamic controller provides simultaneous stabilization, disturbance rejection, and sensor noise attenuation over the entire flight speed range of 16 m/sec to 26 m/sec. Comparative study indicates that the low-order H2-controller achieves robust performance levels similar to that of full order controller. Subsequently, the controller is implemented on a digital signal processor-based flight computer and is validated through the real time hardware in loop simulation. The responses obtained with hardware in loop simulation compares well with those obtained from the offline simulation.


Introduction
A Low-cost, remotely piloted MAV named Sarika-2 [1,2] is designed and built at the Indian Institute of Science, Bangalore, India, for validating modern robust optimal control algorithms.Sarika-2 (shown in Figure 1) is a lightweight (less than 2 kg at take off) and low inertia vehicle.The radio controlled flying of such a low inertia vehicle through joystickdriven manual command is difficult, if not impossible, even under moderate gusty conditions.The radio-controlled flying becomes easier with the fast damped response of a controlled airframe [3].
Though conventional flight control design methods have been in practice for a long time, such methods suffer from known limitations.They are time consuming.Controller tuning for multi-input multi-output (MIMO) systems is also not straightforward.Another serious limitation of a conventional controller is its poor robustness against model uncertainty.The quest for robust controllers in the last three decades resulted in controllers [4][5][6][7] which robustly stabilize the system, leaving the impression that such methods lean too heavily on robustness and sacrifice an adequate view of performance.The H 2 performance level of a plant is often a more realistic indication of its real-life performance [8][9][10] as compared to the more conservative H ∞ -norm [4][5][6][7].Robust H 2 controllers as well as other robust controllers like μ [11] and H ∞ [4][5][6][7] provide systematic procedures for obtaining controllers that meet performance objectives and guaranteed robustness against model uncertainty and unmeasured disturbances.In μ synthesis, H 2 and H ∞ loop shaping, the designer specifies frequency-dependent weights [4] to reflect the desired performance and robustness objectives.However, these techniques give controllers, order of which is normally higher than that of a given plant.Hence, real-time controller implementation is hard if not impossible.Implementation of large-order controllers may create undesirable time delays.Therefore, a robust fixedorder H 2 control is an attractive option among the several robust multivariable methods for controller design, since the H 2 norm is the more intuitive measure of the performance [8,10].Fixed low-order H 2 controller can be synthesized in one step in contrast to the other multivariable robust controller design methods involving two-step designs [12].A single-step procedure guarantees the stability robustness and optimality [13].
Robust H 2 optimal controller problem can be posed as H 2 optimal control problem, where in the model uncertainties are accommodated in the design.Thus in contrast to the LQG design, where the estimation of performance and robustness of the closed-loop system is posterior of the controller design and the performance and robustness specifications are included in H 2 controller at the design stage itself.A standard robust H 2 optimization problem can be represented as shown in Figure 2 [3], where attenuation system is subjected to noise and disturbances.The configuration shown in Figure 2 contains a generalized plant that is used for robust stability analysis and controller design.
The signals "w" and "z" are exogenous inputs and performance variables respectively."y" is the measured variable, and "u" is the control input.P g is the generalized plant representing the actual plant and all weighting functions.K 1 represents the sensor dynamics including preamplifier gains, and K is the controller to be designed.Δ is the set of all possible uncertainties, grouped in to a single block-diagonal finite dimensional linear time invariant system.The diagram in Figure 2 is also referred to as a standard LFT formulation with lower linear fractional transformation (LLFT) on K, where P g K 1 is the coefficient matrix of the LLFT and upper linear fractional transformation (ULFT) on Δ, where P g is the coefficient matrix of the ULFT.LLFT is used in the controller design stage, and ULFT is used during the robust performance analysis stage.
The generalized plant, Figure 2 can be represented in frequency domain as follows: where the closed-loop transfer matrix from w to z can be given by The minimization of the H 2 norm of the transfer function from w to z, that is, T zw over all realizable controllers K(z), constitutes the H 2 control problem.The elements of the generalized plant P g are obtained by augmenting the frequencydependent weighting functions and corresponding output vector z into lower LFT form.
The present paper is concerned solely with the design, analysis, and validation of robust fixed-order H 2 controller by real-time hardware in the loop simulation for the lateral dynamics of Sarika-2.The controller design is based on the combination of strengthened discrete optimal projection equations (SDOPEs) [14], which are the modified version of the pioneering work of Bernstein et al. [15] on fixed-order controllers and frequency-shaped design techniques.In this paper, the time-domain weighting matrices of state and control variables [14] are changed to frequency-dependent weighting matrices.This enables the designer to shape the responses tighter in prespecified frequency ranges by giving them larger weights, clearly at the expense of larger errors at other frequency ranges that are of less importance.A good controller is the result of systematic tradeoffs between output sensitivity S o , complementary sensitivity function T, and control sensitivity S i K (S i : input sensitivity function) of the closed-loop system.Since Sarika-2 is very small in size, the flow over the wing, where the velocity measuring pitot static probe is mounted, becomes turbulent at low Reynolds number flow regime.Also, light weight pressure sensors have poor sensitivity and stability in measurements.Further nonlinear relation between air speed and the dynamic pressure (total pressure-static pressure) makes such a device less preferred, since onboard correction for all above mentioned cants is not viable in Sarika 2 class of vehicles.Therefore, Sarika 2 does not have sensors to measure true or indicated air speed and hence, gain/controller scheduling over its flight speed range of 16-26 m/sec is not feasible.Therefore, a single discrete dynamic controller is designed at the central operating point (20 m/sec of flight speed) of the vehicle to achieve simultaneous stabilization, disturbance rejection, and sensor noise attenuation over the entire flight envelope of 16 m/sec-26 m/sec.

Lateral Dynamics of Sarika-2
Sarika-2 is a remote controlled small flying vehicle with a sweptback delta wing of 0.6 m span and planform area of 0.195 m 2 .It has a square fuselage of width 0.06 m and a length of 0.8 m.It weights around 1.75 kg at take off.Control is achieved through independent actuation of outboard elevator, inboard aileron, and rudder.Sarika-2 has no horizontal tail.The power plant is a 4 cc propeller engine (OSMAX-LA 25), which uses methanol plus castor oil as fuel, with 10-15% nitromethane to boost the engine power.
Linearized state space models of lateral dynamics are developed in the stability axis [16], by assuming level flight at a constant altitude of 1000 m above the sea level (i.e., 100 m above the ground level at Bangalore) and trimming at six different operating speeds (i.e., at 16,18,20,22,24, and 26 m/sec).The state variables, x ∈ R 4 that describe lateral dynamics are sideslip angle β, roll rate p, yaw rate r, and bank angle φ.Static derivatives from the wind tunnel tests [1] are combined with the dynamic derivatives from the theoretical computation [17,18] to provide complete set of stability derivatives [3] of the lateral dynamics of Sarika-2.Control surfaces are actuated by miniature electromechanical servo systems.Experimentally measured dynamics of the servo actuator (Futaba S3101 Micro Servo) is given by δi where, i = a and r for aileron and rudder respectively.δ i is the aileron or rudder deflections in radians, and u i is the width of the pulse width modulated (PWM) command input in milliseconds.The continuous state space model is discretized at 50 Hz (to synchronize with the command PWM input received at the vehicle from radio/pilot command from ground station).The final linearized model used for the controller synthesis includes two sampling period delay states to account for computational time requirements.Hence, the final model of the plant consists of eight states (four for MAV airframe, two for actuator and two for computational delay), two control inputs, wind disturbance input, and three sensor outputs from accelerometer and rate gyros.Discretized state space model of the lateral dynamics of Sarika-2, at the central operating condition of 20 m/sec is given by [3] x p (k + 1) where v g is the wind gust component in the lateral direction, x p = β p r φ δ a δ r T , u(k) = [δ ac δ rc ] T , and y = [a y p r] T measured with respect to the aircraft body axis (a y is the lateral acceleration), and )  ( 3 e ) The stability augmentation system (SAS) is based on the feedback signals defined with respect to the stability axes.Hence, the measured variables are transformed from the body axes to stability axis using the following transformation: where α is the trim angle of attack for a level flight at design speed of the nominal plant.

Design Specifications
The closed-loop design specifications for the lateral dynamics are determined from its expected responses [19] to pilot inputs sent from the aileron and rudder joystick.The main requirement of SAS is the improvement of handling qualities summarized as in Section 3.1.
Spiral mode: minimum time to double the amplitude > 12 sec.
Note from Table 1 that the specifications for the spiral and roll modes are satisfied at all flight speeds.However, the dutch-roll response is fast with poor damping, leading to large settling time.Consequently, the closed-loop specifications are to increase the dutch-roll damping to a minimum of 0.5.

Disturbance Rejection Specification.
The standard turbulence parameters, L v and σ v [20] of the side wind gust, are modified to L v = 3 m and σ v = 5.5 m/sec 2 to take into account the worst case scenario, which occurs when all the dynamic modes of Sarika-2 are excited.The gust spectral density is evaluated as a function of cruise speed from 16 m/sec to 26 m/sec, and it is found that [3] the spectral bandwidth of gust increases with increase in speed (9.55 rad/sec at 26 m/sec).Hence, the disturbance rejection specification is as follows: minimize the sensitivity function below 0 dB for ω < 10 rad/sec.

3.3.
Sensor Noise Attenuation Specification.Experimentally, it is found that low cost sensors like rate gyros (Micro Gyro 100) and accelerometers (TAA-3804-100) have highfrequency noise content concentrated above 15 rad/sec.Therefore, to achieve high-frequency noise attenuation the specifications are as follows: obtain −40 dB/decade roll-off of the flight parameters above frequency of 15 rad/sec.

Robustness Specification.
The controller designed at the central operating condition should be robust against the varying flight conditions in order to use a single controller at different operating points, which avoids gain/controller scheduling.The controller should also be robust against the structured real-valued parameter uncertainty within the context of state space models and unstructured multiplicative uncertainties on actuator inputs at all flight conditions.Larger uncertainty levels are placed on dynamic derivatives (50%), which are obtained analytically using DATCOM [17,18], since the static derivatives (20%) obtained from the wind tunnel data are more reliable than those calculated using analytical approach.Apart from the above specifications, closed-loop system should also be robust against the maximum expected time delays that may arise due to nonlinearity and computational complexity.In addition, the control surface deflections should not exceed its full-scale deflection of ±16 degrees (±0.4 milliseconds with respect to the neutral value of 1.5 ms of PWM input).

H 2 Optimal Control Formulation
Figure 3 represents the standard H 2 control formulation given in the form of general configuration known as linear fractional transformation (LFT), or two-port block diagram.Generalized plant P g is obtained by augmenting the actual plant G p with the weighting matrices.In Figure 3, sensitivity matrix including the preamplifier gains and K is the controller to be designed.The set of all possible uncertainties Δ is grouped in to a single block-diagonal finite dimensional linear time invariant system.The input signal vector w consists of all exogenous inputs comprising plant disturbances (d, v g ), sensor noise (n), and command input (r).The output of the controller is u, and y is a vector of measurement signals that are available for online control purpose.W 1 (z), W 2 (z), and W 3 (z) are frequency dependent weighting functions on S o , T, and S i K, respectively, whose outputs are represented in a vector form, z = [z 1 z 2 z 3 ] T .Let T zw denote the resulting closed-loop transfer function from w to z.
The objective of H 2 design is to find a fixed-order, discrete, optimal dynamic controller amongst all admissible controllers that yield internally stable closed-loop system so as to minimize the norm-2 of T zw ; that is, where S o is the transfer function between the external disturbance and the output and is a good measure of disturbance rejection, which is a low-frequency phenomenon.T, on the other hand, is a good measure of high-frequency noise attenuation, defined as the closed-loop transfer function between the input and output of the plant.Thus, W 1 is chosen as a low-pass filter and W 2 as a high-pass filter.Control-input constraint function is akin to putting penalty on actuator usage.The weighting function W 3 determines the robustness characteristics of the closed-loop system to unstructured additive uncertainties; that is, W −1 3 acts as the upper bound on the controller gains (S i K).However, the crossover frequencies of S o and S i K or T (S i K/T) are critical for both robustness and performance properties, since in the crossover frequency region of robustness and performance (S o and S i K/T) measures, neither S o nor the T functions are small [21].Choosing the performance weights to optimize the desired closed-loop performance, while maintaining the robust stability in the cross over frequency region is difficult [22].
Considering the state space representation of the plant and weights as, and using the LFT theory [8], the closed-loop system with weighted cost functions are reformulated as which yields the following state-space equations: where , and y(k)∈ R p1 , In addition, (Φ, Γ) is stabilizable, (Φ, C) is detectable, and the feed-forward matrix E 3 = 0 and E 2 and D 1 are full column and row rank matrix, respectively.Equation ( 9) can be rewritten in the expanded form as The goal of the fixed-order controller design is to find an n c th order dynamic compensator K(z) for the unknown A c , B c , C c , and so as to satisfy the following two design criteria.
(2) The norm-2 of the closed-loop transfer function matrix is minimized.Objective 2 leads to the steady state quadratic performance criterion Q(z) and R(z) (i.e., Q(e jωk ) and R(e jωk )) are obtained from the weighting matrices W 1 (z), W 2 (z), and W 3 (z) [3].The controller parameters (A c , B c , C c , and D c ) which minimizes the objective function J (15) are obtained by iteratively solving the following set of four coupled modified Riccati and Lyaponv equations known as SDOPEs [3,14]: provided P, S, P, and S are nonnegative symmetric n × n matrices, rank( P) = rank( S) = rank( P S) = n c , and τ 2 = τ = ( P S)( P S) # (idempotent matrix) with The optimality exists if the steady state cost functional J, where The controller then can be computed as: for some projective factorization (G, M, H) of ( P S).

Results and Discussions
The controller is designed at the central operating point of Sarika-2 (i.e., at 20 m/sec) and is used for all flight conditions.The weighting matrices W 1 and W 2 need to be strictly proper in order to make the feed through term, E 3 zero.Following the guidelines [23] to select the weighting matrices, the final choice of the weighting matrices, W 1 , W 2 and W 3 (in discrete domain) are The weighting matrix W 1 minimizes the sensitivity function, which is a low-frequency signal.Hence, the cutoff frequency of W 1 , a low-pass filter, is selected to minimize the sensitivity within the range of the operating frequency of Sarika-2 (10 rad/sec).Weighting matrix W 2 is chosen to reduce the effect of measurement noise, which results due to the reduction of cosensitivity outside the range of the operating frequency of the vehicle (above 10 rad/sec).W 3 helps in minimizing the control effort at high-frequency region.So, it must be a high-pass filter, with a cutoff frequency of 10 rad/sec.
With the choice of the weighting matrices as indicated in (21), the order (n) of the generalized plant is 24 (4 states for MAV airframe, 2 states for actuator, 2 states for delay units, and 16 states for weighting matrices W 1 , W 2 , and W 3 ).Since the design of fixed low-order controller does not address optimal/minimal order of the controller that can meet design specifications, controllers of order 1 to 5 are designed separately and stability and performance characteristics of controllers of decreasing order are compared with the full (24th) order controller.The first column of Table 2 gives the order of controllers designed separately.Columns 2 and 3 contain the values of cost functions, (19).The first-order necessary optimality conditions are satisfied in each case, which is illustrated by the fact that [14].
The cost function is almost constant (around J = 2455) for n c = 24 and 5 to 3, which implies that by increasing the order of the controller above 3, this does not significantly improve the performance of the closed-loop system.Similarly, increase in the cost function from J = 2455 to J = 2498 by reducing the order of the controller from n c = 3 to n c = 2 implies the performance deterioration of the closed-loop system.Hence, the minimal order of the controller is 3. Fourth column of Table 2 indicates that the robustness against the additive uncertainty (S i K) −1  , remains at 1.497 and does not show any improvement by increasing the order of the controller above 3.Also, with third-order controller, the quadratic stability (Column 5 of Table 2) is assured around 125.01% of the parametric uncertainty levels in contrast to that of only 93.3%, which is obtained with second order controller.This implies that with third-order controller, the closed-loop system is capable of withstanding at least 125.0133% of the assumed plant uncertainty, without being destabilized.There exists a parameter-dependent Lyapunov function in each case, which is indicated by a negative t (for feasibility) in column 6 of Table 2. Existence of parameter-dependent Lyapunov function implies robust stability against the slowly varying uncertainties [24,25].
Figure 4 shows the comparison of the frequency responses of third-and 24th-order controllers.The frequency response remains in close neighborhood for two controllers in the frequency range of 1 to 100 rad/sec.This further substantiates the selection of third-order controller.
The six elements of transfer function matrix of the third order controller K 2×3 are given by Figure 4: Frequency response of 3rd (-) and 24th ( ...... ) order controllers.
Table 2: Simulation results.where Δ(z) = (z − 0.945)(z 2 − 0.6687z + 0.1265).The frequency responses of the transfer function from lateral acceleration a y , roll rate p, and yaw rate r to aileron and rudder input channels show wash out or lead filter characteristics.This implies that the control surfaces are active only during the transient and are unaffected when the outputs reach steady state, which is desirable.The phase lead of the controller helps in overcoming the phase lag of the low bandwidth and light weight actuator.The closed-loop dutchroll damping is calculated at different flight conditions (using the controller designed at the flight speed of 20 m/sec).As per the design specifications, the dutch-roll damping remains above 0.5 at all the flight conditions.zeros of the open-loop system limits the lower bound of the sensitivity that can be achieved.Low values of S i K at low frequencies (up to 40 rad/sec) indicate very good stability robustness properties of the closed-loop system against the additive uncertainty, Δ a .Though the upper bound of S i K increases in the frequency range beyond 40 rad/sec, it is well within the 0 dB, indicating positive gain margin.This property is preserved at all flight conditions.The singular values of T show an attenuation of −60 dB/decade beyond ω = 10 rad/sec, corroborating good noise attenuation by a factor of 1000, which is acceptable.Figure 6 gives responses of the closed-loop system and plant (aircraft) due to atmospheric turbulence.

Performance and Robustness Analysis
Turbulence input is generated by passing a zero mean and variance of 0.01 m 2 /s, band limited white noise through a forming filter [3,20].Closed-loop responses (-lines) of a y , p, r, and β in Figure 6 show a significant reduction in magnitude compared to the corresponding plant responses ( ...... lines) (attenuation of 50% on a y response, 33% on β response).In other words, the variance of a y of the closedloop system is reduced to 2.2558 m/sec 2 from 8.6635 m/sec 2 .Similarly, the variances of p, r, and β of the closedloop system reduce to 90.0325 deg/sec, 27.5604 deg/sec, and 0.3089 degrees from their corresponding values of plant response of 316.9422 deg/sec, 111.4768 deg/sec, and 1.0575 degrees respectively.

Perturbation Analysis.
The robust stability and performance of the closed-loop system at all flight conditions (using a controller designed at the nominal flight speed of 20 m/sec) are further demonstrated by using LMI-based tests [24,25].For this, affine parameter-dependent plant models are developed by assuming structured real-valued parametric uncertainties (i.e., by perturbing the stability derivatives of the vehicle) at each of the flight conditions.At 20 m/sec of cruise speed, the quadratic stability of the closed-loop system is established with 125.0133% of the prescribed uncertain parameter box.Likewise, at 16 m/sec and 26 m/sec of cruise speeds, the quadratic stability of the closed-loop system is preserved with 103.185% and 101.861% of the uncertain parameter box, respectively.For the same uncertainty levels, μ upper bound is around 0.5549, 0.6454, and 0.6745 at cruise speeds of 20, 16 and 26 m/sec, respectively.Thus, largest amount of uncertainty Δ that can be tolerated without losing stability is 1.802, 1.549, and 1.483, which is greater than the required lower bound of 1.0.

Time Response Study.
Roll rate command is applied to aileron control stick in the form of pulse width modulated signal given in the units of milliseconds (with respect to the neutral or bias value of 1.5 msec, which corresponds to the zero deflection of the aileron control surface).In the simulation study, a 20 msec delay is included at the input of the aileron and rudder, which accounts for the computational delays.A wideband sensor noise of zero-mean and variance of 0.005 volts is introduced in the simulation.At first, the aircraft is trimmed for straight and level flight at an altitude of 1000 m above the sea level (i.e., 100 m above the ground level at Bangalore).A positive pulse of two-second duration and an amplitude of 0.1 msec (with respect to the  nominal value of 1.5 msec) corresponding to −3.84 degree aileron deflection is applied to the aileron channel at t = 1 sec.This input is followed by a negative pulse of two second duration and amplitude of 0.1 msec, which corresponds to a 3.84 degree aileron deflection.This input pattern is equivalent of moving the aileron channel joystick from its neutral point to one side then to the other side and back to the neutral point.Simulation study is presented for the three models corresponding to the cruise speeds of 16, 20, and 26 m/sec.give the time responses of the closedloop system to the above-mentioned command input.For the better appreciation of the performance robustness of the closed-loop system, the time responses are also simulated by perturbing the plant matrices (by 50% and 20% on dynamic and static stability derivatives, resp.).In Figures 7-9, the response plots up to 15 sec correspond to the unperturbed (nominal) plant whereas plots for time t > 15 sec correspond to the perturbed plant.Though the responses of the perturbed plant are highly oscillatory, the closed-loop system responses of both perturbed and nominal plants settle down relatively faster than that of uncontrolled aircraft responses.Clearly, the fixed gain controller robustly stabilizes all the nominal and perturbed plants at the three cruise speeds, whereas the perturbed plant response (at 16 m/sec of flight speed) diverges leading to instability.The instability of the perturbed plant is due to the shift of the aerodynamic centre ahead of the centre of gravity of the aircraft.In addition, gust disturbance and sensor noise are rejected at all flight conditions.The closed-loop system responses of both a y and β for nominal and perturbed plant are appreciably attenuated.Further, the closed-loop responses of p and r are well damped with a fast settling time of 7 sec.The fast settling and well-damped responses for both nominal and perturbed plant models at all flight conditions, with the fixed gain controller, demonstrate the robust performance against the parameter variation.Control surface deflections in Figure 9 show that deflections are well within its upper bounds of ±16 degrees when the PWM command signal reaches its maximum value of ±0.4 msec.For the given positive aileron deflection, note that the rudder deflections are negative by virtue of which rudder coordinates the turn avoiding adverse yaw effects.Accelerometer: 500 mv/g (with a bias of 2.5 volts).Hence, the electrical output of sensors are simulated (sent out through digital to analog converter, DAC of DS1104), according to the relation,

Real-Time Hardware-in-the-Loop-Validation of the Controller
V eq p or r = 0.063603 × p or r + V offset p or r , V eq a y = 0.05 × a y + V offset a y . (23)

Controller Implementation and Validation.
The control law realization on FIC comprises four main routines that is: (1) initialization routines (2) delay routine to erase the flash memory in order to store new set of flight data (3) sensor Calibration routines, and (4) interrupt routines.Owing to the requirement of updating the servos for every 20 msec, entire task scheduling (Figure 11) is repeated for every 20 msec.
In order to meet the critical requirement of updating servo position for every 20 msec, a software timer period interrupt, which sequences the four functions (data acquisition, PWM capture, control law calculation, and PWM generation), is enabled.Software capture interrupt is enabled so as to receive the latest pilot command inputs from the radio-controlled transmitter.An external hardware interrupt XINT2, which has the highest priority, is also enabled that can momentarily halt the control law calculation and data acquisition.XINT2 interrupt is used to retrieve the flight data from the flash memory to the personal computer.As shown in Figure 11, processor completes the entire task in 8.18 msec and waits for the period interrupt to start the next cycle.Hence, there will not be any timing mismatch or clash between the PWM signals sent from the transmitter and from the controller.
The control law coded on FIC is validated using HILS experimental setup, which provides a real flight environment to the controller.FIC receives the real-time hardware in the loop simulated sensor signals (given in ( 23)) from DAC unit of dSPACE1104 RTI/RTW and PWM signals (which is transmitted from joystick controller by the ground pilot) from the RF receiver, Futaba R136F.Since the inputs to the controller are in volts (from the sensors) and the outputs needs to be in milliseconds to drive the actuators, a relation (or conversion factor) between the voltage to PWM signal width is found experimentally as PWM signal width = V signal − V offset × 1.18 msec. ( The FIC continuously receives the analog signals from dSPACE 1104 and converts it into an equivalent PWM signals.On the basis of these two inputs, controller outputs are generated and are feedback to the simulated actuators through the capture unit of dSPACE1104 RTI/RTW.The real-time command signals received by the radio frequency receiver and the emulated sensor signals from the HILS (corresponding to the flight speed of 20 m/sec) are plotted in Figure 12.The aileron input is a doublet of −0.1 to 0.1 ms (with respect to the neutral value of 1.5 msec, i.e., ±3.84 degree aileron deflection).The rudder command is held at its neutral position.The aircraft response shows a roll rate varying from −0.04 volts (≈−36 degrees/sec) to 0.02 volts (≈18 degrees/sec).Therefore, the aileron input of −0.4 msec, with respect to the neutral position, corresponds to a maximum roll rate of −144 deg/sec, while a 0.4 msec aileron input corresponds to a maximum of 72 degrees/sec.Similarly, yaw rate response varies between a maximum of 0.01 volts (≈9 degrees/sec) to −0.004 volts (≈−4 degrees/sec).The lateral acceleration varies between ±0.16 volts (≈±0.3 g), implying a maximum of 1.2 g excursion when the input is ±0. 4 ms with respect to the neutral position.
Comparison between the actual and expected output of the controller at 20 m/sec of cruise speed is shown in Figure 13.The actual outputs are obtained from the FIC, and the expected outputs are obtained from the simulation using SIMULINK tools.A delay of 0.1 sec is noticed between the actual and expected output of the controller, which is due to the transportation delay unit introduced during simulation (in dSPACE 1104).However, this delay will not occur in reality.On the aileron channel, the actual output shows a small offset of ±0.01 msec with respect to that of simulated output.On the other hand, the mismatch on rudder channel is almost zero.In real applications, a 0.01 msec of offset in PWM signal on the aileron channel gives a disparity of 0.4 degree of aileron deflection.However, since the controller is robust, this mismatch is acceptable.

Conclusions
Design and development of a discrete fixed-order robust H 2 flight stabilization system for microair vehicle, named Sarika-2, is presented.This paper illustrates the design of a robust fixed-order H 2 -optimal controller using frequencydependent weighting functions, on the basis of strengthened discrete optimal projection equations.The reduced fixedorder H 2 controller, designed by a direct single-step procedure, ensures both stability and optimality of the closedloop system.The controller also imparts robust performance against 50% and 20% parametric uncertainties of the dynamic and static stability derivatives.The perturbation analysis also demonstrates that it is possible to stabilize an unstable perturbed plant by a controller designed for a single plant.The washout characteristic of feedback loops makes control activity zero during steady state operation.The controller allows the wing to autolevel immediately after execution of coordinated turn or withdrawal of side wind gust input, which is beneficial for reconnaissance missions.Time responses of the closed-loop simulation, using realtime hardware in the loop simulation experimental setup, match well with the responses of corresponding offline simulation.Thus, the robust fixed-order H 2 controller implemented on flight instrumentation computer can be successfully used for the flight control of Sarika-2 microair vehicle.

Figure 2 :
Figure 2: Standard representation for H 2 design and analysis.
Plots of the singular values of S o , S i K and T (6) with a thirdorder controller at three different flight speeds (16 m/sec, 20 m/sec and 26 m/sec) are shown in Figure5.Singular values of S o for the lateral acceleration, roll rate, and yaw rate loops show slight deviation from one another at low frequencies (below 8 rad/sec), having a magnitude in the neighborhood of 0 dB in the negative side.Larger attenuation of the singular values of the yaw rate compared to that of the lateral acceleration and roll rate indicates that among the three outputs, yaw rate and hence beta response is least affected by the output disturbances.The nonminimum phase

Figure 7 :
Figure 7: Responses of a y and p of the nominal and perturbed plant (solid line: closed-loop response, dotted line: plant response).

Figure 8 :
Figure 8: Responses of r and β of the nominal and perturbed plant (solid line: closed-loop response, dotted line: plant response).

Figure 9 :
Figure 9: Responses of δ a and δ r of the nominal and perturbed plant (solid line: closed-loop response, dotted line: plant response).

Figure 12 :
Figure 12: Command input, controller output and HILS responses of a y , p, and r.

Figures 7 , 8 ,
Figures 7,8,and 9 give the time responses of the closedloop system to the above-mentioned command input.For the better appreciation of the performance robustness of the closed-loop system, the time responses are also simulated by perturbing the plant matrices (by 50% and 20% on dynamic and static stability derivatives, resp.).In Figures7-9, the response plots up to 15 sec correspond to the unperturbed (nominal) plant whereas plots for time t > 15 sec correspond to the perturbed plant.Though the responses of the perturbed plant are highly oscillatory, the closed-loop system responses of both perturbed and nominal plants settle down relatively faster than that of uncontrolled aircraft responses.Clearly, the fixed gain controller robustly stabilizes all the nominal and perturbed plants at the three cruise speeds, whereas the perturbed plant response (at 16 m/sec of flight speed) diverges leading to instability.The instability of the perturbed plant is due to the shift of the aerodynamic centre ahead of the centre of gravity of the aircraft.In addition, gust disturbance and sensor noise are rejected at all flight conditions.The closed-loop system responses of both a y and β for nominal and perturbed plant are appreciably attenuated.Further, the closed-loop responses of p and r are well damped with a fast settling time of 7 sec.The fast settling and well-damped responses for both nominal and perturbed plant models at all flight conditions, with the fixed gain controller, demonstrate the robust performance against the parameter variation.Control surface deflections in Figure9show that deflections are well within its upper bounds of ±16 degrees when the PWM command signal reaches its maximum value of ±0.4 msec.For the given positive aileron deflection, note that the rudder deflections are negative by

Table 1 :
Plant poles at different operating points.
GHz with dSPACE DS1104RTI/ RTW.The DS1104 is a complete real-time control system which is based on a Power PC 603 floating-point processor running at 250 MHz.The constitutive building blocks of the HILS facility or setup are given in Figure10.The lateral flight dynamic model, running on the desktop computer, calculates