Design and real time implementation of nonlinear sliding surface with the application of supertwisting algorithm in nonlinear sliding mode control for twin rotor MIMO system
Lisy E. R.^{1} , M. Nandakumar^{2} , Anasraj R.^{3}
^{1, 2, 3}Government Engineering College, Thrissur, Kerala, India
^{1}Corresponding author
Journal of Vibroengineering, Vol. 21, Issue 8, 2019, p. 21592179.
https://doi.org/10.21595/jve.2019.20531
Received 18 January 2019; received in revised form 23 August 2019; accepted 16 September 2019; published 31 December 2019
JVE Conferences
This paper proposes the design of a nonlinear sliding surface based on the principle of variable damping concept for 2degree of freedom Twin Rotor Multiple input Multiple output System (2dof TRMS). The implementation of the designed nonlinear sliding surface in real time is demonstrated. Supertwisting algorithm is applied in nonlinear sliding mode control. The nonlinear sliding surface enables the system trajectory to be highly robust and with the application of supertwisting algorithm in nonlinear sliding mode controller (SMC), the designed controller has minimized the problem of chattering considerably. The system is modeled in such a way that it includes all nonlinearities and coupling effects. A decoupler is designed to nullify the coupling effect. This scheme is capable of reducing both the settling time and peak overshoot simultaneously for 2dof TRMS. The scheme also reduces the chattering. The proposed method is compared with the design using PID controller. The applicability of the designed nonlinear sliding surface and nonlinear SMC with supertwisting algorithm have been tested both in simulation and in real time. This research paper is mainly dealing with the modeling of Twin rotor MIMO system by including all nonlinearities and coupling effects, the decoupler design for 2dof TRMS, the design of nonlinear sliding surface for 2dof TRMS and application of supertwisting algorithm in nonlinear sliding mode control for 2dof TRMS.
 Modeling of highly nonlinear 2dof TRMS system by incorporating all nonlinearities
 Increase in robustness with the application of nonlinear sliding surface based on variable damping ratio concept in 2dof TRMS system
 Reduction in chattering in the pitch and yaw angle position tracking with the application of supertwisting algorithm in nonlinear sliding mode control
 Simultaneous reduction in both settling time and peak over shoot in the pitch and yaw angle position tracking with the use of nonlinear sliding surface based on variable damping ratio concept
