Introduction

During the last decade, studies concerning twin rotor system have increased. It is a basic helicopter model used to study the hovering dynamics. This popularity stems from the similarity between those systems [1]. Tao et al. [2] controlled the twin rotor with fuzzy linear quadratic regulator (LQR). Taskin [3] investigated the performance of twin rotor system under hovering conditions with fuzzy logic controller (FLC). A hybrid proportional-integral-derivative (PID) controller was implemented to a twin rotor by Juang et. al. [4]. Aras and Kaynak [5] designed an interval type-2 fuzzy neural controller for the twin rotor system. The designed controller was compared with a traditional neuro-fuzzy structure and an interval type-2 fuzzy neural system. Hacioglu [6] proposed a new fuzzy logic algorithm to control angular motions of a twin rotor setup. The controller performance was verified via experiments. The control problem of highly nonlinear systems with varying operating conditions was investigated by Omar et al. [7]. They proposed an adaptive neuro-fuzzy inference system (ANFIS) for a twin-rotor system. Juang et al. [8] designed a fuzzy PID control structure with a genetic algorithm for a regulation problem of twin rotor. Khakshour and Khanesar [9] proposed an adaptive learning algorithm for an interval type-2 fuzzy fractional order controller and applied it to a twin-rotor system. Mondal and Mahanta [10] designed an adaptive second-order sliding mode controller for a laboratory twin-rotor setup. The simulation findings of the controller showed sufficient tracking performance and robustness to external disturbances. A new sliding surface was proposed to handle cross-coupling affects in a twin rotor system by Ahmed et al. The sliding mode controller performance was improved with that surface [11]. Corradini et al. [12] investigated the stabilization problem for discrete-time linear controllable systems subject to actuator saturation with application to a twin-rotor system. In [13] sliding mode and backstep** controllers were designed and their performances were validated on a twin-rotor system via simulations. Raghavan and Thomas [14] presented an implementable model predictive controller for a twin rotor. Palepogu and Mahapatra [15] designed a sliding mode controller with state-varying gains for the control of yaw orientation of the twin rotor system. Zeghlache et al. [16] synthesized an adaptive fuzzy controller for the twin rotor system and verified it by experiments.

Classical sliding mode control (SMC) has a robust character [17, 18] and it is applicable to nonlinear as well as uncertain systems [19]. SMC was used in many applications like vehicle suspension control [20,21,22], seismic vibration control [23,24,25], robotics [26, 27] an so on. Insensitivity of the controlled system to external disturbances and parameter changes [28] is achieved when the system states are on the sliding surface. However, in practice, systems with sliding mode may face with chattering in control signal and this may damage the system’s mechanical parts. There are a few techniques in literature to remedy this issue, that replaced the signum function with saturation [29] and sigmoid-like functions [30] as continuous approximations. However, as a result ideal sliding motion no more takes place. Hence, high order SMC technique was recommended by researchers to suppress or eliminate chattering [31, 32]. Particularly, Levant [32] presented a SOSM algorithm known as Super Twisting Algorithm (STA) and then it was used for control applications [32,33,34,35,36,37]. Rashad et al. [38] proposed an integral sliding mode controller for a twin-rotor system where the controller was augmented by a sliding mode disturbance observer to eliminate the discontinuity in the control signal. Tapia et al. [39] designed a sliding mode controller by using exact convex expressions for non-linear sliding surface and system. Finally, that method led to linear matrix inequalities that may be solved with convex optimization methods. A high-order sliding mode controller was proposed to control an active suspension model by Ozer et al. [40]. The simulations and experimental results of that controller showed sufficient ride comfort improvement while eliminating chattering.

The objective of this research is to design a robust controller without chattering effect which will be used for the control of the twin rotor system in real time experiments. In order to reach this aim we proposed a novel fuzzy logic enhanced second-order sliding mode controller. The controller is based on classical SOSMC with STA, but proposed controller is different from that since the slope parameter of the sliding surface is updated online via a fuzzy logic unit, which results in increased performance and robustness. Additionally, in order to eliminate ne need for exact mathematical model of the system, the designed controller utilizes an estimator for equivalent component of control input which is not the case in classical SOSMC available in literature. Then the performance of the proposed controller was confirmed by real time experiments on a twin rotor system which has highly nonlinear dynamics. To compare the success of the proposed controller, a classical SMC (first order) and a classical SOSMC are also applied to the experimental twin rotor system. The results have shown that the proposed controller increased the tracking performance without increasing the control effort while reducing the chattering.

