Next Article in Journal
Evaluation of the Service Performance of Soil–Bentonite Vertical Cut-Off Walls at Heavy Metal Contaminated Sites: A Review
Previous Article in Journal
The Data-Driven Optimization of Parcel Locker Locations in a Transit Co-Modal System with Ride-Pooling Last-Mile Delivery
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design and Simulation Verification of Model Predictive Attitude Control Based on Feedback Linearization for Quadrotor UAV

1
National Key Laboratory of Rotorcraft Aeromechanics, Nanjing University of Aeronautics & Astronautics, Nanjing 210016, China
2
Aircraft Design and Research Institute, Harbin Aircraft Industry Group Co., Ltd., Harbin 150066, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(9), 5218; https://doi.org/10.3390/app15095218
Submission received: 18 November 2024 / Revised: 16 April 2025 / Accepted: 6 May 2025 / Published: 7 May 2025
(This article belongs to the Special Issue Intelligent Optimization for Flight Control Systems)

Abstract

:
The flight dynamics of quadrotor UAVs are characterized by significant nonlinearity and inter-axis coupling, posing challenges for the direct application of linear control theory in flight control system design. This paper proposes a feedback linearization transformation method to reduce the computational burden of MPC while addressing the nonlinear coupled flight dynamics in attitude control. The quadrotor UAV’s attitude motion is transformed via feedback linearization into a linear decoupled model, consisting of three independent second-order systems. MPC theory is then employed to design the attitude control system. By solving the constrained optimal control problem within the MPC framework, control inputs for each second-order system are derived, enabling precise attitude tracking through receding horizon control theory. Simulation verifications were subsequently conducted, with the experiment comparing FLMPC, LMPC and AMPC. The results indicate that FLMPC outperforms both the other controllers in terms of control precision, computational efficiency and robustness to disturbances, suggesting its effectiveness for real-time UAV operations where both performance and computational resource constraints are critical.

1. Introduction

A quadrotor Unmanned Aerial Vehicle (UAV) is an aircraft with four rotors capable of vertical takeoff, landing and hovering. With its simple mechanical structure and excellent maneuverability, it is increasingly used in applications like military reconnaissance, cargo transport, emergency rescue and terrain mapping [1,2,3]. To ensure a safe flight and the completion of complex tasks, attitude control is crucial for the quadrotor UAV flight control system. A quadrotor UAV is a multi-input, multi-output (MIMO) nonlinear system with strong inter-axis coupling, making attitude control challenging, as adjustments on one axis often affect others. This challenge is further compounded by the system’s under-actuated nature, with only four inputs available to control six outputs. Additionally, its lightweight design makes it highly sensitive to disturbances such as wind, requiring robust control strategies to maintain stability [4,5]. Consequently, numerous engineers and researchers have conducted in-depth studies on these control challenges [6,7].
Proportional-Integral-Derivative (PID) control is a classic control design method known for its simple structure and ease of implementation [8,9,10]. Active Disturbance Rejection Control (ADRC) offers robust control by estimating and compensating for both external and internal disturbances in real time, while its nonlinear state error feedback ensures high-quality control performance [11]. The Sliding Mode Control (SMC) method is a control technique capable of handling nonlinear problems and exhibits strong robustness against system parameter variations and external disturbances [12,13]. However, each method has its limitations and achieving optimal control performance remains challenging.
Model Predictive Control (MPC) is a receding horizon control method known for its strong disturbance rejection, and robustness. Reference [14] demonstrated that Linear MPC (LMPC) outperforms both Proportional-Derivative (PD) and Linear Quadratic Regulator (LQR) in terms of control effectiveness and disturbance rejection for quadrotor UAV trajectory tracking. Despite this, LMPC struggles to effectively address the inherent nonlinear characteristics of the quadrotor UAV. In the most MPC-based methods, the linearized dynamics of the system is employed to avoid the complexity that results from nonlinear optimization problems [15,16]. The scholars in [17] designed an adaptive MPC method using Laguerre polynomials for quadrotor attitude stabilization and validated its feasibility. And in [18], Nonlinear MPC (NLMPC) provides better performance in trajectory tracking and system stability compared to LMPC, but this comes with a high computational cost. Although parameterized NMPC can reduce computational complexity, they may compromise control system performance to some extent [19]. In real-world flight scenarios, most MPC based methods rely on linearized system dynamics to simplify the control problem and avoid the computational complexity associated with solving nonlinear optimization problems. However, the inherently nonlinear dynamics of quadrotor UAVs often demand nonlinear control methods to achieve precise and stable flight performance. Although these nonlinear approaches can offer improved control accuracy and robustness, they are typically more challenging to design and implement, as they require advanced modeling and considerable computational resources. This trade-off highlights the ongoing need for efficient, real-time nonlinear control strategies in practical quadrotor applications.
Feedback Linearization (FL) can address the problem by transforming the system with coordinate adjustments and nonlinear state feedback, effectively bypassing intrinsic nonlinearities to enable the use of linear control methods [20,21]. Unlike conventional linearization, which only approximates system dynamics around a specific operating point and neglects higher-order dynamics, FL provides a globally valid linearization [22,23]. Reference [24] presents an adaptive tracking controller based on output feedback linearization to compensate for dynamical changes in a quadrotor’s center of gravity, successfully managing the uncertain gravity parameter and stabilizing the quadrotor in real time, as demonstrated through simulation results. Rahmat M F proposes an adaptive feedback linearization (AFBL) control approach, combined with a PID controller, to stabilize a quadrotor’s attitude and altitude in the presence of wind disturbances and parameter uncertainties [25]. While simulations demonstrate significant performance improvements over conventional methods, the approach neglects the nonlinear relationship between Euler angle rates and angular velocities in the body frame, making it unsuitable for scenarios involving rapid UAV maneuvers. In another study, Cai Z designs a feedback linearization model predictive control algorithm with a disturbance observer for quadcopter trajectory tracking, demonstrating effective tracking performance under disturbances through numerical simulations [26]. However, it assumes slight roll and pitch angle rotations and does not address the constraining effect on state variables in the model predictive control design.
This paper presents a feedback linearization model based predictive control method (FLMPC) approach for attitude control of quadrotor UAV, targeting precise and rapid tracking performance under system constraints. The core idea is to incorporate the nonlinear mapping between Euler angular velocities and body-frame angular velocities into the feedback linearization process, allowing the inherently nonlinear and coupled dynamics of the quadrotor to be transformed into a fully decoupled linear system. This transformation significantly reduces the computational complexity while enabling the determination of optimal control inputs within predefined constraints, a process in which the constraint on the original system state variables has been modified. The rest of the paper is organized as follows: Section 2 establishes the flight dynamics model of the quadrotor UAV and performs feedback linearization transformation to create a controlled object model, serving as the foundation for controller design and simulation. Section 3 details the design of the quadrotor UAV attitude controller based on FLMPC, including key design principles and constraints. Section 4 conducts simulation experiments, where the proposed method’s performance is evaluated through various test scenarios, demonstrating its effectiveness in achieving stable and responsive control. Section 5 provides a comprehensive summary of the findings, discusses the implications of the work, and suggests directions for future research to further refine and expand upon this control strategy. The Appendix A presents the process of designing an attitude controller using MPC.