Keywords: 2degree of freedom twin rotor MIMO system, nonlinear sliding surface, nonlinear sliding mode controller, precompensator, supertwisting controller.
1. Introduction
The 2degree of freedom Twin Rotor MIMO System (2dof TRMS) is a set up designed for carrying out control experiments in laboratories. The behavior of TRMS resembles to that of a helicopter whose performance is described as highly unstable nonlinear dynamics with heavy crosscoupling effects [1]. Hence controlling of TRMS System always poses a challenge.
PID Controller is one of the control algorithms mostly used in 2dof TRMS [24]. The drawbacks of the PID controller design are the lack of specific methods to tune proportional, integral and derivative gains of PID controllers for 2dof TRMS, the existence of high overshoot and the existence of high settling time. In literature [5, 6], the authors have proposed inventive methods to tune the proportional, integral and derivative gains of PID controllers. But there exists a small percentage of overshoot and high settling time. These drawbacks are claimed to have been eliminated by using sliding mode control (SMC) as presented in [7]. Although they could attain a good tracking performance with less overshoot, the scheme failed to reduce settling time because of the selection of linear switching surface for a nonlinear system. The abovementioned high overshoot along with the reduced settling time is achieved in [8] using fuzzy sliding mode controller for 2dof TRMS. Even if 2dof TRMS with fuzzy sliding mode controller alleviates chattering effects and remain robust to external disturbances, it has the drawback of increased number of membership functions. In [9], the authors have developed TS fuzzy modelbased controller. The authors in [10] have proposed a method of evolving nuerofuzzy network with fast learning adaptive procedure. In literature [11], the authors have designed robust HInfinity algorithm. The state feedback linearization controller by defining optimal sliding surface have been designed in [12]. Although it shows good performance, it suffers from high settling time in real time application. As the accuracy in the improvement of the system performance depends on the methods upon which the surface is defined, the control engineers adopted alternative methods. In [13], the authors proposed an adaptive second order sliding mode controller where the coupling effect factor between pitch and yaw is taken as uncertainty. Similarly, in [14] also the coupling effect factor is taken as uncertainty. The authors in [15] claim that the control action could reduce the coupling effect. But when the 2dof TRMS system is analyzed, it is to be ensured that coupling effect of the system is nullified. In literature [16], although the authors nullified the coupling effect, they could not attain improvement in transient performance of 2dof TRMS.
In this paper, the system has been modeled by including all nonlinearities and coupling effects. To reduce the crosscoupling effects, a decoupler is designed such that one reference signal, affects only one physical output. Highly robust nonlinear sliding surface and nonlinear sliding mode control with supertwisting algorithm are designed for 2dof TRMS. The designed nonlinear sliding surface based on the principle of variable damping concept [17] is applied in 2dof TRMS. The damping ratio is varied from initial low value to high value. The initial low value of damping leads to quick response and high value of damping thereafter leads to less settling time [17]. Sliding mode control always produces chattering. Chattering in the control signal of 2dof TRMS produce heat and mechanical vibration of the system which eventually results into mechanical damage in real time application. Therefore, the Sliding mode controller (SMC) is designed using nonlinear SMC with supertwisting control to reduce chattering. Linear portion of the nonlinear sliding surface is designed using the optimal sliding surface design procedure [18] and the super twisting controller available in [19] is introduced in the nonlinear SMC.
In Section 2, dynamics of 2dof TRMS is explained. Modeling of 2dof TRMS is presented in Section 3. Section 4 gives description of decoupler design. The nonlinear surface design procedure is dealt in Section 5. Section 6 explains the nonlinear sliding mode controller with the supertwisting algorithm applied to 2dof TRMS. The simulation results of these decoupled 2dof TRMS are presented in Section 7. In Section 8, the real time implementation results are presented. Finally concluding remarks are presented in Section 9.
2. Dynamics of 2dof TRMS
Fig. 1 shows the Twin Rotor MIMO (2dof TRMS) system consisting of two rotors; one main rotor and the other tail rotor [16]. The support stiffness of the TRMS is ignored as the considered system is a rigid one. [20] The main rotor produces a lifting force allowing the beam to rise vertically while the tail rotor is used to make the beam to turn left and right around the horizontal axis. The dynamics of 2dof TRMS in [1, 16] is once again provided below for quick reference.
The moment due to vertical movement of 2dof TRMS consist of moment due to pitch angle acceleration, moment due to nonlinear characteristic ${M}_{1}$, moment due to gravity ${M}_{FG}$, moment due to frictional force ${M}_{B\psi}$ and gyroscopic moment ${M}_{G}$. The following equation shows the relation between these variables:
The moment due to nonlinear static characteristic ${M}_{1}$ is related with the torque ${\tau}_{1}$ developed in the main rotor as:
where ${a}_{1}$ and ${b}_{1}$ are constants. The relation between gravity moment ${M}_{FG}$ and pitch angle $\psi $ is given by:
The relation between frictional force moment ${M}_{B\psi}$, pitch angle velocity $\dot{\psi}$ and yaw angle velocity $\dot{\varphi}$ is given by:
The relation between gyroscopic moment ${M}_{G}$ and yaw angle velocity $\dot{\varphi}$ is given by:
Similarly, the moment due to horizontal movement is given as:
Fig. 1. TRMS System
Here $\ddot{\varphi}$ represents the yaw angle acceleration, ${M}_{2}$ represents the moment due to nonlinear static characteristic of tail rotor, ${M}_{B\varphi}$ represents frictional force moment and ${M}_{R}$ is crossreaction moment. The moment due to nonlinear static characteristic of tail rotor ${M}_{2}$ is related with torque ${\tau}_{2}$ developed in the tail rotor as:
where ${a}_{2}$ and ${b}_{2}$ are constants. The relation between frictional force moment ${M}_{B\varphi}$ and yaw angle velocity is given by:
The following equation approximate the crossreaction moment:
where ${T}_{P}$ and ${T}_{O}$ represent the crossreaction moment parameters. The modeling of 2dofTRMS is done by assuming the operating point as origin. The state space modeling of 2dof TRMS is dealt in Section 3.
3. State space modeling of 2dof TRMS
There are two types of modeling namely transfer function modeling and state space modeling. Since the system is MIMO and highly nonlinear the state space modeling is designed first and the transfer function model is calculated from the state space model. From the above set of Eqs. (19), it is evident that the system is nonlinear. The state model consists of state differential equation and output equation.
The state differential equation is given by:
The output equation is given by:
where $EX+KU$ represents the linear part of the system in state space representation and $N\left(X\right)$ represents nonlinear part. The matrix $E$ represents the system matrix, $K$ accounts for the input distribution matrix, $X$ is the state vector, $y$ is the output vector and $U$ is the control input. $U$ is given by: $U=\left\{\begin{array}{l}{u}_{1}\\ {u}_{2}\end{array}\right\}$, where ${u}_{1}$ is the input (control) voltage applied to main rotor and ${u}_{2}$ is the input (control) voltage applied to tail rotor. The maximum and minimum input (control) voltages for both main rotors and tail rotors are between –2.5 V and +2.5 V as per the specification in TRMS manual [1].
The state vector $X$ of 2dof TRMS is given by:
where: $\psi $: pitch angle of 2dof TRMS; $\varphi $: yaw angle of 2dof TRMS; $\dot{\psi}$: pitch angle velocity; $\dot{\varphi}$: yaw angle velocity; ${\tau}_{1}$: torque developed in the main rotor; ${\tau}_{2}$: torque developed in the tail rotor.
The output vector $y$ is given by:
The derivative of the state vector $X$ is give is given by:
The values of $\dot{\psi}$, $\ddot{\psi}$, $\dot{\varphi}$, $\ddot{\varphi}$, ${\dot{\tau}}_{1}$, ${\dot{\tau}}_{2}$ in terms of $\psi $, $\dot{\psi}$, $\varphi $, $\dot{\varphi}$, ${\tau}_{1}$, ${\tau}_{2}$ can be calculated as follows.
The set of Eqs. (19) are rearranged and divided into linear and nonlinear part. The derivative of ($\psi $) is given by:
Eq. (1) is rearranged as follows:
Substituting all available values from Table 1, $\ddot{\psi}$ becomes:
The derivative of ($\varphi $) is given by:
Eq. (6) can be rearranged as:
Substituting all available values from Table 1, $\ddot{\varphi}$ becomes:
The time derivative of torque developed in main rotor is given by:
where ${T}_{10}$, ${T}_{11}$ are the main rotor parameters. ${k}_{1}$ is the main rotor gain [1].
Substituting all available values from Table 1:
The time derivative of torque developed in tail rotor is given by:
where ${T}_{20}$, ${T}_{21}$, ${T}_{22}$ are the tail rotor parameters. ${k}_{2}$ is the tail rotor gain [1].
Substituting all available values from Table 1:
The values of matrices $E$, $K$, $H$ and $I$ can be calculated from Eqs. (15)(24). The values of the above mentioned matrices are calculated as:
The nonlinear part of $\dot{X}$ related with pitch angle acceleration $\ddot{\psi}$ is represented by ${n}_{1}\left(x\right)$. The nonlinear part of $\dot{X}$ related with yaw angle acceleration $\ddot{\varphi}$ is represented by ${n}_{2}\left(x\right)$:
Taking the above set of Eqs. (29)(30) and substituting all the values for the parameters of 2dof TRMS as per Table 1:
The transfer function of linear part of the above system is calculated using the equation $y\left(s\right)/U\left(s\right)=G\left(s\right)=\left[H\right(sIE{)}^{1}K+I]$ in polezero form is given by:
Table 1. TRMS parameters
Symbol