Controller Design

In this section first, the twin rotor model is presented and then the proposed FSOSMC is designed.

Twin Rotor Model

The twin rotor model is often studied by engineers and academicians because it possesses a basic structure but still cross coupled pitch and yaw motions are adequately represented. Figure 1 presents the physical model. Here, \({m}_{hel}\) stands for the total mass of the helicopter, distance from the mass center to the pitch axis along the helicopter body is denoted with \(l\), \({B}_{pitch}\) and \({B}_{yaw}\) are the viscous dam** for pitch and yaw motions, \({I}_{pitch}\) and \({I}_{yaw}\) are the moment of inertia for pitch and yaw motions. Here, \(\theta\) and \(\psi\) are angular displacements for the pitch and yaw motions and \(\overline{{\tau }_{\theta }}, \overline{{\tau }_{\psi }}\) stand for the actuator moments. Parameters of the model are given in Table 5 in “Appendix 1”.

Fig. 1
figure 1

Physical model of the twin rotor

The mathematical model for the twin rotor system was obtained using Lagrange’s equations. In order to make the text self-contained without disrupting its flow, the energy functions required for the Lagrange's method are presented in “Appendix 1”. The equations of motion are:

$${m}_{hel}{l}^{2}\ddot{\theta }+{I}_{pitch}\ddot{\theta }+{m}_{hel}{l}^{2}{\dot{\left(\psi \right)}}^{2}\text{cos}\left(\theta \right)\text{sin}\left(\theta \right)+{B}_{pitch}\dot{\theta }+{m}_{hel}glcos\left(\theta \right)=\overline{{\tau }_{\theta }}+\widetilde{{d}_{\theta }}$$
(1)
$${m}_{hel}{l}^{2}\ddot{\psi }{cos}^{2}\left(\theta \right)-2{m}_{hel}{l}^{2}\dot{\theta }\dot{\left(\psi \right)}\text{cos}\left(\theta \right)\text{sin}\left(\theta \right)+{I}_{yaw}\ddot{\psi }+{B}_{yaw}\dot{\psi }=\overline{{\tau }_{\psi }}+\widetilde{{d}_{\psi }}$$
(2)

Here \(\widetilde{{d}_{\theta }}\) and \(\widetilde{{d}_{\psi }}\) denote the external disturbances. State variables are chosen as:

$${\left[\begin{array}{cccc}{x}_{1}& {x}_{2}& {x}_{3}& {x}_{4}\end{array}\right]}^{T}={\left[\begin{array}{cccc}\theta & \dot{\theta }& \psi & \dot{\left(\psi \right)}\end{array}\right]}^{T}$$
(3)

Then twin rotor state equations are:

$$\dot{{x}_{1}}={x}_{2}$$
(4)
$$\dot{{x}_{2}}=\frac{-{m}_{hel}{l}^{2}{\left({x}_{4}\right)}^{2}\text{cos}\left({x}_{1}\right)\text{sin}\left({x}_{1}\right)-{B}_{pitch}{x}_{2}-{m}_{hel}glcos\left({x}_{1}\right)}{\left({m}_{hel}{l}^{2}+{I}_{pitch}\right)}+\frac{\overline{{\tau }_{\theta }}}{\left({m}_{hel}{l}^{2}+{I}_{pitch}\right)}+\overline{{d }_{\theta }}$$
(5)
$$\dot{{x}_{3}}={x}_{4}$$
(6)
$$\dot{{x}_{4}}=\frac{2{m}_{hel}{l}^{2}\left({x}_{2}\right)\left({x}_{4}\right)\text{cos}\left({x}_{1}\right)\text{sin}\left({x}_{1}\right){-B}_{yaw}\left({x}_{4}\right)}{{m}_{hel}{l}^{2}{cos}^{2}\left({x}_{1}\right)+{I}_{yaw}}+\frac{\overline{{\tau }_{\psi }}}{{m}_{hel}{l}^{2}{cos}^{2}\left({x}_{1}\right)+{I}_{yaw}}+\overline{{d }_{\psi }}$$
(7)

The Proposed Fuzzy Second Order Sliding Mode Controller (FSOSMC)

