Abstract
This study investigates the longitudinal motion control of unmanned aerial vehicles through a simulation in MATLAB. The linear model of an unmanned aerial vehicle is applied to controllers to explicate the longitudinal motion of the unmanned aerial vehicle. The ideal performance for an unmanned aerial vehicle is to achieve the desired response instantly with 100% precision. However, currently available controllers need further improvements. Thus, a proportional-derivative linear quadratic regulator controller is developed and compared with a proportional-integral-derivative controller, a linear quadratic regulator controller, and a proportional linear quadratic regulator controller. The proportional-derivative linear quadratic regulator controller enhances the response of the system by reducing settling time by more than 95% compared with other available controllers. Additionally, the proportional-derivative linear quadratic regulator improves the root mean square error by almost 50% compared with the proportional linear quadratic regulator controller and improves rise time by almost 96% with reasonable overshoot.
Keywords
Introduction
Small unmanned aerial vehicles (UAVs) have been widely developed in recent years and have been implemented in both military and civilian applications such as applications for search and rescue, surveillance 1 and reconnaissance, traffic monitoring, wild life suppression, data collection, transmission, and so on.2–4 Researchers have great interest in UAV development due to the minimization of the risk factors for pilots and the drastic reduction of cost operations.5,6 However, the communication link between UAVs and ground stations possesses a weighty time delay, and the unmanned characteristic of the UAV prevents its pilot from detecting its real-time motion. 6
Hence, a flight control system that has excellent performance is crucial. Ultimately, a fully-autonomous system for the UAV is developed to take complete advantage of UAVs. In the meantime, computational algorithms, such as proportional-integral-derivative (PID), linear quadratic regulator (LQR), fuzzy logic, and neural network, have been studied to stabilize UAVs during flight operation. 7 Currently available controllers remain to provide less than ideal performance and even small improvements on these controllers can produce a significant effect. For example, a typical military micro-air vehicle (MAV) 8 with a cruise speed of 87.4 m/s can decrease the distance for stabilization by 17.4 m when settling time is reduced by only 0.2 s.
The LQR controller is a well-known controller for minimizing cost functions. In vertical flight motion, the LQR controller has been tested and proven to be effective. 9 This controller has also been applied in various aircraft models to verify the performance of the controllers therein. Studies have been conducted on the combination of the LQR controller with a Kalman filter to form a linear quadratic Gaussian (LQG) controller. The purpose of this combination is to lessen the effect of noise disturbance on the controller performance. However, the LQG controller has failed in real-time testing due to insufficient robustness. 10 Moreover, the response speed and stability margins of the LQG controller are lower than that of the LQR controller. 11
PID controller is another commonly used controller, implemented successfully in actual aircraft control systems. 12 This controller is often implemented to enhance the response times of systems with first- or second-order characteristics. 13 The PID controller is popular because its simple structure can be easily applied with sufficient performance.
However, in analyzing the longitudinal motion of UAVs, the performance of the proportional linear quadratic regulator (P-LQR) controller is better than that of both PID and LQR controllers. 14 The main drawback of the P-LQR controller is with regard to overshoot. Therefore, a new controller, named the proportional-derivative linear quadratic regulator (PD-LQR) controller, for analyzing the longitudinal motion of UAVs is herein designed by combining the LQR and PD controllers. A simulation programmed using Simulink language is conducted on the proposed controller and the other controllers to identify differences in their performance. Results from the analysis show that the PD-LQR controller performs better than the other controllers.
The mathematical model of an UAV is discussed in the next section, followed by the performance indexes to be used in analysis. Then, the PID, LQR, and P-LQR controllers are described. The concept of the PD-LQR controller and the purpose for the proposed combination are explained in PD_LQR Controller. Finally, the simulation results and analysis are discussed in detail.
Mathematical model of UAV
A UAV is assumed to fly in a steady, level state with a constant velocity. For the present investigation on longitudinal motion, the small UAV model, Bluebird, is used. Moreover, the short-period model is herein used, as this model is more accurate for studying aircraft longitudinal motion than the phugoid model. A short period model for the Bluebird is expressed by Lwin,
15
as shown in equation (1)
The longitudinal transfer function of this model, by using steering inertia model transfer function,
7
can be estimated using equation (2)
The state matrix can then be acquired by converting the transfer function (equation 3)
The longitudinal motion of the UAV can then be investigated using either the transfer function or the state space variables depending on controller requirements.
Performance indexes
Generally, certain parameters defined throughout this investigation, including overshoot and control precision, have acceptable limit ranges. Any flight will not be comfortable if overshoot is severe and control precision is not low enough. Thus, the recommended acceptable range of overshoot has been set to not exceed 10%, 11 and control precision to not exceed ±1%. 16 Moreover, the performance indexes for the analysis take into consideration the wide range of UAV sizes. The size of an UAV can be as small as 15 cm, as with the UAV known as MAV. Nevertheless, a MAV can fly at an average of 50 km/h. 17 Therefore, the expected level of precision in this study is set to ±0.001 s.
PID controller
Currently, the PID controller is widely used in industrial applications
7
due to its simplicity. This controller involves three gain parameters including proportional, integral, and derivative gains.
18
To minimize cost function, this controller adjusts input value to reduce the contrast between the desired value and the measured value. The equation of the PID controller can be expressed as follows19–21
LQR controller
An LQR controller is a closed-loop system with an optimal control technique. The output of the system is compared to the set-point value, and feedback is returned to the system through controller gain K.
18
This system can be expressed in state variable form (equation 5)22,23
Obtaining controller K is needed to achieve the desired output
18
; the optimal control vector (equation 6) for the state space form in a system is7,9,18,19,22–24
The cost function known (equation 7) as the quadratic performance index needs to be reduced to acquire an optimal control signal7,9,19,22,24
Q is a positive semi-definite matrix and R is a positive definite matrix. If Q is large, the state of the system x(t) must be lowered to keep J small. If R is high, the control input u(t) must be lessened to keep J small. In order to calculate optimal gain K, the algebraic Riccati equation (equation 8)22,24 must be solved.
K (equation 9) can be obtained through
23
Moreover, MATLAB can be used to obtain K by using command LQR (A, B, C, D, Q, and R)25,26 as shown in equation (10)
P-LQR controller
A P-LQR controller is the combination of a proportional controller and an LQR controller. The proportional controller improves the LQR controller by shortening rise time and settling time and improving the root mean square error (RMSE). However, the proportional controller tends to increase overshoot. In this study, the proportional gain after tuning is 0.142. The flow of a P-LQR controller is shown in Figure 3.
The flow of a PID controller. The flow of a LQR controller. The flow of a P-LQR controller.