Parameter

Values

${I}_{1}$

Moment of inertia of vertical rotor

6.8×10^{2} kgm^{2}

${I}_{2}$

Moment of inertia of horizontal rotor

2×10^{2} kgm^{2}

${a}_{1}$

Static characteristic parameter

0.0135

${b}_{1}$

Static characteristic parameter

0.0924

${a}_{2}$

Static characteristic parameter

0.02

${b}_{2}$

Static characteristic parameter

0.09

${M}_{g}$

Gravity momentum

0.32 Nm

${B}_{1\psi}\psi $

Friction momentum parameter

6×10^{3} Nm/rad

${B}_{2\psi}\psi $

Friction momentum parameter

1×10^{1} Nm/rad

${B}_{1\varphi}$

Friction momentum parameter

1×10^{2} Nm/rad

${K}_{gy}$

Gyroscopic momentum parameter

0.05 sec/rad

${k}_{1}$

Motor 1 gain

1.1

${k}_{2}$

Motor 2 gain

0.8

${T}_{11}$

Motor 1 denominator parameter

1.1 sec

${T}_{10}$

Motor 1 denominator parameter

1

${T}_{21}$

Motor 1 denominator parameter

1

${T}_{20}$

Motor 1 denominator parameter

1

${T}_{P}$

Cross reaction momentum parameter

2

${T}_{O}$

Crossreaction momentum parameter

3.5

${k}_{c}$

Crossreaction momentum gain

–0.2