A new fuzzy second-order SMC depending on super twisting algorithm is given in present section which uses an estimator for equivalent control. In literature, second-order sliding mode was defined by Levant [32, 34] as the motion on non-empty set \(\sigma =\dot{\sigma }=0\) which consists of locally Filippov trajectories where \(\sigma =\dot{\sigma }\) are assumed to be continuous. Consider that equations of the system are given as:

$$\dot{{\eta }_{1}}={\eta }_{2}$$
(8)
$$\dot{{\eta }_{2}}=f\left({\eta }_{1},{\eta }_{2}\right)+g\left({\eta }_{1},{\eta }_{2}\right)\overline{u }+\overline{d }$$
(9)

where \({\eta }_{1}\) and \({\eta }_{2}\) are state variables, \(\overline{u }\) is the control input, \(\overline{d }\) stand for exogenous disturbance. \(g\left({\eta }_{1},{\eta }_{2}\right)\) and \(f\left({\eta }_{1},{\eta }_{2}\right)\) are nonlinear functions of the state variables. The sliding surface is chosen as

$$\sigma =\alpha \left({\eta }_{1r}-{\eta }_{1}\right)+\left({\dot{\eta }}_{1r}-\dot{{\eta }_{1}}\right)$$
(10)

where the sliding surface parameter is \(\alpha >0\). By taking the time derivative of the Eq. (10) and using Eqs. (8) and (9)

$$\dot{\sigma }=\alpha \left({\eta }_{2r}-{\eta }_{2}\right)+{\dot{\eta }}_{2r}-f\left({\eta }_{1},{\eta }_{2}\right)-g\left({\eta }_{1},{\eta }_{2}\right)\overline{u }-\overline{d }$$
(11)

Then by using following definitions

$$\phi \left({\eta }_{1},{\eta }_{2}\right)=\alpha \left({\eta }_{2r}-{\eta }_{2}\right)+{\dot{\eta }}_{2r}-f\left({\eta }_{1},{\eta }_{2}\right)$$
(12)
$$u=-g\left({\eta }_{1},{\eta }_{2}\right)\overline{u }$$
(13)
$$d=-\overline{d }$$
(14)

then

$$\dot{\sigma }=\phi \left({\eta }_{1},{\eta }_{2}\right)+u+d$$
(15)

During the analysis it was presumed that exogenous disturbing effect \(d\) is limited as \(\left|d\right|\le\Delta \sqrt{\left|\sigma \right|}\), \(\Delta >0\). Additionally, when \(\dot{\sigma }=0\), \(d=0\), then equivalent control is calculated to be:

$${u}_{eq}=-\phi \left({\eta }_{1},{\eta }_{2}\right)$$
(16)

To design the discontinuous component \({u}_{dc}\) of the control input, the super twisting algorithm suggested in [32] is utilized.

$${u}_{dc}=-{k}_{1}{\left|\sigma \right|}^{1/2}sign\left(\sigma \right)+\upsilon$$
(17)
$$\dot{\upsilon }=-{k}_{2}sign\left(\sigma \right)$$
(18)

Now the entire control law is,

$$u{=u}_{dc}{+u}_{eq}$$
(19)

Stability validation is carried out, via Lyapunov function candidate [41].

$$V=2{k}_{2}\left|\sigma \right|+\frac{1}{2}{\upsilon }^{2}+\frac{1}{2}{\left({k}_{1}{\left|\sigma \right|}^{1/2}sign\left(\sigma \right)-\upsilon \right)}^{2}$$
(20)

Let’s arrange this function as

$$V={\upxi }^{\text{T}}\mathbf{P}\boldsymbol{ }\upxi$$
(21)

in this quadratic form

$${\upxi }^{\text{T}}= \left[\begin{array}{cc}{\left|\sigma \right|}^{1/2}sign\left(\sigma \right)& \upsilon \end{array}\right]$$
(22)
$$\mathbf{P}=\left[\begin{array}{cc}2{k}_{2}+\frac{{{k}_{1}}^{2}}{2}& \frac{{-k}_{1}}{2}\\ \frac{{-k}_{1}}{2}& 1\end{array}\right]$$
(23)

Taking the time derivative of Eq. (21)