PD-LQR controller
To further improve the response performance in current available controllers, a combination of the LQR controller and the PD controller is proposed. The optimal gain for the LQR is obtained by solving the algebraic Riccati equation22,24; combining this with a PD controller can improve the current LQR controller response performance without affecting the desired output. A proportional controller can increase response speed and thus shorten the time needed to reach the desired output. Moreover still, another gain parameter is required to balance the desired output. The downside of this controller is its tendency to increase overshoot and make the system more unstable than before. Hence, the derivative controller element in the proposed PD-LQR controller reduces the overshoot and makes the response smooth and stable. An integral controller is not included in this combination as it will affect the system output when it is added to an LQR controller. Figure 4 shows the flow of the PD-LQR controller.
The flow of the PD-LQR controller.
For defining the proportional and derivative gains of the model, the Ziegler and Nichols method7,27,28 is no longer suitable because the model is in a state space form. In the first place, the input from the system to the PD controller is already in a stable form. They act like a “booster” to the LQR controller, resulting in a fast and improved response performance while maintaining overshoot within the acceptable range. Tuning both proportional and derivative gains (i.e. increasing proportional gain to optimize derivative gain) indicate that the response performance is improving, until a certain maximum value is reached and performance becomes unstable.
Increment of proportional gain in PD-LQR
Figure 5 shows the rise time and settling time along proportional gain without the derivative controller gain. When the proportional controller increases response speed, rise time will decrease when proportional gain increases. Nonetheless, rise time will decrease to the minimum level and remain almost constant when proportional gain is further enlarged. However, this will drastically increase the overshoot of the system, as shown in Figure 6, which is characteristic of the proportional controller. The overshoot increases sharply at the beginning but eventually converges to the maximum level.
Rise time and settling time along proportional gain. Overshoot and steady-state error along proportional gain.

The oscillation issue of the response becomes severe when proportional gain is high, increasing the settling time of the system even though rise time is at the minimum level. A high magnitude of overshoot when proportional gain is high also leads to a high settling time, which is pronounced when proportional gain is more than 275. The steady-state error is almost constant when proportional gain is low. Nonetheless, the system becomes unstable because of the oscillation and overshoot problems at high proportional gain. Thus, the steady-state error fluctuates (Figure 6). Additionally, RMSE exhibits only a slight improvement with the increase of proportional gain (Figure 7).
RMSE along proportional gain.
Increment of derivative gain for particular proportional gain in PD-LQR
Any proportional gain value can be optimized by adding an optimized derivative gain. The derivative controller will reduce overshoot and diminish oscillation issues caused by the proportional controller with an increase in rise time and settling time. Figures 8–10 show the response performance of the system with a proportional gain of 10 along the derivative gain.
Rise time and settling time along derivative gain when proportional gain = 10. Overshoot and steady-state error along derivative gain when proportional gain = 10. RMSE along derivative gain when proportional gain = 10.