2. Dynamics Model of Quadrotor UAV

2.1. Modeling of Attitude Motion Characteristics

The quadrotor’s flight is sustained by the forces generated by each of its four rotors, with each rotor producing thrust that contributes to the overall lift, stability, and control of the vehicle [27,28]. An inertial frame o   x e y e z e and a body-fixed frame o   x b y b z b , with the origin at the center of mass of the quadrotor as shown in Figure 1, are considered.
Based on the principles of rigid body dynamics, the rotational dynamics of a quadrotor can be expressed using the Newton–Euler method in the body fixed frame with the inertia matrix I = diag ( I x , I y , I z ) , assuming the neglect of gyroscopic torque and air resistance [29,30]:
I ω ˙ = ω × I ω + τ ,
where ω = ( p , q , r ) T is the angular velocity vector and ω ˙ is its derivative with respect to time; ω × I ω represents the gyroscopic effect due to the rotational motion of the quadrotor; and τ = τ x , τ y , τ z T is the external torque vector acting on the quadrotor.
To facilitate control-oriented modeling, the external torque vector τ is represented by the pitch, roll, and yaw control inputs U 1 , U 2 and U 3 . Accordingly, the rotational dynamics of the quadrotor can be derived from (1):
p ˙ = I y I z I x q r + 1 I x U 1 q ˙ = I z I x I y r p + 1 I y U 2 r ˙ = I x I y I z p q + 1 I z U 3 ,
The attitude of the quadrotor is given by the three Euler angles: yaw angle ϕ , pitch angle θ and roll angle ψ that together form the vector Ω = ( ϕ , θ , ψ ) T . The conversion relationship between Euler angle velocities Ω ˙ and angular velocities in the body frame ω is as follows:
p q r = R x R y R z 0 0 ψ ˙ + R x R y 0 θ ˙ 0 + R x ϕ ˙ 0 0 = 1 0 sin θ 0 cos ϕ cos θ sin ϕ 0 sin ϕ cos θ cos ϕ ϕ ˙ θ ˙ ψ ˙ ,
where
R x = 1 0 0 0 cos ϕ sin ϕ 0 sin ϕ cos ϕ ,   R y = cos θ 0 sin θ 0 1 0 sin θ 0 cos θ ,   R z = cos ψ sin ψ 0 sin ψ cos ψ 0 0 0 1 .
The above equation can be written as:
ϕ ˙ θ ˙ ψ ˙ = 1 tan θ sin ϕ tan θ cos ϕ 0 cos ϕ sin ϕ 0 sin ϕ sec θ cos ϕ sec θ p q r ,
In summary, from (2) and (4), the nonlinear dynamics model of the quadrotor attitude can be obtained as:
ϕ ˙ θ ˙ ψ ˙ p ˙ q ˙ r ˙ = p + q tan θ sin ϕ + r tan θ cos ϕ q cos ϕ r sin ϕ q sin ϕ sec θ + r cos ϕ sec θ I y I z I x q r I z I x I y r p I x I y I z p q + 0 0 0 0 0 0 0 0 0 1 I x 0 0 0 1 I y 0 0 0 1 I z U 1 U 2 U 3 ,
It can be seen from the equation that the attitude motion of the quadrotor UAV is nonlinear and exhibit inter-axis coupling. For attitude control design, this nonlinear coupling cannot be neglected.

2.2. Model Linear Transformation