$$\dot{V}={\dot{\upxi }}^{\text{T}}\mathbf{P}\boldsymbol{ }\upxi +{\upxi }^{\text{T}}\mathbf{P}\boldsymbol{ }\dot{\upxi }=\dot{\sigma } sign\left(\sigma \right)\left(2{k}_{2}+\frac{1}{2}{{k}_{1}}^{2}\right)-{k}_{1}\dot{\upsilon }{\left|\sigma \right|}^{1/2} sign\left(\sigma \right)-\frac{{k}_{1}\upsilon \dot{\sigma }}{2{\left|\sigma \right|}^{1/2}}+2\dot{\upsilon }\upsilon$$
(24)

By using Eqs. (15)–(19)

$$\begin{aligned} \dot{V} & = \left[ { - k_1 \left| \sigma \right|^{1/2} sign\left( \sigma \right) + \upsilon + d} \right]sign\left( \sigma \right)\left( {2k_2 + \frac{1}{2}k_1^2 } \right) - k_1 \left[ { - k_2 sign\left( \sigma \right)} \right]\left| \sigma \right|^{1/2} sign\left( \sigma \right) - \frac{{k_1 \upsilon \left[ { - k_1 \left| \sigma \right|^{1/2} sign\left( \sigma \right) + \upsilon + d} \right]}}{{2\left| \sigma \right|^{1/2} }} + 2\left[ { - k_2 sign\left( \sigma \right)} \right]\upsilon \\ & = - \left( {k_1 k_2 + \frac{k_1^3 }{2}} \right)\left| \sigma \right|^{1/2} + k_1^2 \upsilon sign\left( \sigma \right) - \frac{k_1 \upsilon^2 }{{2\left| \sigma \right|^\frac{1}{2} }} - d\left( {t,\sigma } \right)\frac{k_1 \upsilon }{{2\left| \sigma \right|^\frac{1}{2} }} + d\left( {t,\sigma } \right)\left[ {\left( {2k_2 + \frac{1}{2}k_1^2 } \right)sign\left( \sigma \right)} \right] \\ \end{aligned}$$
(25)

For the last two terms on the right side of Eq. (25) by using \(\left|d\right|\le\Delta \sqrt{\left|\sigma \right|}\) it is found that

$$-\frac{{k}_{1}\upsilon }{2}\frac{d\left(t,\sigma \right)}{{\left|\sigma \right|}^\frac{1}{2}} \le -\frac{{k}_{1}\upsilon }{2}\Delta sign\left(\sigma \right)$$
(26)
$$d\left(t,\sigma \right)\left(2{k}_{2}+\frac{1}{2}{{k}_{1}}^{2}\right)sign\left(\sigma \right)\le\Delta {\left|\sigma \right|}^{1/2}\left(2{k}_{2}+\frac{1}{2}{{k}_{1}}^{2}\right)$$
(27)

After that Eq. (25) turns into

$$\dot{V}\le -\left({k}_{1}{k}_{2}+\frac{{{k}_{1}}^{3}}{2}\right){\left|\sigma \right|}^{1/2}+{{k}_{1}}^{2}\upsilon sign\left(\sigma \right)-\frac{{k}_{1}{\upsilon }^{2}}{2{\left|\sigma \right|}^{1/2}}+\Delta \left(2{k}_{2}+\frac{1}{2}{{k}_{1}}^{2}\right){\left|\sigma \right|}^{1/2}-\frac{{k}_{1}\upsilon }{2}\Delta sign\left(\sigma \right)$$
(28)

which may be written as

$$\dot{V}\le \frac{-{k}_{1}}{2{\left|\sigma \right|}^{1/2}}{\upxi }^{\text{T}}\mathbf{Q}\boldsymbol{ }\upxi$$
(29)

where

$$\mathbf{Q}=\left[\begin{array}{cc}2{k}_{2}+{{k}_{1}}^{2}-\left(\frac{4{k}_{2}}{{k}_{1}}+{k}_{1}\right)\Delta & {-k}_{1}+\frac{\Delta }{2}\\ {-k}_{1}+\frac{\Delta }{2}& 1\end{array}\right]$$
(30)

Here, if \({k}_{1}\) and \({k}_{2}\) satisfy,

$${k}_{1}>2\Delta$$
(31)
$${k}_{2}>\frac{{k}_{1}{\Delta }^{2}}{8 \left({k}_{1}-2\Delta \right)}$$
(32)

then, sliding surface is attained since \(\dot{V}<0\) is negative definite.