It can be seen that the system is modeled by including all nonlinearities and coupling effects. The design of decoupler is to be done for nullifying the coupling effect. Also, the transfer function of decoupled system is to be find out. These are discussed in Section 4.
4. Design of decoupler for 2dof TRMS
In this Section, a decoupler for linear part of 2dof TRMS is designed. From the Eq. (32), it is to be noted that the crosscoupling between pitch and yaw angles for the nonlinear part of 2dof TRMS is negligible as compared with the linear part of 2dof TRMS. Hence in this work the crosscoupling effect for the nonlinear part of 2dof TRMS is avoided while calculating the parameters of the decoupler.
The transfer function for linear part of 2dof TRMS in Eq. (32) reveals that there exists coupling between the yaw $\left(\varphi \right)$ and input signal (${u}_{1}$) given to pitch. The above coupling effects can be nullified by suitably designing a decoupler known as precompensator which is dealt in this Section. For a given MIMO plant $G$, a method to design precompensator (decoupler) $Z$ is available in [16]. Fig. 2 represents the system with decoupler. The ${\psi}_{r}$ and ${\varphi}_{r}$, represent the reference pitch and yaw angle respectively and these are given as controller inputs to two 2dof SISO controllers. The controller outputs, ${v}_{1}$ and ${v}_{2}$ are the inputs to the precompensator (decoupler). The decoupler outputs are ${u}_{1}$ and ${u}_{2}$ respectively, and these are given as the inputs to the system. While designing the decoupler $Z$, it is to be ensured that the unstable poles and zeroes are not cancelled against each other. To avoid the cancellation of unstable poles and zeroes the ‘minimaldi’ (minimum number of unstable poles and zeroes including those at infinity) is calculated first and then decoupler is designed. The method of calculation of decoupler $Z$ [16] is applied here. The decoupler for 2dof TRMS is given by:
where $D=minimal{d}_{i}=GZ=diag\left({d}_{i}\right)$ and $G$ is the system transfer function. From the Eq. (32), it is obvious that $G$ has unstable poles at $s=$0. The stable poles are at $s=$ –0.0881 and $s=$ –0.9090. The pole at $s=$ –0.0881 which is very near to zero is also considered for the calculation of ‘$minimal{d}_{i}$’. The zeroes are at $s=$ infinity. The terms necessary for the design of ‘$minimal{d}_{i}$’ for this model are calculated as per [16] as:
Fig. 2. 2dof TRMS with decoupler
These terms are used for calculating the factors that must be present in ‘$minimal{d}_{i}$’:
Here ${l}_{1}^{\mathrm{i}\mathrm{n}\mathrm{f}}\left({G}^{1}\right)=\text{3}$ represents the number of poles present in ${d}_{1}$ of $minimal{d}_{i}$. From the design procedure ${d}_{1}$ consists of three poles. Similarly ${l}_{2}^{\mathrm{i}\mathrm{n}\mathrm{f}}\left({G}^{1}\right)=3$ represents the number of poles present in ${d}_{2}$ of $minimal{d}_{i}$. ${d}_{2}$ also consists of 3 poles.
The factors that must be present in ‘$minimal{d}_{i}$are calculated as:
This equation represents that there is a pole at origin in the term ${d}_{1}$ of $minimal{d}_{i}$:
This equation represents that there is a pole at the origin in the term ${d}_{2}$ of $minimal{d}_{i}$:
This equation represents that there is a pole at $s=$0.08819 in the term ${d}_{1}$ of minimal ${d}_{i}$:
This equation represents that there is no pole at $s=$0.08819 present in the ${d}_{2}$ of minimal ${d}_{i}$.
From the above design procedure for ‘$minimal{d}_{i}$’ it is noted that ${d}_{1}$ and ${d}_{2}$ consist of three poles and three zeros. The poles that are present in ${d}_{1}$ are one at origin as ${\beta}^{0}\left({d}_{1}\right)={k}_{1}^{0}\left(G\right)=$ 1, and other one at –0.08819 as ${\beta}^{0.08819}\left({d}_{1}\right)={k}_{1}^{0.08819}\left(G\right)=$ 1. The third one is assumed at $s={\alpha}_{1}$ and the zeros of ${d}_{1}$ are at infinity. The value of ${\alpha}_{1}$ is assumed to be as ${\alpha}_{1}=$ 0.9090. The reason why ${\alpha}_{1}=$ 0.9090 considered is that the value of $s=$–0.9090 is present in pitch angle transfer function as well as in the coupling term of TRMS system. Now ${d}_{1}$ of the ‘$minimal{d}_{i}$’ becomes:
Similarly ${d}_{2}$consists of three poles with one at origin and three zeroes are at infinity. For simplicity it is assumed that ${\alpha}_{2}=$ 0.9090 and ${\alpha}_{3}=5{\alpha}_{1}=$ 0.9090. The reason why ${\alpha}_{2}=$ 0.9090 and ${\alpha}_{3}=$ 5 considered is that the value of $s=$–0.9090 and $s=$–5 are present in yaw angle transfer function as well as in the coupling term of TRMS system. Now ${d}_{2}$ of the ‘$minimal{d}_{i}$’ becomes:
Now the ‘$minimal{d}_{i}$’ is given by $D=\mathrm{d}\mathrm{i}\mathrm{a}\mathrm{g}\left({d}_{i}\right)$:
The precompensator (decoupler) $Z\left(s\right)$ is calculated from Eq. (33) as:
With the introduction of decoupler the coupling term of 2dof TRMS system is made to be zero. Now the net transfer function of the 2dof TRMS system is obtained as:
To match with the system designed $G\left(s\right)$, the first row is multiplied with 1.358 and the second row with 3.6. Then the modified transfer function of the decoupled system becomes:
The Eq. (47) shows the transfer function of the decoupled system. It can be seen that the terms corresponding to the coupling effect between pitch and yaw of 2dof TRMS are nullified. After obtaining the transfer function model of the decoupled system the next step is the design of the nonlinear sliding surface which is dealt in Section 5.
5. Design of nonlinear sliding surface for 2dof TRMS
The performance improvement in 2dof TRMS is obtained with nonlinear sliding surface design based on variable damping ratio concept [17]. This system involves the design of nonlinear sliding surfaces for both pitch and yaw angles. Since the designed sliding surface is asymptotically stable in the sense of Lyapunov, the unmodeled dynamics like localized defects (LOD) [21] can be assumed to be of no effect in the performance of TRMS. The design of nonlinear sliding surfaces in both mentioned cases are synthesized adopting the approach mentioned in [17].
Step 1. Design of Pitch angle nonlinear sliding surface.
From the decoupled transfer function model Eq. (47), the main rotor transfer function for linear part of TRMS is given by:
For writing the state model of pitch the nonlinearity ${n}_{1}\left(x\right)$ is added with the linear part of the pitch. The state model of the pitch is given by:
Output equation for pitch is given by:
The switching function for pitch is given by:
where $\psi \left(t\right)={\left[\begin{array}{lll}{\psi}_{1}\left(t\right)& {\psi}_{2}\left(t\right)& {\psi}_{3}\left(t\right)\end{array}\right]}^{T}$ and ${L}^{T}$ is the nonlinear sliding surface matrix. The system represented by the Eq. (48) is a third order system. Generally regular form approach is employed to bring down the higher order for simplicity. For the system considered, different sets of state variables are employed using $h\left(t\right)$ to apply regular form approach. The $h\left(t\right)$ is related to the conventional pitch angle state vector $\psi \left(t\right)$ as:
here ${T}_{r}$ is the orthogonal matrix used for coordinate transformation. Now the regular form of the Eq. (49) becomes:
where:
And ${h}_{1}\left(t\right)={\left[\begin{array}{ll}{\psi}_{1}\left(t\right)& {\psi}_{2}\left(t\right)\end{array}\right]}^{T}$, ${h}_{2}\left(t\right)={\psi}_{3}\left(t\right)$. The associated sliding surface in regular form can be expressed as:
where:
The term $y\left(\psi \right){A}_{12}^{T}F$ in Eq. (56) corresponds to nonlinear part of the surface and ${Q}_{1}$ to linear part of the surface. The sliding surface matrix ${Q}_{1}=\left[\begin{array}{ll}1& \sqrt{3}\end{array}\right]$ is written as:
The pitch surface for the 2dof TRMS can be represented as:
where $F$ is a positive definite function. The $y\left(\psi \right)$ represents the nonlinearity function associated with the nonlinear part of sliding surface. The selection of $y\left(\psi \right)$ is done in subsection 5.1. The value of linear part of sliding surface ${Q}_{1}$ is calculated using the quadratic minimization technique which is explained in [18] is given below.
During sliding mode the sliding surface $S=$0, then Eq. (55) becomes:
Then Eq. (60) can be written as:
The value of ${Q}_{1}$ is calculated by minimizing the performance measure $J$ using the system constraint equation which is detailed below:
where ${t}_{s}$ represents the time at which the sliding mode commences. The matrix $R$ is the performance index matrix. It is selected to minimize the deviation of the final value of system from the desired value. The value of $R$ is assumed as identity matrix as:
The performance index matrix $R$ is transformed and partitioned in compatibility with $h\left(t\right)$ as:
where:
Now the performance measure represented in coordinate transform is given by:
The modified performance measure can be written as:
where:
Now the performance measure is to be minimized according to the constrained equation which is given below:
The modified constraint equation becomes:
where:
Substituting all available values in Eq. (72):
A unique positive definite solution ‘$P$’ is guaranteed for the algebraic matrix Ricatti Eq. (74) as:
Substituting all above values in Ricatti Eq. (74) a unique positive definite solution $P$ can be obtained as:
The expression for ${h}_{2}$ partition is given by:
Comparing the Eqs. (61) and (76):
Inserting the value of $P$ in Eq. (77), ${Q}_{1}$ can be calculated as:
The Eq. (78) shows the linear part of the surface.
In Eq. (56), $F$ is a positive definite matrix satisfying the Lyapunov equation which is given below:
where $W$ is a positive definite matrix and is selected as in [18]:
By substituting all the values of ${A}_{11}$, ${A}_{12}$, ${A}_{21}$, ${A}_{22}$ and $W$ in the Eq. (74), $F$ is calculated as:
The next sub Section deals with the nonlinearity function $y\left(\psi \right)$ associated with the nonlinear sliding surface given in Eq. (59).
5.1. Nonlinearity function
The nonlinearity function is used to change the system closed loop damping ratio from its initial low value to high value as the output varies from its initial and approaches final value [17]. This Section presents nonlinearity function for pitch and yaw. $y\left(\psi \right)$ represents the pitch angle nonlinearity function and $y\left(\varphi \right)$ represents the yaw angle nonlinearity function. It should satisfy the following properties as per [17].
It should vary from 0 to ${\gamma}_{1}$ as the output approaches the set point (final value) from its initial value where ${\gamma}_{1}>0$. It should be differentiable with respect to $\psi $ which ensure the existence of sliding mode. The possible choice of $y\left(\psi \right)$ as:
where $k$ and ${\gamma}_{1}$ are positive constants. $k$ should have a large value to ensure a small initial value $y\left(\psi \right)$. Similarly, the nonlinearity function $y\left(\varphi \right)$ for yaw is given by:
Substituting all the available values in Eq. (59), the nonlinear sliding surface for pitch is obtained as:
Step 2: Design of yaw angle nonlinear sliding surface.
The procedure for the design of nonlinear sliding surface for yaw is carried out in the same way as that for the nonlinear sliding surface design of pitch. The nonlinear sliding surface of yaw is obtained as:
5.2. Stability analysis of nonlinear sliding surface
The stability of the designed nonlinear sliding surface is to be ensured before designing the nonlinear sliding mode controller. And the same is done using the Lyapunov stability analysis.
Proof: let the positive definite Lyapunov function be:
where $F$ is positive definite and it is chosen based on condition satisfying the Lyapunov Eq. (79). The derivative of Lyapunaov function $V\left(h\right)$ becomes:
Substituting for $\dot{h}\left(t\right)$ in Eq. (87), $\dot{V}\left(h\right)$ becomes:
Substituting $\left({\left({A}_{11}{A}_{12}{Q}_{1}\right)}^{T}F+F\left({A}_{11}{A}_{12}{Q}_{1}\right)\right)=W$ in Eq (88), $\dot{V}\left(h\right)$ – becomes:
As $y\left(\psi \right)$ is negative definite by definition and $F{A}_{12}{A}_{12}^{T}F>0$, the second term of Eq. (84) $\left(2y\left(\psi \right)F{A}_{12}{A}_{12}^{T}F\right)$ becomes negative definite matrix. Adding this term with negative definite matrix $W$, results in negative definite matrix. Therefore, it can be written as $\dot{V}\left(h\right)<0$. Thus, the designed pitch angle nonlinear sliding surface for 2dof TRMS is stable in the sense of Lyapunov. The stability of yaw angle nonlinear sliding surface can be proved by the same procedure. Thus, it is proved that the designed nonlinear sliding surface for 2dof TRMS is stable and satisfies the Lyapunov stability analysis.
In this Section the nonlinear sliding surface is designed based on variable damping concept. The linear part of the surface is designed using the quadratic minimization procedure. The nonlinearity function is selected as per [17]. The stability of nonlinear sliding surface designed is tested using Lyapunov stability analysis. In addition to the design of nonlinear sliding surface, the design of nonlinear sliding mode controller is also to be done which is explained in Section 6.
6. Design of nonlinear sliding mode controller with supertwisting algorithm for 2dof TRMS
The main problem of sliding mode control is chattering in control signal. High chattering affects the mechanical part of the system in real time. To reduce such chattering, the higher order sliding modes are introduced. The main disadvantage of using higher order sliding mode is the difficulty in gathering information of derivatives in real time. But the supertwisting algorithm does not require the information regarding the derivatives. This supertwisting control is a continuous control ensuring all properties of first order sliding mode control.
The nonlinear SMC for 2dof TRMS is designed adopting the control structure envisaged in [18] but with a modification. Instead of the signum function used in [17] supertwisting algorithm is adopted in this work to reduce chattering [19]. In the existing nonlinear SMC mentioned in literature [17], a supertwisting controller [19] is incorporated which is explained below:
The above equation forms the nonlinear sliding mode controller with supertwisting algorithm introduced, where $\left(({k}_{s1}{\left{S}_{1}\right}^{\frac{1}{2}}\mathrm{}\mathrm{s}\mathrm{i}\mathrm{g}\mathrm{n}({S}_{1})\int {k}_{s2}\mathrm{s}\mathrm{i}\mathrm{g}\mathrm{n}\left({S}_{1}\right))\right)$ represents the supertwisting control to reduce chattering.
The following values are chosen for ${k}_{s1}$, ${k}_{s2}$_{}as ${k}_{s1}=$ 6, ${k}_{s2}=$ 4 and ${O}_{1}=$0.9. The value of ${O}_{1}$ is chosen by considering condition ${n}_{1\mathrm{m}\mathrm{a}\mathrm{x}}<{O}_{1}$ where ${n}_{1\mathrm{m}\mathrm{a}\mathrm{x}}$ is maximum bound of uncertainty for pitch [17]. The maximum bound of uncertainty for pitch is calculated to be 0.875. The value of ${k}_{s1}$ and ${k}_{s2}$ are chosen by trial and error method. Substituting all available values in Eq. (90), ${u}_{1}$ becomes:
Similarly yaw control ${u}_{2}$ is given by:
where ${k}_{s3}=$6 and ${k}_{s4}=$4 are the values obtained by trial and error method. The value of ${O}_{2}=$1.7. The value of ${O}_{2}$ is chosen by considering condition ${n}_{2\mathrm{m}\mathrm{a}\mathrm{x}}<{O}_{2}$ where ${n}_{2\mathrm{m}\mathrm{a}\mathrm{x}}$ is maximum bound of uncertainty for yaw [17]. The maximum bound of uncertainty for yaw is found to be 1.68. Substituting all available values in Eq. (92), ${u}_{2}$ becomes:
The next Section deals with the simulation results by the application of nonlinear sliding surface for 2dof TRMS and design of nonlinear sliding mode controller with the introduction of supertwisting controller.
7. Simulation results and discussion
The simulation has been done for 100 seconds by taking unit step as reference input and the results are plotted for 2dof TRMS. Fig. 3 shows the pitch control input when a matched disturbance of $0.4\mathrm{s}\mathrm{i}\mathrm{n}\left(0.1t\right)+0.4$ is added at 50 seconds. It is evident from the figure that the magnitude of pitch control signal is in between 1 V and 2.5 V which is within the prescribed control limit 2.5 V and –2.5 V [1]. Similarly, Fig. 4 shows the yaw control input when a matched disturbance of $0.4\mathrm{s}\mathrm{i}\mathrm{n}\left(0.1t\right)+0.4$ is added at 50 seconds. It is clear from the figure that the magnitude of yaw control signal is in between –0.5 V and –1 V. Since the control inputs generated for both pitch and yaw are within the control limit prescribed by the manufacturer of 2dof TRMS [1], the implementation can be done in real time.
Fig. 3. Pitch control (nonlinear sliding surface design)
Fig. 4. Yaw control (nonlinear sliding surface design)
Figs. 56 show the pitch angle and yaw angle tracking responses respectively when the disturbance is given at 50 seconds. The pitch response settles in 8 seconds and yaw response settles in 7 seconds. It is noted that there is no initial overshoot and undershoot in both pitch and yaw responses. The disturbance of $0.4\mathrm{s}\mathrm{i}\mathrm{n}\left(0.1t\right)+0.4$ is given to both pitch and yaw through input channel (matched disturbance) at 50 seconds. Even when the disturbance is applied, both the outputs track the corresponding reference inputs. This verifies the invariance property of the designed sliding surface.
Fig. 7 shows the pitch angle nonlinear sliding surface. During sliding mode the state vectors for pitch angle will slide along the designed sliding surface and keeps the tracking error to a minimum value. Fig. 8 shows the pitch angle nonlinear sliding surface with initial portion of the figure enlarged.
Fig. 9 shows the yaw angle nonlinear sliding surface. During sliding mode the states of yaw angles will slide along the designed sliding surface and keeps the tracking error to a minimum value. Fig. 10 shows the yaw angle nonlinear sliding surface with the initial portion of the figure enlarged. Also, the pitch and yaw angle responses will not be affected by the disturbances given to the system since the state trajectory slides along this nonlinear sliding surface designed.
Fig. 5. Pitch response with matched disturbance given at 50 seconds (nonlinear sliding surface design)
Fig. 6. Yaw response with matched disturbance given at 50 seconds (nonlinear sliding surface design)
Fig. 7. Pitch surface with matched disturbance given at 50 seconds (nonlinear sliding surface design)
Fig. 8. Initial portion of pitch surface (nonlinear sliding surface design)
Fig. 9. Yaw surface with matched disturbance given at 50 seconds (nonlinear sliding surface design)
Fig. 10. Initial portion of the yaw angle surface (nonlinear sliding surface design)
PID controller is designed using appropriate tuning method. The values of proportional constant ${k}_{p}$, integral constant ${k}_{i}$ and derivative constant ${k}_{d}$ are tuned as ${k}_{p}=$ 2.5, ${k}_{i}=$ 4, ${k}_{d}=$ 7 for pitch PID controller design and ${k}_{p}=$2.2, ${k}_{i}=\text{0.1}$, ${k}_{d}=\text{5}$ for yaw PID controller design. A disturbance of $0.4\mathrm{s}\mathrm{i}\mathrm{n}\left(0.1t\right)+0.4$ has been given at 50 seconds to both pitch and yaw through input channels and the responses are plotted. Figs. 1112 are the responses of the pitch and yaw angles respectively when the disturbance is given at 50 seconds. From these responses it is observed that the initial overshoot and settling time are very high for both pitch and yaw. The settling time for pitch and yaw is found to be 28 seconds 40 seconds respectively. Both the pitch and yaw responses deviates from the reference signals after the application of matched disturbance at 50 seconds. Also, it is noted that high chattering occurs with the application of PID controller.
Fig. 11. Pitch response with matched disturbance given at 50 seconds (PID controller design)
Fig. 12. Yaw response with matched disturbance given at 50 seconds (PID controller with design)
8. Real time implementation
The real time implementation is done for 2dof TRMS with the designed nonlinear sliding surface (as explained in section 5 of this paper) and nonlinear sliding mode controller with supertwisting algorithm (as explained in section 6) by using Advantech PCI1711 interfacing card. This card reads the 16 bit data from encoders. There are two blocks namely encoder (Analogue to digital) and decoder (digital to analogue) blocks. The encoder block has two outputs which are position of rotor in radians in the vertical and horizontal planes [1]. The control signals for pitch and yaw are given to the digital to analogue block. These encoder and decoder serves as an interface between the PC and external environment. The sensors senses the real time pitch and yaw angle positions. These real time angle positions sensed by the sensors are given to the encoders. The encoder delivers the discrete values corresponding to the interrupt service routine (ISR). The control algorithm operates according to the pulses distributed by the clock and the clock delivers the interrupt service routine.
Fig. 13. Real time pitch response with external disturbance given at 32 seconds (nonlinear sliding surface design)
Fig. 14. Real time yaw response with external disturbance given at 32 seconds
Since the system constraints are too high the operating region for pitch and yaw are to be fixed prior to the real time implementation. The operating region in radian for pitch is [–0.51 1.2] and for yaw is [–1.2 1.2] [14]. In this work lower values of reference inputs are applied. lower values, (0.2 radian for pitch and 0.8 radian for yaw) are applied in order to ensure safe operation of the TRMS.
The real time outputs (pitch and yaw angle positions) are taken from the encoder of PCI1711 card and are compared with the reference signals (both pitch and yaw). The error signals thus obtained are given to the nonlinear sliding surface with nonlinear sliding mode controller. The outputs of the controllers are given to DAC of PCI1711 card. Figs. 1314, show the real time pitch angle and yaw angle tracking responses respectively and corresponding control signals, when the external disturbance (a manual force corresponding to 100 g) is given at 32 seconds. There is a small percentage of overshoot for the Pitch angle response at the beginning and this is due to the large moment of inertia of main rotor drum of 2dof TRMS. The initial overshoot will be disappeared, and it will be settled within 10 seconds to the desired value. There is no overshoot for yaw angle response, and it settles in 20 seconds. The control signal is in between 2 V and –2 V for both pitch and yaw. It is noticed from the figures that both the outputs track the corresponding reference inputs. The deviation from the reference signals at the time of occurrence of the disturbance settles in 10 seconds. This verifies the invariance property of the designed nonlinear sliding surface as explained in Section 5 of this paper. It is also observed that the chattering is reduced in the step responses of pitch and yaw angle responses due to the application of supertwisting algorithm in nonlinear SMC. The end results of this research work are explained in tabular form for ready reference as shown below.
Table 2. Performance comparison
Pitch and yaw motion characteristics of 2dof TRMS