Generally, rise time increases almost linearly from derivative gain 0 to 1 because the derivative controller tends to lessen overshoot by enlarging error correction and to make for a smooth and stable response. As a result, a longer response time is needed to achieve the desired output. The settling time is magnified with the rise time. However, oscillations occur in the response especially when proportional gain is high, which increases the settling time of the response. As the derivative gain increases, it eventually reduces the oscillations, reducing settling time significantly. As shown in Figure 8, settling time decreases to a minimum point before it increases. This minimum point occurs just when all oscillations are diminished and where the output would be stable afterwards and at which settling time increases in approximately the same rate as rise time.
As shown in Figure 9, the overshoot drops remarkably when derivative gain rises and remains near zero after the gain reaches a certain value. The steady-state error of the system remains near zero throughout the plot (Figure 9). Nonetheless, it is likely to decrease as the gain is enlarged. In addition, the RMSE is amplified because the slope of the response decreases as the derivative gain increases. Clearly thus, the optimum derivative gain for the given proportional gain is at the point when settling time is at the lowest limit. This point is also where the rise time and RMSE are considerably low and overshoot is significantly reduced.
Increment of proportional gain with optimized derivative gain in PD-LQR
Figures 11–13 show the response performance of the system when optimized derivative gains are applied to each of the corresponding proportional gains. Overall, a slight increase in rise time occurs after optimized derivative gain is applied in the system. Meanwhile, settling time is improved drastically especially at high proportional gain. The plot is decreasing smoothly, as in the rise time plot, which is significantly contrary to the plot in Figure 5. Nonetheless, settling time would decline to the minimum level and would climb again when the proportional gain is too high, and adding an optimized derivative gain would no longer improve the system efficiently.
Rise time and settling time along proportional gain with optimized derivative gain. Overshoot and steady state error along proportional gain with optimized derivative gain. RMSE along proportional gain with optimized derivative gain.


The changes in overshoot after the application of an optimized derivative gain exhibits an interesting trend. The overshoot remains almost constant (around 1% in this case study) as the proportional gain grows. This indicates that adding a derivative controller can provide a consistent overshoot in the system. However, overshoot would still increase when the proportional gain is over a certain limit (Figure 12).
The steady-state error herein is more stable compared to that shown in Figure 6 because the derivative controller tends to decrease steady-state error as well. Apart from the steady-state error, RMSE also increases when optimized derivative gain is added to the system initially. However, RMSE decreases when proportional gain increases, until the minimal level is reached, as shown in Figure 13. Thus, the selection of an optimum proportional gain with optimized derivative gain for the PD-LQR controller can be concluded with the following characteristics: (1) minimum settling time for the system; and (2) overshoot is still at a consistent value.
Tuning the proportional and derivative gains of the PD-LQR
Given that derivative gain needs to be optimized for each proportional gain, hundreds or thousands of loops may be involved to obtain the optimized derivative gain for a particular proportional gain. Moreover, the points of proportional gain required for optimization are probably at the thousands. This increases the cost for optimization severely. To reduce this cost, the iteration loop can be designed in a more efficient way as that shown in Figure 14.
Flowchart for tuning proportional gain and derivative gain.
The advantage of this method is its use of the least number of loops for performing analysis on the possible values of the gain, from lowest to highest. The gain with the smallest settling time will be chosen; the gains just before and just after the chosen gain will be set as the new lowest limit and the new highest limit of the gain, respectively. The optimum gain will converge to a more precise value as the step is repeated. This method can be used in the optimization of proportional and derivative gains. The proportional and derivative gains in this case study are 426.09 and 1.513, respectively.
Results and discussions
Figure 15 indicates the response simulation of PID, LQR, P-LQR, and PD-LQR. All these controllers try to achieve the desired output. Among all controllers, the PID controller is the slowest to reach the desired output, whereas the PD-LQR controller is the fastest. Figure 16 shows the rise time, settling time, and RMSE of the four controllers. The rise time of the PID controller is 0.374 s while that of the LQR controller is 0.157 s. Although the rise time of the P-LQR controller is 0.135 s, which is lower than that of the PID and LQR controllers, the rise time of the PD-LQR controller is only 0.006 s, or 4.4% of the rise time of the P-LQR controller.
Response simulation of the PID, LQR, and PD-LQR controllers. Rise time, settling time, and RMSE among controllers.

Overshoot and steady-state error among controllers.
PID: proportional-integral-derivative; LQR: linear quadratic regulator; P-LQR: proportional linear quadratic regulator; PD-LQR: proportional-derivative linear quadratic regulator.
Differences in performance parameter improvements among controllers.
PID: proportional-integral-derivative; LQR: linear quadratic regulator; P-LQR: proportional linear quadratic regulator; PD-LQR: proportional-derivative linear quadratic regulator; RMSE: root mean square error.
Conclusion
Longitudinal motion control of an UAV is investigated in this paper. PID, LQR, P-LQR, and PD-LQR controllers of the UAV model are studied through simulation which was programmed using Simulink. The comparison of controllers considered the aspects of rise time, settling time, overshoot, steady-state error, and RMSE. The results show that the PD-LQR controller performs better than other controllers in almost all parameters. In future studies, this controller could be applied in a non-linear UAV model to determine its capability for robustness.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This publication was supported by Universiti Sains Malaysia (Grant No. 304/PAERO/60312047).