In practice, system parameters in \(\phi \left({\eta }_{1},{\eta }_{2}\right)\) may be uncertain or unknown. Thus, the evaluated equivalent control signal may differ from the actual one. Thus, an estimation for equivalent control \({\widehat{u}}_{eq}\) is utilized in this research which is acquired by filtering entire control input with a low-pass filter [40]. Thereafter, estimated equivalent control becomes:

$${\widehat{u}}_{eq}=\frac{\varepsilon }{s+\varepsilon }u$$
(33)

Here \(\varepsilon\) is cut-off frequency. With this estimation this controller is different from existing second order sliding mode controllers in literature. It is assumed that low frequency component of the control input characterizes the signal and high frequency part presents unmodeled dynamics. Here, if \(\varepsilon\) is properly adjusted the output of the filter will well represent equivalent control [18], and system’s stability is maintained. Then entire control input of the designed SOSMC is

$$\overline{u }=-{g}^{-1}\left({\eta }_{1},{\eta }_{2}\right)u$$
(34)
$$u={\widehat{u}}_{eq}-{k}_{1}{\left|\sigma \right|}^{1/2}sign\left(\sigma \right)+\upsilon$$
(35)
$$\dot{\upsilon }=-{k}_{2}sign\left(\sigma \right)$$
(36)
$$\dot{{\widehat{u}}_{eq}}=\varepsilon \left(u-{\widehat{u}}_{eq}\right)$$
(37)

Genetic Algorithm (GA) is an optimization method that motivated by natural selection principles. GA that work according to the probability rules require only the objective function. This method has searched a specific part of the solution space. Thus, complex problems have been solved effectively. The GA can benefit from better solutions with respect to different objectives to create new nondominated solutions of the Pareto front. Multi-objective genetic algorithm (MOGA) does not require most users to weigh targets and scaling [42].

In this study, gain of the controllers will be searched using fitness functions \({\beta }_{i}(i=\text{1,2},\dots .,10)\) given below. It is aimed to reduce tracking errors and suppress chattering.

$${\beta }_{1}=\sum_{i=1}^{n}\left|{\theta }_{refi}-{\theta }_{i}\right|$$
(38)
$${\beta }_{2}=\sum_{i=1}^{n}\left|{\psi }_{refi}-{\psi }_{i}\right|$$
(39)
$${\beta }_{3}=\frac{1}{\sqrt{n}}{\left[\sum_{i=1}^{n}{\left({\dot{u}}_{\theta i}\right)}^{2}\right]}^{1/2}$$
(40)
$${\beta }_{4}=\frac{1}{\sqrt{n}}{\left[\sum_{i=1}^{n}{\left({\dot{u}}_{\psi i}\right)}^{2}\right]}^{1/2}$$
(41)
$${\beta }_{5}=dimension\left[{\ddot{\theta }}_{i}\to \left\{\begin{array}{c}{\ddot{\theta }}_{i}<0 \quad and \quad {\ddot{\theta }}_{i-1}>0 \\ {\ddot{\theta }}_{i}>0\quad and\quad {\ddot{\theta }}_{i-1}<0\end{array}\right\}\right]$$
(42)
$${\beta }_{6}=dimension\left[{\ddot{\psi }}_{i}\to \left\{\begin{array}{c}{\ddot{\psi }}_{i}<0\quad and\quad {\ddot{\psi }}_{i-1}>0 \\ {\ddot{\psi }}_{i}>0\quad and\quad {\ddot{\psi }}_{i-1}<0\end{array}\right\}\right]$$
(43)
$${\beta }_{7}=\frac{1}{n}\sum_{i=1}^{n}\left|{u}_{\theta i}-\frac{1}{n}\sum_{i=1}^{n}\left|{u}_{\theta i}\right|\right|$$
(44)
$${\beta }_{8}=\frac{1}{n}\sum_{i=1}^{n}\left|{u}_{\psi i}-\frac{1}{n}\sum_{i=1}^{n}\left|{u}_{\psi i}\right|\right|$$
(45)
$${\beta }_{9}=\frac{1}{n}\sum_{i=1}^{n}\left|{\ddot{\theta }}_{i}-\frac{1}{n}\sum_{i=1}^{n}\left|{\ddot{\theta }}_{i}\right|\right|$$
(46)
$${\beta }_{10}=\frac{1}{n}\sum_{i=1}^{n}\left|{\ddot{\psi }}_{i}-\frac{1}{n}\sum_{i=1}^{n}\left|{\ddot{\psi }}_{i}\right|\right|$$
(47)