Nonlinear sliding surface design with nonlinear SMC

Real time implementation of nonlinear surface with nonlinear SMC

PID controller design

Settling time of pitch

8 seconds

10 seconds

28 seconds

Settling time of yaw

7 seconds

20 seconds

40 seconds

Overshoot of pitch

Nil

40 percent

50 percent

Overshoot of yaw

Nil

Nil

50 percent

Robustness of pitch surface

The matched disturbance of $0.4+0.4\mathrm{s}\mathrm{i}\mathrm{n}\left(0.1t\right)$ does not affect the system. System become robust

System retains its steady value in 10 seconds even with the application of external disturbance. The system becomes robust.

The matched disturbance of $0.4+0.4\mathrm{s}\mathrm{i}\mathrm{n}\left(0.1t\right)$ affects the system. The System is not robust with the application of PID Controller.

Robustness of yaw surface

The matched disturbance of $0.4+0.4\mathrm{s}\mathrm{i}\mathrm{n}\left(0.1t\right)$ does not affect the system. System become robust

System retains its steady value in 10 seconds even with the application of external disturbance. The system becomes robust

The matched disturbance of $0.4+0.4\mathrm{s}\mathrm{i}\mathrm{n}\left(0.1t\right)$ affects the system. The system is not robust with the application of PID controller

