A brief equation set of a robust sliding mode TVC is presented in this section for UAV multirotor systems. Generally, hexagonal cases are equipped with more motors and propellers that provide more redundancy and improve control in the case of a motor failure. Thus, hexacopters are thus a well-liked option for heavy-lift applications [
20,
21,
22]. Then, as mentioned in the introduction, the solution provided in this paper is about installing flap vanes at the engine exhaust, which leads to employing a ducted fan application. Considering mentioned clues, and the position reference objective for the system, the system’s primary state matrix contains
, and their derivatives. Addressing the servos connected to the flap vanes, the whole attitude controller is upon their movements, so if every duct has four flaps at the exit, then, four deflection angles per duct will be added to the system’s states which complicates the process. Simplifying the problem, all the desired movements and turns could be summarized into the combination of all ducts, therefore, two flap vanes per duct will be sufficient for easiness in both mechanical and computational processes, which concludes two extra angles per duct and overall yields 12 deflection angles as additional states,
that in
,
i represents the duct number and
demonstrates the latitudinal or longitudinal mode of the vanes, respectively. Thus, knowing the actual and desired states of the drone, two principal modes are considered: vertical and attitude controller, which leads to the planar controller. Among several sliding modes (SMs) design approaches: pole placement, Lyapunov-based, optimal control-based, and model predictive methods, we chose a Lyapunov candidate that converges to zero and in a finite time and maintains there. To this end, a suitable sliding surface is defined, containing all attitude variables, which yield;
Where,
are roll, pitch, and yaw angles, respectively,
is the flap vane’s deflection angle, and the
is the desired value. Conditioning the Lyapunov candidate to be positive-definite, radially bounded, and decreasing along the sliding surface, the function and its derivative of
with respect to time are as follows,
Where
P is a positive-definite matrix, and
must be always negative to ensure that during the sliding mode, the system is always in a neighborhood of the sliding surface and will converge to the desired state despite any disturbances or uncertainties in the system. Defining SMC law as,
, in which
are constants that determine the rate of convergence to the sliding surface and are obtained through the controller design process. Thus,
Since
is bounded between
and 1,
will be negative whenever
(since
P and the constants
are all positive). This means that
is negative for all non-zero values of
S when
and
. Therefore, it is proven that
is always negative and the system converges to a stable equilibrium point, and the control law given by
guarantees the stability of the closed-loop system. Finally, substituting the earlier expression of
S,
Where,
,
, and
e refers to the difference between the desired and actual value. Hence, considering the control law, the attitude controller with respect to the flaps vanes’ deflection angle could be rewritten as,
Where, the constants
will be obtained by trial and error during the implementation, and
I demonstrate the inertial moment.