Here the functions \({\beta }_{1},{\beta }_{2}\) account for the success of controller in trajectory tracking. The functions \({\beta }_{3},{\beta }_{4}\) account for fluctuations in control input. For the acceleration signal the \({\beta }_{5},{\beta }_{6}\) denote the number of crossing from zero. The fitness functions \({\beta }_{7},{\beta }_{8},{\beta }_{9},{\beta }_{10},\) account for the mean values of amplitudes of the control input and angular acceleration. Then, for the gain parameters the optimum values obtained by MOGA for twin rotor system are presented in Table 1.

Table 1 Gains of the controllers

In this study, we also present a fuzzy logic methodology where, the parameters of sliding surface \(\left({\alpha }_{\theta },{\alpha }_{\psi }\right)\) of SOSMC are changed by the fuzzy logic unit. Figure 2 depicts membership functions for all variables that are in triangular shape. Abbreviated labels were utilized to name the membership functions. For the input variables NB is negative big, NS is negative small, Z is zero, PS is positive small, and PB is positive big. For the output variables VS is very small, S is small, M is medium, B is big, and VB is very big.

Fig. 2
figure 2

The membership functions of fuzzy logic

The rules for the designed fuzzy logic unit are given in Table 2. The rule table is a adopted from [43]. Those decision rules were arranged in the IF–THEN form for the \({\alpha }_{\theta }\) and \({\alpha }_{\psi }\) components.

$${\text{IF}}\,\,e_\theta = NB\quad {\text{and}}\quad {\text{IF}}\,\,\dot{e}_\theta = Z\,\,{\text{THEN}}\,\,\alpha_\theta = VS$$
(48)
$${\text{IF}}\,\,e_\psi = Z\quad {\text{and}}\quad {\text{IF}}\,\,\dot{e}_\psi = PB\,\,{\text{THEN}}\,\,\alpha_\psi = VB$$
(49)
Table 2 Fuzzy rules

If the rules are investigated, it observed that the manner behind is to rotate the sliding surface to force the system reach to the sliding surface faster. This will result in increased tracking performance and robustness for the designed FSOSMC. The overall structure of the proposed FSOSMC is presented in Fig. 3.

Fig. 3
figure 3

Block diagram for the designed FSOSMC

Experimental Setup and Results

Experimental Setup

Figure 4 shows the twin rotor experimental setup [44], which includes personal computer, data acquisition card and amplifier. Here the twin rotor system has two degrees of freedom. It is attached on a stationary base, and it has front and rear propellers, which are rotated via DC motors. The thrust force of the front and rear propellers cause motion about the pitch (horizontal axis) and yaw (vertical axis) axes. Two encoders were utilized to measure the pitch and yaw motions. The range of pitch motion (angle θ) is between − 40.3 and 36 degrees. On the other hand, rotation about yaw axis is free thus the range of yaw motion (angle ψ) is 360 degrees. If θ = 0, then the system is horizontal to the ground. Quanser data acquisition card (DAQ) is utilized for data transmission. The voltage signals provided by the controller are transmitted to the amplifier which operates the direct current motors of the propellers. Control voltage limit is ± 24 V. For the real-time experiments the sampling period is set to 0.001 s. Parameters of the twin rotor system are given in Table 5 in “Appendix 1”.

Fig. 4
figure 4

The twin rotor model experimental setup

Control Laws for Experimental Setup

If governing state equations in Eqs. (4)–(7) are used, then control inputs of the suggested FSOSMC for twin rotor are obtained as