The feedback linearization of the quadrotor UAV can be achieved through an intuitive transformation of the state variables and an input redefinition.
Since the goal of feedback linearization is to decouple (5) into three second-order linear systems, define the target system as:
ϕ ¨ = ϕ + k 1 ϕ ˙ θ ¨ = θ + k 2 θ ˙ ψ ¨ = ψ + k 3 ψ ˙ ,
where k 1 , k 2 and k 3 are constant parameters whose values are yet to be determined, and they play a crucial role in defining the system’s stability and dynamic performance.
The second derivatives ϕ ¨ , θ ¨ and ψ ¨ can be expressed in (7) based on the model (5) by setting u 1 = U 1 / I x , u 2 = U 2 / I y and u 3 = U 3 / I z :
ϕ ¨ = ϕ ˙ tan θ + ψ ˙ sec θ θ ˙ + σ 1 + u 1 + σ 2 + u 2 tan θ sin ϕ + σ 3 + u 3 tan θ cos ϕ θ ¨ = ϕ ˙ ψ ˙ cos θ + σ 2 + u 2 cos ϕ σ 3 + u 3 sin ϕ ψ ¨ = ϕ ˙ sec θ + ψ ˙ tan θ θ ˙ + σ 2 + u 2 sin ϕ sec θ + σ 3 + u 3 cos ϕ sec θ ,
where σ 1 = I y I z / I x q r , σ 2 = I z I x / I y r p , σ 3 = I x I y / I z p q .
Defining the state variable vector z T = z 1 , z 2 , z 3 , z 4 , z 5 , z 6 = ϕ , ϕ ˙ , θ , θ ˙ , ψ , ψ ˙ , the above equations (6) and (7) can be reformulated and expressed in a state–space representation as z ˙ = f z , u , where:
z ˙ 1 z ˙ 2 z ˙ 3 z ˙ 4 z ˙ 5 z ˙ 6 = z 2 z 1 + k 1 z 2 z 4 z 3 + k 2 z 4 z 6 z 5 + k 3 z 6 + 0 z 1 k 1 z 2 + f 1 z , σ + u 1 + u 2 tan z 3 sin z 1 + u 3 tan z 3 cos z 1 0 z 3 k 2 z 4 + f 2 z , σ + u 2 cos z 1 u 3 sin z 1 0 z 5 k 3 z 6 + f 3 z , σ + u 2 sin z 1 sec z 3 + u 3 cos z 1 sec z 3 .
Here
f 1 z , σ = z 2 tan z 3 + z 6 sec z 3 z 4 + σ 1 + σ 2 tan z 3 sin z 1 + σ 3 tan z 3 cos z 1 ,
f 2 z , σ = z 2 z 6 cos z 3 + σ 2 cos z 1 σ 3 sin z 1 ,
f 3 z , σ = z 2 sec z 3 + z 6 tan z 3 z 4   + σ 2 sin z 1 sec z 3 + σ 3 cos z 1 sec z 3 .
Define a virtual control vector:
v = N z , σ + M z u
where
N z , σ = f 1 ( z , σ ) + z 1 k 1 z 2 f 2 ( z , σ ) + z 3 k 2 z 4 f 3 ( z , σ ) + z 5 k 3 z 6
M z = 1 tan z 3 sin z 1 tan z 3 cos z 1 0 cos z 1 sin z 1 0 sin z 1 sec z 3 cos z 1 sec z 3
and substitute it for the second term on the right side of (8). The system can be reformulated into a linearized model with decoupled attitude dynamics, expressed as:
z ˙ = A z + B v
where
A = A 1 A 2 A 3 , A i = 0 1 1 k i , i = 1 , 2 , 3 ,
B = B 1 B 2 B 3 , B i = 0 1 , i = 1 , 2 , 3 .
Here A 1 , A 2 and A 3 represent the characteristic matrices of second-order linear systems for roll, pitch and yaw motions, respectively. The eigenvalues of these matrices and the damping ratios are:
λ i 1 , 2 = k i ± k i 2 4 2                 ( i = 1 , 2 , 3 ) ,
ξ i = k i 2                 ( i = 1 , 2 , 3 ) .
To stabilize these second-order systems and achieve a damping ratio of 0.707, set k 1 = k 2 = k 3 = 1.414 .
The inputs of the controlled system of the quadrotor UAV can be calculated as:
u = M z 1 v N z , σ ,
where N z , σ and M z are transformation matrices for decoupling and linearizing the controlled system model. The matrix M z is non-singular and the equation has a solution if and only if M z 0 . Therefore, the pitch angle range of the quadrotor UAV is limited in 90 ° , 90 ° .

3. Attitude Controller Design

This section presents the design of a model predictive controller (MPC) for the attitude control of the quadrotor UAV, based on the feedback-linearized model from the previous section. The structure of the attitude control system is illustrated in Figure 2, while the detailed design process of the attitude controller is provided in the Appendix A.

3.1. Prediction Equation for the Feedback Linearized Model

The discrete-time state–space equation of the feedback linearized model (12) can be obtained using the zero-order hold method:
z k + 1 = A d z k + B d v k ,
where A d = e A T s , B d = A 1 ( e A T s I ) B .
According to the model predictive control theory, (16) can be rewritten into an incremental form:
z k + 1 = A d δ z k + B d δ v k + z k ,
where δ v k = v k v k 1 , δ z k = z k z k 1 .
Based on the state vector z k k at step k, the state vector at step k + 1 can be predicted as:
z k + 1 k = A d δ z k k + B d δ v k k + z k k ,
the state vector at step k + 2 can be predicted as:
z k + 2 k     = ( A d 2 + A d ) δ z k k + ( A d B d + B d ) δ v k k + B d δ v k + 1 k + z k k .
where δ v k + i k is the control input increment at step k + i predicted at step k; z k + i k is the system state vector predicted at step k + i from step k.
Similarly, the state vectors at step k + Nc and at step k + Np are given by:
z k + N c k   = i = 1 N c A d i δ z k k + i = 0 N c 1 A d i B d δ v k k + + B d δ v k + N c 1 k + z k k .
z k + N p k = i = 1 N p A d i δ z k k + i = 0 N p 1 A d i B d δ v k k + + i = 0 N p N c A d i B d δ v k + N c 1 k + z k k .
where Nc is the control horizon and Np is the prediction horizon. To reduce the computational burden, the control inputs will be held constant at the value from the previous time step once the time exceeds the control horizon.
By combining equations (18) through (21) and defining the control input increment vector δ V k T = δ v k k δ v k + 1 k δ v k + N c k and state vector Z k T = z k + 1 k z k + 2 k z k + N p k , the predicted states from step k + 1 to k + Np can be written as:
Z k = P δ z k k + I z k k + H δ V k ,
where
P = A d i = 1 2 A d i i = 1 N p A d i N p × 1 , I = I n × n I n × n I n × n N p × 1 , H = B d 0 0 i = 0 1 A d i B d B d 0 i = 0 N c 1 A d i B d i = 0 N c 2 A d i B d B d i = 0 N p 1 A d i B d i = 0 N p 2 A d i B d i = 0 N p N c A d i B d N p × N c .

