- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Article Processing Charges ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Recently Accepted Articles ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents

Journal of Control Science and Engineering

VolumeΒ 2011Β (2011), Article IDΒ 594086, 15 pages

http://dx.doi.org/10.1155/2011/594086

## Real-Time Fixed-Order Lateral Controller for Micro Air Vehicle

^{1}Department of Instrumentation Technology, Dr. Ambedkar Institute of Technology (AIT), Bangalore 560056, India^{2}Department of Aerospace Engineering, Indian Institute of Science, Bangalore 560012, India

Received 26 April 2011; Accepted 6 September 2011

Academic Editor: OnurΒ Toker

Copyright Β© 2011 Meenakshi M. and M. Seetharama Bhat. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

This paper presents the design and development of a fixed low-order, robust *H*_{2} 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 *H*_{2}-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.

#### 1. 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 joystick-driven 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β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 performance level of a plant is often a more realistic indication of its real-life performance [8β10] as compared to the more conservative -norm [4β7]. Robust controllers as well as other robust controllers like *ΞΌ* [11] and [4β7] provide systematic procedures for obtaining controllers that meet performance objectives and guaranteed robustness against model uncertainty and unmeasured disturbances. In *ΞΌ* synthesis, and 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 fixed-order control is an attractive option among the several robust multivariable methods for controller design, since the norm is the more intuitive measure of the performance [8, 10]. Fixed low-order 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 optimal controller problem can be posed as 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 controller at the design stage itself. A standard robust 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 ββ and ββ are exogenous inputs and performance variables respectively. ββ is the measured variable, and ββ is the control input. is the generalized plant representing the actual plant and all weighting functions. represents the sensor dynamics including preamplifier gains, and 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 , where is the coefficient matrix of the LLFT and upper linear fractional transformation (ULFT) on , where 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 to can be given by The minimization of the norm of the transfer function from to , that is, over all realizable controllers , constitutes the control problem. The elements of the generalized plant are obtained by augmenting the frequency-dependent weighting functions and corresponding output vector into lower LFT form.

The present paper is concerned solely with the design, analysis, and validation of robust fixed-order 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 , complementary sensitivity function , and control sensitivity (: 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.

#### 2. 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, that describe lateral dynamics are sideslip angle , roll rate , yaw rate , 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 where, and for aileron and rudder respectively. is the aileron or rudder deflections in radians, and 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] where is the wind gust component in the lateral direction, , , and measured with respect to the aircraft body axis ( is the lateral acceleration), and 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.

#### 3. 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.

##### 3.1. Level 1 Flying Quality Requirements [19]

Dutch roll damping ratio β₯ 0.5.Roll subsidence time constant < 1βsec.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.

##### 3.2. Disturbance Rejection Specification

The standard turbulence parameters, and [20] of the side wind gust, are modified to βm and β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 β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 high-frequency 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.

##### 3.4. 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).

#### 4. βOptimal Control Formulation

Figure 3 represents the standard control formulation given in the form of general configuration known as linear fractional transformation (LFT), or two-port block diagram. Generalized plant is obtained by augmenting the actual plant with the weighting matrices. In Figure 3, represents the sensor sensitivity matrix including the preamplifier gains and 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 consists of all exogenous inputs comprising plant disturbances , sensor noise (), and command input (). The output of the controller is , and is a vector of measurement signals that are available for online control purpose. , and are frequency dependent weighting functions on , , and , respectively, whose outputs are represented in a vector form, . Let denote the resulting closed-loop transfer function from to .

The objective of 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 ; that is, where 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. , 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, is chosen as a low-pass filter and as a high-pass filter. Control-input constraint function is akin to putting penalty on actuator usage. The weighting function determines the robustness characteristics of the closed-loop system to unstructured additive uncertainties; that is, acts as the upper bound on the controller gains . However, the crossover frequencies of and or () are critical for both robustness and performance properties, since in the crossover frequency region of robustness and performance ( and ) measures, neither nor the 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 , In addition, is stabilizable, is detectable, and the feed-forward matrix and and 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 anth order dynamic compensator () for the unknown , , , and so as to satisfy the following two design criteria.

(1) The closed-loop system corresponding to (10)-(11) given by where is asymptotically stable.

(2) The norm-2 of the closed-loop transfer function matrix is minimized. Objective 2 leads to the steady state quadratic performance criterion and (i.e., and ) are obtained from the weighting matrices , , and [3]. The controller parameters which minimizes the objective function (15) are obtained by iteratively solving the following set of four coupled modified Riccati and Lyaponv equations known as SDOPEs [3, 14]: provided , , , and are nonnegative symmetric matrices, rank = rank = rank = , and (idempotent matrix) with The optimality exists if the steady state cost functional , where The controller then can be computed as: for some projective factorization of .

#### 5. 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 and need to be strictly proper in order to make the feed through term, zero. Following the guidelines [23] to select the weighting matrices, the final choice of the weighting matrices, , and (in discrete domain) are

The weighting matrix minimizes the sensitivity function, which is a low-frequency signal. Hence, the cutoff frequency of , 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 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). 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 () 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 , and ). 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, and computed using (19). The first-order necessary optimality conditions are satisfied in each case, which is illustrated by the fact that and are nearly equal [14].