$$\overline{{\tau }_{\theta }}=-\left({m}_{hel}{l}^{2}+{I}_{pitch}\right){\tau }_{\theta }$$
(50)
$${\tau }_{\theta }={\widehat{\tau }}_{\theta eq}-{k}_{1\theta } {\left|{\alpha }_{\theta }\left({x}_{1r}-{x}_{1}\right)+{\dot{x}}_{1r}-{x}_{2}\right|}^\frac{1}{2} sign\left({\alpha }_{\theta }\left({x}_{1r}-{x}_{1}\right)+{\dot{x}}_{1r}-{x}_{2}\right)+{\upsilon }_{\theta }$$
(51)
$$\dot{{\upsilon }_{\theta }}=-{k}_{2\theta } \left\{sign\left({\alpha }_{\theta }\left({x}_{1r}-{x}_{1}\right)+{\dot{x}}_{1r}-{x}_{2}\right)\right\}$$
(52)
$$\dot{{\widehat{\tau }}_{eq\theta }}=\varepsilon \left({\tau }_{\theta }-{\widehat{\tau }}_{eq\theta }\right)$$
(53)
$$\overline{{\tau }_{\psi }}=-\left({m}_{hel}{l}^{2}{cos}^{2}({x}_{1})+{I}_{yaw}\right){\tau }_{\psi }$$
(54)
$${\tau }_{\psi }={\widehat{\tau }}_{\psi eq}-{k}_{1\psi } {\left|{\alpha }_{\psi }\left({x}_{3r}-{x}_{3}\right)+{\dot{x}}_{3r}-{x}_{4}\right|}^\frac{1}{2} sign\left({\alpha }_{\psi }\left({x}_{3r}-{x}_{3}\right)+{\dot{x}}_{3r}-{x}_{4}\right)+{\upsilon }_{\psi }$$
(55)
$$\dot{{\upsilon }_{\psi }}=-{k}_{2\psi } \left\{sign\left({\alpha }_{\psi }\left({x}_{3r}-{x}_{3}\right)+{\dot{x}}_{3r}-{x}_{4}\right)\right\}$$
(56)
$$\dot{{\widehat{\tau }}_{eq\psi }}=\varepsilon \left({\tau }_{\psi }-{\widehat{\tau }}_{eq\psi }\right)$$
(57)
$$\overline{{\tau }_{\theta }}={K}_{pp}{V}_{mp}+{K}_{py}{V}_{my}$$
(58)
$$\overline{{\tau }_{\psi }}={K}_{yp}{V}_{mp}+{K}_{yy}{V}_{my}$$
(59)

Equations (58) and (59) are simultaneously solved to obtain the control voltages as below:

$${V}_{mp}=\frac{{K}_{py}\overline{{\tau }_{\psi }}-{K}_{yy}\overline{{\tau }_{\theta }}}{{K}_{py}{K}_{yp}-{K}_{pp}{K}_{yy}}$$
(60)
$${V}_{my}=\frac{{K}_{pp}\overline{{\tau }_{\psi }}-{K}_{yp}\overline{{\tau }_{\theta }}}{{K}_{yy}{K}_{pp}-{K}_{py}{K}_{yp}}$$
(61)

In this study, the control signals are the torques and in the experimental system they are converted to voltage signals \(\left({V}_{mp},{V}_{my}\right)\) as given in Eqs. (60)–(61). In the equations above \({K}_{yy}{,K}_{pp},{K}_{py}{,K}_{yp}\) are the thrust force constants defined in “Appendix 1”.

Performance Indexes

To measure the performance of the designed controllers following indexes are defined in this study.

Integral of time multiplied absolute error (ITAE) index [45, 46]:

$$ITAE=\underset{0}{\overset{t}{\int }}t\left|e\right|dt$$
(62)

Control effort index (CEI) [47]:

$$CEI=\frac{1}{\sqrt{n}}{\left[\sum_{i=1}^{n}{\left({u}_{i}\right)}^{2}\right]}^{1/2}$$
(63)

Chattering index (CI) [47]:

$$CI=\frac{1}{\sqrt{n}}{\left[\sum_{i=1}^{n}{\left({\dot{u}}_{i}\right)}^{2}\right]}^{1/2}$$
(64)

The first performance index (ITAE) presents the error value of the angular displacement on time vector and heavily penalizes the errors late in time. The second index (CEI) measures the control effort utilized by the control algorithm. The third index (CI) measures the chattering in the control input. The CEI and CI are the root mean square values of relevant signals.

Experimental Results

Experimental results for the twin rotor model using proposed FSOSMC are presented in this section. The experimental results with first order SMC and classical SOSMC with super twisting algorithm are also presented for comparison purpose. To make the article self-contained, the design of the classical first order SMC is presented in “Appendix 2” along with parameters in Table 6. The control laws for the classical SOSMC may be easily obtained from the Eqs. (50)–(57) without using equivalent control parts. That is only the discontinuous parts due to the super twisting algorithm are used and resulting control laws for the classical SOSMC are presented in “Appendix 2”. Furthermore, the sliding surface parameters of pitch and yaw motions are obtained by fuzzy logic units for the FSOSMC. The variation of sliding surface parameters are presented in Fig. 5. It is seen that the controller dynamically changes the sliding surface parameter according to the error states of the system.