3.2. Model Predictive Control Performance

For a given control objective z d k + i , the performance index for the control within the prediction horizon Np at step k is defined as:
J = z k + N p k z d k + N p S 2 + i = 1 N p 1 z k + i k z d k + i Q 2 + i = 0 N c 1 δ v k + i k R 2 ,
where S , Q and R are weighting matrices for the terminal state, process state and input variables, respectively, and all are positive definite matrices. Defining the target vector Z d k = z d k + 1 z d k + 2 z d k + N p T and the equation above can then be rewritten in matrix vector form as shown in (24):
J = Z k Z d k Q ¯ 2 + δ V k R ¯ 2 ,
where Q ¯ = diag Q Q S and R ¯ = diag R R .
By substituting (22) into (24) and defining:
E k = Z d k P δ z k k I z k k ,
a standard quadratic performance index in terms of δ V k is obtained:
J = 1 2 δ V k T ( H T Q ¯ H + R ¯ ) δ V k ( H T Q ¯ E k ) T δ V k .

3.3. Constrained Virtual Control Solution

For the predicted control inputs u k + i where i = 1, 2, …, Np, there are upper and lower boundary constraints:
u min u k + i u max .
Utilizing the feedback linearization control law from (15), it follows that:
u min M k + i 1 1 ( v k + i N k + i 1 ) u max .
Therefore, the inequality constraints for the predicted virtual control input v [ k + i ] at step k are:
I 3 × 3 I 3 × 3 v k + i M k + i 1 u max + N k + i 1 ( M k + i 1 u min + N k + i 1 ) .
Given that v [ k + i ] = v [ k + i 1 ] + δ v [ k + i ] , it can be concluded that:
I 3 × 3 I 3 × 3 δ v k + i M k + i 1 u max + N k + i 1 v k + i 1 ( M k + i 1 u min + N k + i 1 v k + i 1 ) .
Similarly, the upper and lower constraint vectors for the predicted angular rate ω k + i at step k are denoted as ω max and ω min . And from (4), the inequality constraints for Ω ˙ k + i can be expressed as:
I 3 × 3 I 3 × 3 Ω ˙ k + i M k + i 1 ω max M k + i 1 ω min .
According to the theory of constrained model predictive control, the simulation tool “quadprog” can be utilized to obtain a set of optimal predicted control increment vectors for incremental control law (22), subject to the constraints (30) and (31), as well as the quadratic performance criterion (26). The first element of the predicted control increment vector, as shown in (32), corresponds to the virtual control input vector base on model predictive control theory [31,32]. This predictive control process is repeated to achieve MPC receding horizon control theory.
v k = I 3 × 3 0 3 × 3 0 3 × 3 δ V k * + v k 1
Based on the design principles outlined above, the attitude control of the quadrotor UAV is achieved through feedback linearization model predictive control, with the control law computation given by (15).

4. Simulation and Results Analysis

4.1. Methods

To verify the effectiveness of the proposed controller, simulations were performed using the quadrotor parameters listed in Table 1. The simulations were conducted on a computer with an Intel i5-9400F processor (Intel, Santa Clara, CA, USA) and 16 GB of memory.
The control parameters are Ts = 0.01 s, with Np = Nc = 10. The range for the three-axis angular velocities are [−1.5, 1.5], and the constraints on the three control inputs are [−1, 1]. The gains of the FLMPC controller are set as S = diag(1, 1, 1, 1, 1, 1), Q = diag(100, 1, 100, 1, 25, 1), R = diag(0.001, 0.001, 0.001). A comparison is made with LMPC [15] and adaptive MPC (AMPC) [18], where the gains for both controllers are S = diag(1, 1, 1, 1, 1, 1), Q = diag(100, 100, 25, 1, 1, 1), R = diag(10, 10, 10). The parameters of the three controllers remained constant throughout the simulations to ensure fair comparison.
The simulation starts with the quadrotor UAV in an initial hover state, with attitude angles ϕ = θ = ψ = 0 . A target pitch angle of 0.2 rad and a sinusoidal roll angle with an amplitude of 0.5 rad were applied to simulate the quadrotor’s flight with oscillatory motion, while maintaining the yaw angle at 0 rad.
The second case aims to evaluate the designed controller’s ability in handling sudden changes and assess their step response performance in maintaining stability and accurately reaching the specified target angles. Attitude targets of 0.8 rad for pitch, 0.2 rad for roll and 1.3 rad for yaw are applied while the quadrotor UAV is in the hover state.
To further validate the robustness and disturbance rejection capability of the designed controller, a step input with an amplitude of 1 rad was applied individually to each attitude angle and each angle was subjected to external white noise disturbances with a standard deviation of 0.01 rad, to simulate the uncertain disturbances encountered in real flight.

4.2. Results

The results are illustrated in the following figures. In Figure 3 and Figure 4, (a) shows the time response of the quadrotor’s attitude angles, (b) shows the angular velocities, (c) demonstrates the variation of the three control inputs over time and (d) displays the computation time of each controller. Figure 5 presents the white noise disturbances applied during the simulation. Figure 6 exhibits the attitude tracking curves in step inputs with disturbances.
As shown in Figure 3a, all controllers effectively track the desired input in pitch control with an approximate 270 ms delay behind the command curve. In terms of roll control, all controllers demonstrate comparable performance, following the target command accurately within 650 ms. For yaw control, the FLMPC controller maintains a steady angle close to 0. In contrast, the LMPC controller exhibits slight fluctuations, while the AMPC controller experiences more noticeable fluctuations. Integrating these observations with the computational time in Figure 3d, it is evident that the FLMPC controller achieves superior control performance with relatively lower computational cost, requiring only one-tenth of the computational time of the AMPC.
As observed in Figure 4a, all MPC controllers effectively reach and stabilize at their target values with minimal overshoot. FLMPC provides the fastest response for the pitch angle, stabilizing in approximately 0.95 s, followed by AMPC at around 1.65 s, and LMPC, which is influenced by channel coupling, taking the longest at about 2.7 s. For the roll and yaw angles, all controllers demonstrate similar settling times, though LMPC shows greater fluctuation due to coupling effects. Figure 4b shows that the variations in p and r remain well within their upper constraints, while Figure 4c illustrates that the maximum control inputs do not exceed their specified boundaries. Table 2 provides a summary of key performance metrics, including response time, overshoot and mean computation time for three controllers.
The FLMPC and AMPC controllers demonstrated superior performance in Figure 6. Both of them showing fluctuations under disturbances of less than 10%, while LMPC exhibited notable fluctuations, with a maximum overshoot of 50%, indicating a lower robustness to disturbances. These results confirm that FLMPC provides robust and stable control across all attitude angles, mitigating the impact of external disturbances effectively.