The cost function is almost constant (around ) for = 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 to by reducing the order of the controller from to 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 _{, } 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 (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 are given by where . The frequency responses of the transfer function from lateral acceleration , roll rate , and yaw rate 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 dutch-roll 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.

#### 6. Performance and Robustness Analysis

Plots of the singular values of , and (6) with a third-order controller at three different flight speeds (16βm/sec, 20βm/sec and 26βm/sec) are shown in Figure 5.

Singular values of 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 zeros of the open-loop system limits the lower bound of the sensitivity that can be achieved**. **Low values of at low frequencies (up to 40βrad/sec) indicate very good stability robustness properties of the closed-loop system against the additive uncertainty, . Though the upper bound of 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 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.

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 , , , and *Ξ²* in Figure 6 show a significant reduction in magnitude compared to the corresponding plant responses (^{β¦β¦} lines) (attenuation of 50% on response, 33% on *Ξ²* response). In other words, the variance of of the closed-loop system is reduced to 2.2558βm/sec^{2} from 8.6635βm/sec^{2}. Similarly, the variances of , , and *Ξ²* of the closed-loop 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.

##### 6.1. 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.

##### 6.2. 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 . 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.

Figures 7, 8, and 9 give the time responses of the closed-loop 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 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 and *Ξ²* for nominal and perturbed plant are appreciably attenuated. Further, the closed-loop responses of and 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 degrees when the PWM command signal reaches its maximum value of β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.

#### 7. Real-Time Hardware-in-the-Loop-Validation of the Controller

Experimental setup of hardware-in-loop-simulation (HILS) includes a simulation computer and onboard computer named flight instrumentation computer (FIC) built with two digital signal processors (DSPs): TMS320LF2407 and TMS320VC33 from Texas Instruments, USA. Onboard computer hardware (of size 139.7βmm Γ 50.8βmm and weight 55 grams) has been developed in-house. The integration of an on board computer, capable of real-time implementation of flight control, within Sarika-2 is a technically challenging task owing to the stringent constraints on cost, size, weight, and power limitations. The FIC has additional onboard program (256βKbytes) and data (4βMbytes) memories. FIC is capable of acquiring data (with 10βHz low-pass filter and necessary signal conditioning with a gain of 20 on rate channel and a unity gain on acceleration channel), internal data logging, executing multi-input multi-output discrete control logic in real time, and generation and capturing of PWM signals.

The simulation computer is Pentium 4 PC (Windows 2000βOS) operating at 3.4β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 Figure 10. The lateral flight dynamic model, running on the desktop computer, calculates the vehicleβs roll rate, yaw rate, and lateral acceleration response, and DS1104 system subsequently generates the equivalent analog sensor signal in volts. Sensitivities of MEMS-based sensors used for Sarika-2 are (1) rate gyros: 1.11βmv/deg/s (with an offset voltage of 2.25 volts) and (2) 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,

##### 7.1. 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 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 volts (*β*), implying a maximum of 1.2βg excursion when the input is 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 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.

#### 8. Conclusions

Design and development of a discrete fixed-order robust flight stabilization system for microair vehicle, named Sarika-2, is presented. This paper illustrates the design of a robust fixed-order βoptimal controller using frequency-dependent weighting functions, on the basis of strengthened discrete optimal projection equations. The reduced fixed-order controller, designed by a direct single-step procedure, ensures both stability and optimality of the closed-loop 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 real-time hardware in the loop simulation experimental setup, match well with the responses of corresponding offline simulation. Thus, the robust fixed-order controller implemented on flight instrumentation computer can be successfully used for the flight control of Sarika-2 microair vehicle.

#### References

- B. R. Srinivasa Rao, V. Surendranath, and H. R. S. Prasanna, βWind tunnel test results of SARIKA airplane,β Tech. Rep. AE/WT/IRR/16, Department of Aerospace Engineering, Indian Institute of Science, Bangalore, India, 2001.
- B. M. Seetharama, M. Meenakshi, S. P. Govindaraju, et al., βDesign and development of flight control and instrumentation for micro air vehicle,β Tech. Rep. ARDB/MSB/TR-99-1050, Department of Aerospace Engineering, Indian Institute of Science, Bangalore, India, 2002.
- M. Meenakshi,
*Design and real time validation of discrete, fixed order, robust, H*, Ph.D. thesis, Indian Institute of Science, Bangalore, India, 2005._{2}controller for micro air vehicle - W. Gawronski, JPL, C. A. Pasadena, et al., βFrequency weighting for the H-infinity and H
_{2}control design of flexible structures,β*Journal of Guidance, Control, and Dynamics*, vol. 21, no. 4, pp. 664β666, 1998. - L. C. Marco, P. George, C. M. William, and K. Takeo, βDesign and flight testing of a high-bandwidth ${\text{H}}_{\infty}$ loop shaping controller for a robotic helicopter,β Tech. Rep. 4836, AIAA, 2002.
- A. A. Stoorvogel, βThe singular ${\text{H}}_{\infty}$ control problem with dynamic measurement feedback,β
*SIAM Journal on Control and Optimization*, vol. 29, no. 1, pp. 160β184, 1991. View at Scopus - R. A. Hyde and K. Glover, βThe application of scheduled ${\text{H}}_{\infty}$ controllers to a VSTOL aircraft,β
*IEEE Transactions on Automatic Control*, vol. 38, no. 7, pp. 1021β1039, 1993. View at Publisher Β· View at Google Scholar Β· View at MathSciNet Β· View at Scopus - M. Green and D. J. N. Limebeer,
*Linear Robust Control, Prentice Hall*, Englewood Cliffs, NJ, USA, 1995. - K.-C. Goh and F. Wu, βDuality and basis functions for Robust H
_{2}-performance analysis,β*Automatica*, vol. 33, no. 11, pp. 1949β1959, 1997. View at Scopus - D. Banjerdpongchai and J. P. How, βParametric robust H
_{2}control design using iterative linear matrix inequalities synthesis,β*Journal of Guidance, Control, and Dynamics*, vol. 23, no. 1, pp. 138β142, 2000. View at Scopus - D. G. Bates and I. Postlethwaite, βThe structured singular value and
*μ*- analysis,β in*Advanced Techniques for Clearance of Flight Control Laws*, C. Fielding, A. Varga, S. Bennani, and M. Selier, Eds., chapter 3, pp. 37β55, Springer, Heidelberg, Germany, 2002. - N. Kannan and M. Seetharama Bhat, βLongitudinal ${\text{H}}_{\infty}$ stability augmentation system for a thrust-vectored unmanned aircraft,β
*Journal of Guidance, Control, and Dynamics*, vol. 28, no. 6, pp. 1240β1250, 2005. View at Scopus - Y. Liu and B. D. O. Anderson, βController reduction: concepts and approaches,β
*IEEE Transactions on Automatic Control*, vol. 34, no. 8, pp. 802β812, 1989. View at Publisher Β· View at Google Scholar Β· View at MathSciNet Β· View at Scopus - L. G. van Willigenburg and W. L. de Koning, βNumerical algorithms and issues concerning the discrete-time optimal projection equations,β
*European Journal of Control*, vol. 6, no. 1, pp. 93β110, 2001. View at Scopus - D. S. Bernstein, L. D. Davis, and D. C. Hyland, βThe optimal projection equations for reduced-order discrete-time modeling, estimation and control,β
*Journal of Guidance, Control, and Dynamics*, vol. 9, no. 3, pp. 288β293, 1986. View at Scopus - J. Roskam,
*Airplane Design Part 6, Preliminary Calculation of Aerodynamic, Thrust and Power Characteristics*, Roskam Aviation and Engineering Corporation, Ottawa, Kan, USA, 1990. - J. Roskam,
*Flight Dynamics Part 4*, Roskam Aviation and Engineering Corporation, Ottawa, Kan, USA, 1971. - βErrata on Jan Roskam, airplane Design Part VI, and Revised August 12, 2003β.
- U.S. Military Handbook MIL-HDBK-1797, 19, 1997.
- B. L. Stevens and F. Lewis,
*Aircraft Control and Simulation*, Wiley Interscience Publications, New York, NY, USA, 1992. - H. Kwakernaak, βRobust control and ${\text{H}}_{\infty}$-optimization—tutorial paper,β
*Automatica*, vol. 29, no. 2, pp. 255β273, 1993. View at Publisher Β· View at Google Scholar Β· View at MathSciNet Β· View at Scopus - G. J. Balas and J. C. Doyle, βRobustness and performance tradeoffs in control design for flexible structures,β in
*Proceedings of the 29th IEEE Conference on Decision and Control*, vol. 6, pp. 2999β3010, Honolulu, Hawaii, December 1990. View at Scopus - J. Hu, C. Bohn, and H. R. Wu, βSystematic ${\text{H}}_{\infty}$ weighting function selection and its application to the real-time control of a vertical take-off aircraft,β
*Control Engineering Practice*, vol. 8, no. 8, pp. 241β252, 2000. View at Scopus - E. Feron, A. Pierre, and G. Pascal, βAnalysis and synthesis of robust control systems via parameter-dependent Lyapunov functions,β
*IEEE Transactions on Automatic Control*, vol. 41, no. 7, pp. 1041β1046, 1996. View at Scopus - G. Pascal, N. Arkadi, J. L. Alan, and C. Mahmoud,
*LMI Control Toolbox, for Use with MATLAB*, Mathworks, 1995.