Fig. 5
figure 5

Variation of the sliding surface parameters (without disturbance)

Time responses for the twin rotor system without external disturbance are presented in Fig. 6. It is observed from this figure that the reference trajectories for pitch and yaw motion are successfully tracked by all controllers whereas the FSOSMC is most successful one since the oscillatory motions vanishes rapidly. This success is due to the online tuning of the sliding surface parameters by the fuzzy logic unit. Additionally, if the control inputs are investigated it reveals that chattering, that is high frequency fluctuations in control signal, arises in case of SMC. On the other hand, the classical SOSMC and FSOSMC cases are almost free of chattering.

Fig. 6
figure 6

Experimental results (without disturbance)

To compare the robustness performance of the controllers half sinusoidal exogenous disturbances were added to the control inputs. Frequency of the disturbances is 2 Hz and amplitude for \(\widetilde{{d}_{\theta }}\) is 0.2592 Nm, and for \(\widetilde{{d}_{\psi }}\) is 0.1437 Nm as given in Fig. 7.

Fig. 7
figure 7

Disturbances for pitch and yaw motions

Time responses for the twin rotor system under external disturbances are now presented. Figure 8 shows the variation of sliding surface parameters that are online tuned by the fuzzy logic unit. As seen from the figure they are dynamically changed according to the state of the system. Figure 9 depicts the time responses in case of external disturbance. It is observed from this figure that the magnitudes of angular displacements and control voltages were reduced via both classical SOSMC and proposed FSOSMC controller. Furthermore, it is worth noting that chattering is suppressed with the SOSMC and proposed FSOSMC controllers.

Fig. 8
figure 8

Variation of the sliding surface parameters (with disturbance)

Fig. 9
figure 9

Experimental results (in case of disturbance)

To evaluate the success of implemented control algorithms evidently, the performance indexes given in Eqs. (62)–(64) were additionally calculated and given in Tables 3 and 4. It is observed from Table 3 that when there is no external disturbance the ITAE index for the pitch motion is smaller with FSOSMC than the first order SMC and classical SOSMC. For the yaw motion both classical SOSMC and proposed FSOSMC performed better than the SMC whereas classical SOSMC is slightly better than the proposed controller. Additionally, it is worth noting that this success is achieved without increasing the control effort. It really appears that CEI and CI indexes are smaller that is less control effort and chattering is used by both classical SOSMC and proposed FSOSMC when compared with the SMC. Similarly, it was observed from Table 4 that when there is external disturbance the ITAE index for FSOSMC is smaller than the one for classical SOSMC for both pitch and yaw motions. Additionally, it is observed that the designed second order sliding mode controllers utilized less control effort when compared to the first order SMC, and the chattering index of the first order SMC is greater. This reveals that with the proposed FSOSMC the performance is increased without increasing control effort while decreasing chattering.

Table 3 Performance indexes (without disturbance)
Table 4 Performance indexes (in case of disturbance)

Conclusion

A novel FSOSMC, in which the sliding surface parameters were tuned by means of a fuzzy logic algorithm, was proposed for the twin rotor system in this study. The aim was to increase the tracking performance of the twin rotor system and to suppress the chattering without increasing the control effort. To demonstrate the performance of the proposed FSOSMC, real-time experiments were conducted on the twin rotor system. When the time responses were investigated it revealed that the fuzzy logic tuning has increased the performance of the FSOSMC without increasing the control effort. Additionally, by using the second order sliding mode based control with super twisting algorithm in FSOSMC, paved the way to suppress chattering. The reduction in chattering increases the applicability of the controller in real time. The performance of the designed controllers was confirmed by the calculated trajectory tracking, control effort and chattering performance indexes based on the experimental results. In conclusion, considering the results obtained in this study reveals that the proposed FSOSMC outperformed the classical SMC and SOSMC since proposed controller provided better performance indexes in most cases. Therefore, proposed FSOSMC may be recommended for the robust and precise control of aerial vehicles in real time.