4.3. Discussion

The simulation results indicate that for systems with nonlinear coupling characteristics, all three controllers (FLMPC, LMPC and AMPC) are able to achieve target control under constraints and disturbances. However, the LMPC method shows significant shortcomings in handling inter-axis coupling, particularly in rapidly changing environments where it fails to meet high precision requirements and performs poorly when disturbances are encountered. On the other hand, while AMPC is capable of handling nonlinearities effectively, its computational time per iteration is relatively long, posing challenges for real-time applications, especially in cases with limited computational resources.
In contrast to the two methods mentioned above, the model predictive method combined with feedback linearization in this study offers distinct advantages in dealing with system nonlinearities and disturbances, along with outstanding computational efficiency. Due to its lower computational burden, FLMPC can update control inputs in real time, maintaining high-precision control performance. Furthermore, FLMPC exhibits excellent disturbance rejection capabilities, effectively mitigating the impact of external disturbances and ensuring system stability and accuracy. Thus, FLMPC is particularly well-suited for engineering applications that require high real-time performance when dealing with complex nonlinear systems.
Overall, FLMPC strikes a balance between control performance and computational efficiency. It not only outperforms the other methods in simulations but also holds strong potential for practical applications. Particularly in high-dynamic environments, FLMPC offers significant advantages over traditional control methods, ensuring superior control performance while reducing computational overhead and enhancing system reliability.

5. Conclusions

In this work, a feedback linearization model predictive control (FLMPC) approach is proposed to address the nonlinear and coupled characteristics of quadrotor UAV attitude dynamics. By explicitly incorporating the nonlinear mapping between Euler angular velocities and body-frame angular velocities into the feedback linearization process, the proposed method achieves effective linearization and decoupling of roll, pitch and yaw channels. This allows the design of an MPC controller on a linearized model with appropriately transformed constraints, thereby ensuring both theoretical soundness and practical feasibility.
Simulation results demonstrate the effectiveness of the proposed FLMPC method under various constraint and disturbance conditions. Comparative analyses with LMPC and AMPC show that, while all controllers can achieve the desired tracking performance, FLMPC consistently offers more stable and precise tracking, stronger disturbance rejection, and lower computational cost compared to AMPC. Unlike LMPC, which suffers from axis coupling, FLMPC successfully mitigates this issue through dynamic decoupling. These advantages make FLMPC a promising candidate for real-time attitude control of quadrotors in nonlinear and constrained environments.
However, it is also acknowledged that despite its improved computational efficiency, the optimization process in FLMPC still imposes a notable computational burden for embedded processors. As such, future work will focus on the development of faster and more efficient optimization algorithms, or approximation-based solvers, to further enhance the real-time applicability of the proposed method in practical embedded systems.

Author Contributions

Methodology, X.Y.; Validation, X.Y.; Writing—review & editing, J.X.; Funding acquisition, J.X.; Investigation, S.L. All authors contributed extensively to the current study. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Key Laboratory of Rotorcraft Aeromechanics Fund Program of China (9140C400504130C4148); supported by the Priority Academic Program Development of Jiangsu Higher Education Institutions of China.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data is contained within the article.

Conflicts of Interest

Author Shengwei Li was employed by the company Harbin Aircraft Industry Group Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Appendix A. Attitude Controller Design Based on MPC