Chattering in pitch response

Considerable reduction in magnitude

Considerable reduction in magnitude


Chattering in yaw response

Considerable reduction in magnitude

Considerable reduction in magnitude

9. Conclusions
In this paper the modeling of the highly nonlinear 2 degree of freedom Twin rotor MIMO system (2dof TRMS) by incorporating all the nonlinearities of the system is done. Also design of a decoupler which nullifies the coupling effect between pitch and yaw is done. In addition to that the design of a nonlinear sliding mode controller (SMC) with supertwisting algorithm using variable damping ratio based nonlinear sliding surface is done. The transient performance is improved, and chattering is reduced with the use of the proposed controller and it is verified both in simulation and in real time. It can be seen that the robustness of the system is improved and chattering in output response is reduced considerably. The nonlinear sliding surface proved to be stable satisfying the Lyapunov stability analysis. The proposed method for 2dof TRMS has been tested in real time with the use of MATLAB toolbox and PCI1711 card. It is found that both the settling time and peak overshoot are reduced simultaneously with the use of nonlinear sliding surface and nonlinear SMC with supertwisting control.
In nutshell the system is modeled by including all nonlinearities and the effect of coupling between pitch and yaw of TRMS is nullified with the use of a decoupler. Also, the simultaneous reduction both in settling and peak overshoot is achieved by the use of nonlinear sliding surface based on variable damping ratio concept. The considerable reduction in chattering with the introduction of supertwisting algorithm in the nonlinear SMC is also achieved.
References
 Twin Rotor MIMO System control Experiments: 33949S. User Manual, Feedback Instruments Ltd., East Sussex, U.K., 2006. [CrossRef]
 Kuo B. C. Automatic Control Systems. 6th ed., Englewood Cliffs, PrenticeHall, 1995. [CrossRef]
 Krohling R. A., Jaschek H., Rey J. P. Designing PI/PID controllers for a motion control system based on genetic algorithms. 12th IEEE International Symposium on Intelligent Control, Istanbul, Turkey, 1997, p. 125130. [Publisher]
 Huang M. T., Juang J. G. Application of GA and PID control to nonlinear TRMS. Conference on Technologies and Applications of Artificial Intelligence, Taichung, Taiwan, 2002, p. 734739. [CrossRef]
 Juang J. G., Huang M. T., Liu W. K. PID Control using presearched genetic algorithms. IEEE Transactions on Systems, Man, and Cybernetics: Systems. Vol. 38, Issue 5, 2008, p. 716727. [Publisher]
 Pramit Biswas, Roshini Maiti, Ariban Kolay, Koushik Das Sharma, Gautham Sarksr PSO based PID controller for TRMS. Proceedings of The International Conference on Control, Instrumentation, Energy and Communication, 2014, p. 5660. [CrossRef]
 Su J. P., Liang C. Y., Chen H. M. Robust control of a class of nonlinear system and its application to a TRMS. Proceedings of IEEE International Conference on Industrial Technology, Bangkok, Thailand, 2002, p. 12721277. [CrossRef]
 Tao ChinWang, Taur JinShiuh, Chang YeongHwa, Chang ChiaWen A novel fuzzysliding and fuzzyintegralsliding controller for the twin rotor multiinput multioutput system. IEEE Transactions on Fuzzy Systems, Vol. 18, Issue 5, 2010, p. 893905. [Publisher]
 Deepak Kumar Saroj, Indrani Kar TS fuzzy model based controller and observer design for a twin rotor MIMO system. IEEE International Conference on Fuzzy System, 2013. [CrossRef]
 Silva Alison, Caminhas Walmir, Lemos Andre, Gominde Fernado Real time nonlinear modeling of a twin rotor MIMO system using evolving Nuerofuzzy network. IEEE Symposium on Computational Intelligence in Control and Automation, 2014. [CrossRef]
 John Lidiya, Mija S. Robust Hinfinity control algorithm for twin rotor MIMO system. IEEE International Conference on Advance Communication Control and Computing Technology, 2014, p. 168173. [CrossRef]
 Lisy E. R., Nandakumar M., Anasraj R. Design of an optimal sliding surface for Twin rotor MIMO system. 10th Asian Control Conference, Kota Kinabalu, Malasia, 2015. [CrossRef]
 Mondal S., Mahanta C. Adaptive secondorder sliding mode controller for a twin rotor multiinputmultioutput system. IET Control Theory and Applications, Vol. 6, Issue 14, 2012, p. 21572167. [Publisher]
 Samir Zeghlache, Abdderrahman Bougera, Muhammed Ladjal Sliding mode controller using nonlinear sliding surface applied to 2dof Helicopter. Proceedings of 2nd International Conference on Electrical and Information Technologies, 2016. [CrossRef]
 Farah Faris, Abdelkrim Moussaoui, Boukhetala Djamel, Thadin Mohammed Design and realtime implementation of a decentralised sliding mode for Twin rotor multi input multi output, system. Journal of Systems and control Engineering, Vol. 231, Issue 1, 2017, p. 313. [CrossRef]
 Jatin Kumar Pradhan, Arun Ghosh Design and implementation of decoupled compensation for a twin rotor multiple input and multipleoutput system. IET Control Theory and Applications, Vol. 7, Issue 2, 2013, p. 282289. [Publisher]
 Fulwani D., Bandyopadhyay B., Fridman L. Nonlinear sliding surface: toward high performance robust control. IET Control Theory and Applications, Vol. 6, Issue 2, 2012, p. 235242. [Publisher]
 Christopher Edward, Spergeon Sarah K. Sliding Mode Control Theory, Applications. Taylor Francis Ltd., London, 1998. [Publisher]
 Kamal Shyam, Chalanga Asif, Moreno J. A., Fridman L., Bandopadhyay B. Higher order supertwisting algorithm. 13th International Workshop on Variable Structure Systems, 2014. [Publisher]
 Mutra Rajasekhara Reddy, Srinivas J. Vibration analysis of support excited rotor system with hydro dynamic journal bearings. 12th International Conference on Vibration Problems, 2015. [CrossRef]
 Jing Liu, Yimin Shao Dynamic modeling for rigid rotor bearing systems with localised defect considering additional deformation at sharp edges. Journal of Sound and Vibration, Vol. 398, 2017, p. 84102. [Publisher]