(1) Discretization
For the state–space equation of a continuous linear time-invariant system (12), the solution of the system is:
z t = e A t t 0 z t 0 + e A t t 0 t e - A τ B v τ d τ .
Considering the sampling time from t k to t k + 1 , it can be concluded that:
z t k + 1 = e A t k + 1 t k z t k + e A t k + 1 t k t k + 1 e - A τ B v τ d τ .
Using the zero-order hold method and setting v t k = v t k + 1 , Equation (A2) can be written as:
z t k + 1 = e A t k + 1 t k z t k + t k t k + 1 e A t k + 1 - τ d τ B v t k .
Letting A d = e A t k + 1 t k = e A T s , B d = t k t k + 1 e A t k + 1 - τ d τ B = A 1 e A t k + 1 - τ | t k t k + 1 B = A 1 ( e A T s I ) B , the discrete-time state–space equation can be derived:
z k + 1 = A d z k + B d v k .
(2) Transformation of the MIMO system
To achieve control of a non-zero target and eliminate static error, rewrite Equation (A4) into an incremental form:
z k + 1 = A d δ z k + B d δ v k + z k .
where δ v k = v k v k 1 , δ z k = z k z k 1 .
Based on the state vector z k k at step k, the state vector at step k + 1 can be predicted as:
z k + 1 k = δ z k + 1 k + z k k = A d δ z k k + B d δ v k k + z k k
The state vector at step k + 2 can be predicted as:
z k + 2 k = δ z k + 2 k + z k + 1 k = A d δ z k + 1 k + B d δ v k + 1 k + z k + 1 k = A d 2 δ z k k + A d B d δ v k k + B d δ v k + 1 k + A d δ z k k + B d δ v k k + z k k = ( A d 2 + A d ) δ z k k + ( A d B d + B d ) δ v k k + B d δ v k + 1 k + z k k
where δ v k + i k is the control input increment at step k + i predicted at step k; z k + i k is the system state vector predicted at step k + i from step k.
Similarly, the state vector at step k + Nc and at step k + Np are given by:
z k + N c k = δ z k + N c k + z k + N c 1 k = A d δ z k + N c 1 k + B d δ v k + N c 1 k + z k + N c 1 k = A d N c δ z k k + A d N c 1 B d δ v k k + A d N c 2 B d δ v k + 1 k + + B d δ v k + N c 1 k + z k + N c 1 k = i = 1 N c A d i δ z k k + i = 0 N c 1 A d i B d δ v k k + + B d δ v k + N c 1 k + z k k
z k + N p k = δ z k + N p k + z k + N p 1 k = A d δ z k + N p 1 k + z k + N p 1 k = A d N p δ z k k + A d N p 1 B d δ v k k + A d N p 2 B d δ v k + 1 k + + A d N p N c B d δ v k + N c 1 k + z k + N p 1 k = i = 1 N p A d i δ z k k + i = 0 N p 1 A d i B d δ v k k + + i = 0 N p N c A d i B d δ v k + N c 1 k + z k k
where Nc is the control horizon and Np is the prediction horizon. To reduce the computational burden, the control inputs will be held constant at the value from the previous time step once the time exceeds the control horizon.
By combining Equations (A6) through (A9), the control input increment vector δ V and state vector Z can be defined as:
δ V k = δ v k k δ v k + 1 k δ v k + N c k T ,
Z k = z k + 1 k z k + 2 k z k + N p k T .
Then, the predicted states from step k + 1 to k + Np can then be written as:
Z k = P δ z k k + I z k k + H δ V k ,
where
P = A d i = 1 2 A d i i = 1 N p A d i N p × 1 ,   I = I n × n I n × n I n × n N p × 1 ,   H = B d 0 0 i = 0 1 A d i B d B d 0 i = 0 N c 1 A d i B d i = 0 N c 2 A d i B d B d i = 0 N p 1 A d i B d i = 0 N p 2 A d i B d i = 0 N p N c A d i B d N p × N c .
(3) Cost Function
For a given target z d k + i , the cost function that reflects the system performance requirements at time k can be defined as:
J = z k + N p k z d k + N p S 2 + i = 1 N p 1 z k + i k z d k + i Q 2 + i = 0 N c 1 δ v k + i k R 2
In the above equation, the first term represents the terminal cost, which helps eliminate static errors. The second term corresponds to the running cost, reflecting the deviation between the state variables and the desired target values. The third term represents the input cost, capturing the magnitude of the control effort exerted on the system. The relative importance of each objective is determined by the weight matrices S , Q and R , which are positive definite matrices.
Define the target vector Z d k = z d k + 1 z d k + 2 z d k + N p T . The above equation can be written in matrix–vector form as:
J = Z k Z d k Q ¯ 2 + δ V k R ¯ 2 ,
where Q ¯ = diag Q Q S , R ¯ = diag R R .
Substituting the state prediction Equation (A12) into the cost function (A14), and defining
E k = Z d k P δ z k k I z k k ,
the following is obtained:
J = H δ V k E k Q ¯ 2 + δ V k R ¯ 2 = 1 2 ( H δ V k E k ) T Q ¯ ( H δ V k E k ) +   1 2 δ V k T R ¯ δ V k = 1 2 δ V k T H T Q ¯ H δ V k 1 2 E k T Q ¯ H δ V k 1 2 δ V k T H T Q ¯ E k       + 1 2 E k T Q ¯ E k +   1 2 δ V k T R ¯ δ V k .
Since 1 2 E k T Q ¯ H δ V k and 1 2 δ V k T H T Q ¯ E k are transposes of each other and both are scalars, Equation (A16) can be written as:
J = 1 2 δ V k T H T Q ¯ H + R ¯ δ V k E k T Q ¯ H δ V k + 1 2 E k T Q ¯ E k .
Furthermore, since the last term in the above equation is determined by the initial state values z k k and δ z k k , and is unaffected by δ V k , it can be disregarded during optimization.
Therefore, a standard quadratic performance index in terms of δ V k can be formulated as:
J = 1 2 δ V k T ( H T Q ¯ H + R ¯ ) δ V k ( H T Q ¯ E k ) T δ V k .
(4) System Constraints
Feedback linearization introduces new state variables and virtual control quantities. The constraints on the angular velocity rate ω and the control input u of the quadrotor cannot be directly applied to the feedback linearized system. Instead, an indirect constraint method is employed, where the constraints from the original system are mapped to the new system at each time step.
For the control input u k + i , where i = 1, 2, …, Np, there are upper and lower boundary vectors u max and u min :
u min u k + i u max .
Substituting the feedback linearization control law u = M ( τ , ω ) 1 ( v - N ( τ , ω , z ) ) into the above equation, it can be derived that:
u min M k + i 1 1 ( v k + i N k + i 1 ) u max .
Then, the boundaries of u k + i can be expressed as inequality constraints on v k + i :
I 3 I 3 v k + i M k + i 1 u max + N k + i 1 ( M k + i 1 u min + N k + i 1 ) .
Since v k + i = v k + i 1 + δ v k + i , the Equation (A21) can be written as:
I 3 I 3 δ v k + i M k + i 1 u max + N k + i 1 v k + i 1 ( M k + i 1 u min + N k + i 1 v k + i 1 ) .
Similarly, the upper and lower boundary vectors of the angular velocity rate ω k + i can be expressed in the following form:
ω min M k + i 1 1 Ω ˙ k + i ω max .
Since Ω ˙ k + i = M k + i 1 ω k + i , the inequality constraints on the Ω ˙ k + i can be derived as:
I 3 I 3 Ω ˙ k + i M k + i 1 ω max M k + i 1 ω min .
For quadratic programming problems with inequality constraints, analytical solutions are often difficult to obtain, so numerical methods are used. Substituting Equations (A18), (A22) and (A24) into the quadprog function, the virtual control increment sequence δ V k * can be solved. The feedback linearized system’s virtual control vector is
v k = I 3 0 3 0 3 δ V k * + v k 1

References

  1. Li, B.; Wang, Y. An Enhanced Model Predictive Controller for Quadrotor Attitude Quick Adjustment with Input Constraints and Disturbances. Int. J. Control Autom. Syst. 2022, 20, 648–659. [Google Scholar] [CrossRef]
  2. Thusoo, R.; Jain, S.; Bangia, S. Quadrotors in the Present Era: A Review. Inf. Technol. Ind. 2021, 9, 164–178. [Google Scholar]
  3. Lei, B.; Wang, N.; Xu, P.; Song, G. New crack detection method for bridge inspection using UAV incorporating image processing. J. Aerosp. Eng. 2018, 31, 04018058. [Google Scholar] [CrossRef]
  4. Idrissi, M.; Annaz, F. Dynamic modelling and analysis of a quadrotor based on selected physical parameters. Int. J. Mech. Eng. Robot. Res. (IJMERR) 2020, 9, 784–790. [Google Scholar] [CrossRef]
  5. Li, C.; Wang, Y.; Yang, X. Adaptive fuzzy control of a quadrotor using disturbance observer. Aerosp. Sci. Technol. 2022, 128, 107784. [Google Scholar] [CrossRef]
  6. Roy, R.; Islam, M.; Sadman, N.; Mahmud, M.P.; Gupta, K.D.; Ahsan, M.M. A Review on Comparative Remarks, Performance Evaluation and Improvement Strategies of Quadrotor Controllers. Technologies 2021, 9, 37. [Google Scholar] [CrossRef]
  7. Hassan, S.; Ali, A.; Rafic, Y. A survey on quadrotors: Configurations, modeling and identification, control, collision avoidance, fault diagnosis and tolerant control. IEEE Aerosp. Electron. Syst. Mag. 2018, 33, 14–33. [Google Scholar]
  8. Sheta, A.; Braik, M.; Maddi, D.R.; Mahdy, A.; Aljahdali, S.; Turabieh, H. Optimization of PID Controller to Stabilize Quadcopter Movements Using Meta-Heuristic Search Algorithms. Appl. Sci. 2021, 11, 6492. [Google Scholar] [CrossRef]
  9. Al Tahtawi, A.R.; Yusuf, M. Low-cost quadrotor hardware design with PID control system as flight controller. Telecommun. Comput. Electron. Control 2019, 17, 1923–1930. [Google Scholar] [CrossRef]
  10. Mirtaba, M.; Jeddi, M.; Nikoofard, A.; Shirmohammadi, Z. Design and implementation of a low-complexity flight controller for a quadrotor UAV. Int. J. Dyn. Control 2023, 11, 689–700. [Google Scholar] [CrossRef]
  11. Qiao, Z.; Zhuang, K.; Zhao, T.; Xue, J.; Zhang, M.; Cui, S.; Gao, Y. Simulation of a Quadrotor under Linear Active Disturbance Rejection. Appl. Sci. 2022, 12, 12455. [Google Scholar] [CrossRef]
  12. Labbadi, M.; Cherkaoui, M. Robust Integral Terminal Sliding Mode Control for Quadrotor UAV with External Disturbances. Int. J. Aerosp. Eng. 2019, 2019, 2016416. [Google Scholar] [CrossRef]
  13. Pan, J.; Shao, B.; Xiong, J.; Zhang, Q. Attitude Control of Quadrotor UAVs Based on Adaptive Sliding Mode. Int. J. Control Autom. Syst. 2023, 21, 2698–2707. [Google Scholar] [CrossRef]
  14. Islam, M.; Okasha, M. A Comparative Study of PD, LQR and MPC on Quadrotor Using Quaternion Approach. In Proceedings of the 2019 7th International Conference on Mechatronics Engineering (ICOM), Putrajaya, Malaysia, 30–31 October 2019; pp. 1–6. [Google Scholar]
  15. Lopes, R.V.; Santana, P.H.R.Q.A.; Borges, G.; Ishihara, J. Model predictive control applied to tracking and attitude stabilization of a VTOL quadrotor aircraft. In Proceedings of the 21st International Congress of Mechanical Engineering, Natal, Brazil, 24–28 October 2011; pp. 176–185. [Google Scholar]
  16. Chikasha, P.N.; Dube, C. Adaptive Model Predictive Control of a Quadrotor. Ifac Pap. 2017, 50, 157–162. [Google Scholar] [CrossRef]
  17. Villarreal, O.J.G.; Rossiter, J.A.; Shin, H. Laguerre-based adaptive MPC for attitude stabilization of quad-rotor. In Proceedings of the 2018 UKACC 12th International Conference on Control (CONTROL), Sheffield, UK, 5–7 September 2018; pp. 360–365. [Google Scholar]
  18. Benotsmane, R.; Vásárhelyi, J. Towards Optimization of Energy Consumption of Tello Quad-Rotor with Mpc Model Implementation. Energies 2022, 15, 9207. [Google Scholar] [CrossRef]
  19. Murilo, A.; Lopes, R.V. Unified NMPC framework for attitude and position control for a VTOL UAV. Proc. Inst. Mech. Eng. Part I J. Syst. Control Eng. 2019, 233, 889–903. [Google Scholar] [CrossRef]
  20. Kuantama, E.; Tarca, I.; Tarca, R. Feedback linearization LQR control for quadcopter position tracking. In Proceedings of the 2018 5th International Conference on Control, Decision and Information Technologies (CoDIT), Thessaloniki, Greece, 10–13 April 2018; pp. 204–209. [Google Scholar]
  21. Kong, X.; Abdelbaky, M.A.; Liu, X.; Lee, K.Y. Stable feedback linearization-based economic MPC scheme for thermal power plant. Energy 2023, 268, 126658. [Google Scholar] [CrossRef]
  22. Te Braake, H.A.B.; Ayala Botto, M.; Sá da Costa, J.; van Can, H.J.L.; Verbruggen, H.B. Linear predictive control based on approximate input-output feedback linearisation. IEE Proc.-Control Theory Appl. 1999, 146, 295–300. [Google Scholar] [CrossRef]
  23. Ermeydan, A.; Kaba, A. Feedback linearization control of a quadrotor. In Proceedings of the 2021 5th International Symposium on Multidisciplinary Studies and Innovative Technologies (ISMSIT), Ankara, Turkey, 21–23 October 2021; pp. 287–290. [Google Scholar]
  24. Palunko, I.; Fierro, R. Adaptive control of a quadrotor with dynamic changes in the center of gravity. IFAC Proc. Vol. 2011, 44, 2626–2631. [Google Scholar] [CrossRef]
  25. Rahmat, M.F.; Eltayeb, A.; Basri, M.A.M. Adaptive feedback linearization controller for stabilization of quadrotor UAV. Int. J. Integr. Eng. 2020, 12, 1–17. [Google Scholar]
  26. Cai, Z.; Zhang, S.; Jing, X. Model predictive controller for quadcopter trajectory tracking based on feedback linearization. IEEE Access 2021, 9, 162909–162918. [Google Scholar] [CrossRef]
  27. Baek, J.; Jung, J. A Model-Free Control Scheme for Attitude Stabilization of Quadrotor Systems. Electronics 2020, 9, 1586. [Google Scholar] [CrossRef]
  28. Xiong, J.J.; Zheng, E.H. Position and attitude tracking control for a quadrotor UAV. ISA Trans. 2014, 53, 725–731. [Google Scholar] [CrossRef]
  29. Shen, S.; Xu, J. Attitude active disturbance rejection control of the quadrotor and its parameter tuning. Int. J. Aerosp. Eng. 2020, 2020, 8876177. [Google Scholar] [CrossRef]
  30. Rinaldi, M.; Primatesta, S.; Guglieri, G. A Comparative Study for Control of Quadrotor UAVs. Appl. Sci. 2023, 13, 3464. [Google Scholar] [CrossRef]
  31. Morato, M.M.; Normey-Rico, J.E.; Sename, O. Model predictive control design for linear parameter varying systems: A survey. Annu. Rev. Control 2020, 49, 64–80. [Google Scholar] [CrossRef]
  32. Okasha, M.; Kralev, J.; Islam, M. Design and Experimental Comparison of PID, LQR and MPC Stabilizing Controllers for Parrot Mambo Mini-Drone. Aerospace 2022, 9, 298. [Google Scholar] [CrossRef]
Figure 1. Configuration, inertial and body fixed frame of the quadrotor.
Figure 1. Configuration, inertial and body fixed frame of the quadrotor.
Applsci 15 05218 g001
Figure 2. The attitude control system structure.
Figure 2. The attitude control system structure.
Applsci 15 05218 g002
Figure 3. Controller performance in roll oscillations and pitch step. (a) Angular attitudes curves. (b) Angular velocities curves. (c) Control inputs curves. (d) Computation time.
Figure 3. Controller performance in roll oscillations and pitch step. (a) Angular attitudes curves. (b) Angular velocities curves. (c) Control inputs curves. (d) Computation time.
Applsci 15 05218 g003aApplsci 15 05218 g003b
Figure 4. Controller performance in roll, pitch and yaw step inputs. (a) Angular attitudes curves. (b) Angular velocities curves. (c) Control inputs curves. (d) Computation time.
Figure 4. Controller performance in roll, pitch and yaw step inputs. (a) Angular attitudes curves. (b) Angular velocities curves. (c) Control inputs curves. (d) Computation time.
Applsci 15 05218 g004aApplsci 15 05218 g004b
Figure 5. Disturbances applied to each attitude angle.
Figure 5. Disturbances applied to each attitude angle.
Applsci 15 05218 g005
Figure 6. Attitude tracking curves in step inputs with disturbances.
Figure 6. Attitude tracking curves in step inputs with disturbances.
Applsci 15 05218 g006
Table 1. Parameters of quadrotor.
Table 1. Parameters of quadrotor.
ParametersValuesUnit
m0.8kg
Ix9.7 × 10−3kg∙m2
Iy9.7 × 10−3kg∙m2
Iz1.7 × 10−2kg∙m2
l0.06m
g9.81m/s2
Table 2. Key performance metrics for the three controllers.
Table 2. Key performance metrics for the three controllers.
Performance
Metrics
Response Time (s)Overshoot (%)Mean
Computation Time (ms)
ϕ θ ψ ϕ θ ψ
FLMPC0.830.952.070.460.000.016.03
LMPC0.762.72.251.072.171.885.23
AMPC0.631.651.901.670.000.0047.59
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Yuan, X.; Xu, J.; Li, S. Design and Simulation Verification of Model Predictive Attitude Control Based on Feedback Linearization for Quadrotor UAV. Appl. Sci. 2025, 15, 5218. https://doi.org/10.3390/app15095218

AMA Style

Yuan X, Xu J, Li S. Design and Simulation Verification of Model Predictive Attitude Control Based on Feedback Linearization for Quadrotor UAV. Applied Sciences. 2025; 15(9):5218. https://doi.org/10.3390/app15095218

Chicago/Turabian Style

Yuan, Xingyu, Jinfa Xu, and Shengwei Li. 2025. "Design and Simulation Verification of Model Predictive Attitude Control Based on Feedback Linearization for Quadrotor UAV" Applied Sciences 15, no. 9: 5218. https://doi.org/10.3390/app15095218

APA Style

Yuan, X., Xu, J., & Li, S. (2025). Design and Simulation Verification of Model Predictive Attitude Control Based on Feedback Linearization for Quadrotor UAV. Applied Sciences, 15(9), 5218. https://doi.org/10.3390/app15095218

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop