Adaptive Linear Quadratic Attitude Tracking Control of a Quadrotor UAV Based on IMU Sensor Data Fusion.

In this paper, an infinite-horizon adaptive linear quadratic tracking (ALQT) control scheme is designed for optimal attitude tracking of a quadrotor unmanned aerial vehicle (UAV). The proposed control scheme is experimentally validated in the presence of real-world uncertainties in quadrotor system parameters and sensor measurement. The designed control scheme guarantees asymptotic stability of the close-loop system with the help of complete controllability of the attitude dynamics in applying optimal control signals. To achieve robustness against parametric uncertainties, the optimal tracking solution is combined with an online least squares based parameter identification scheme to estimate the instantaneous inertia of the quadrotor. Sensor measurement noises are also taken into account for the on-board Inertia Measurement Unit (IMU) sensors. To improve controller performance in the presence of sensor measurement noises, two sensor fusion techniques are employed, one based on Kalman filtering and the other based on complementary filtering. The ALQT controller performance is compared for the use of these two sensor fusion techniques, and it is concluded that the Kalman filter based approach provides less mean-square estimation error, better attitude estimation, and better attitude control performance.


Introduction
Unmanned aerial vehicle (UAV) systems, particularly quadrotor UAV systems, have been popular in various autonomous surveillance and transportation applications in recent years. Robotics and control researchers have been interested in improving quadrotor UAV systems with regard to path planning, tracking, stability and autonomous motion capability in simultaneous localization and mapping (SLAM) tasks for difficult missions such as defense patrol duties, agricultural activities, surveillance, and rescue [1][2][3][4][5][6].
In the literature, various control approaches have been proposed for quadrotor UAV systems. For attitude tracking control and stabilization, researchers have developed solutions such as quaternion-based feedback control for exponential attitude stabilization [5], robust adaptive attitude tracking control [7], robust attitude control for uncertain quadrotors with proportional-derivative (PD) controller combined with a robust compensator [8], robust nonlinear design under uncertainties and delays [9], and fractional sliding modes based attitude control [10].
One of the main control interests for quadrotors UAV is optimization of time and energy (battery) consumption by designing optimal path planning and optimal tracking control. For such optimal attitude tracking, Ref. [1] has designed a linear quadratic regulation (LQR) based attitude stabilization.
For solving a more general form of the same problem under wind gust disturbances, a switching model predictive attitude controller is developed in [11]. Ref. [12] presents L 1 optimal robust tracking control to compensate persistent disturbances in translational and rotational (attitude) dynamics.
Linear-quadratic (LQ) based optimal control frameworks constitute a systematic toolset for calculating ideal control gains with guaranteed system stability under LQ design conditions. LQ-based control schemes provide robust and precise steady-state tracking while the performance index (quadratic cost function) adjusts optimality trade-off between tracking/regulator performance and battery consumption. A particular the LQ-based control approach is infinite-horizon optimal regulation based on linear time-invariant (LTI) models. This approach is widely used in real-time applications since its solution does not have computational complexities for obtaining constant state-feedback control (Kalman) gains by solving the algebraic Riccati Equation (ARE). The infinite-horizon LQR has been mostly used in many earlier works as studied for the quadrotor UAV in [1] for attitude state regulation and stability.
On the other hand, linear-quadratic tracking (LQT) problems have gained less attention compared to LQR problems, since time-varying reference trajectories lead to further analysis and computational complexities. LQT control schemes typically consist of two state-feedback and feed-forward terms. The state-feedback terms guarantee system stability by state-feedback (Kalman) gains which are calculated offline solving differential Riccati equation (DRE). The feed-forward terms provide optimal tracking of time-varying bounded reference trajectories utilizing the differential auxiliary vector signal equation. In practice, computational complexities arise because of the time variations in the feed-forward terms. Accordingly, the literature on LQT control design and applications on real-time systems is limited. Ref. [13] presents an offline solution to the infinite-horizon LQT problem by solving the feed-forward term based on calculating the initial condition of the auxiliary vector signal. The authors present a real-time implementation of this solution on flexible beams system in [14]. Other than the classical solution, Ref. [15] presents an online reinforcement learning algorithm to solve LQT problem without requiring the knowledge of the system drift dynamics or the command generator dynamics.
Regarding LQT of quadrotor UAV systems, Ref. [16] presents a finite-horizon LQT control design with time-varying control gains which are calculated solving offline discrete time matrix Riccati equations for the linearized full dynamics of the quadrotor UAV. Consideration of finite-horizon LQT with known boundary conditions at the initial and final time instants prevents the computational complexity issues with implementation of this design. However, in many practical cases, including the cases considered in this paper, since the boundary conditions are unknown, infinite-horizon LQT needs to be considered for designing an alternative optimal linear tracking controller.
In this paper, by the motivations of LQ-based optimal control advantages as stated above and lack of infinite-horizon LQT control schemes with their applications on real-time systems in literature, we present an infinite-horizon LQT control design, its practical solution and its experimental validation on the real-time quadrotor UAV with inertial parametric uncertainties and Inertial Measurement Unit (IMU) sensor noises. Furthermore, to improve robustness against parametric uncertainties, the presented LQT control design is combined with an adaptive parameter identification (PI) scheme based on least-squares (LS) estimation. Combining the LQT control design and the PI scheme, an adaptive LQT (ALQT) control scheme is developed for optimal attitude tracking of quadrotor UAVs, with reduced tracking error and battery consumption.
Reliable attitude estimation is one of the main challenges for quadrotor UAV tracking control. Euler angles (ϑ, φ, and ψ) and Quaternions are two common types of attitude representation for UAV systems. IMUs, formed by 3-axis inertial sensors of gyroscopes, accelerometers and magnetometers, measures angular velocities, linear accelerations and the Earth's magnetic field. Ideally, accelerometer measurements or numerical integration of angular velocities of gyroscopes should be enough for ideal sensors to determine attitude angles. However, in real-world conditions, individual usage of these sensors is not sufficient to determine attitude angles due to large amounts of system noise, drift errors and vibrations.
Kalman filter is an optimal recursive estimation scheme that uses a system's dynamic model, known control inputs, and multiple sequential measurements from sensors to form an estimate of the system states fusing prediction and measurement online [25][26][27][28]. The extended Kalman filter (EKF) is developed for nonlinear system state estimation and has been widely used for real-time UAV systems for Euler angle based attitude estimation [23,24,29,30] as well as quaternion based attitude estimation [31][32][33][34][35]. Unscented Kalman filter (UKF) [37][38][39] and adaptive Kalman filter (AKF) [40] are other widely used sensor fusion algorithms. In [30], a novel Kalman filter algorithm is proposed, which consists of an EKF and an inverse Φ-algorithm in a master-slave configuration to estimate reliable angular acceleration signals by fusing IMU sensor data. In [35], it is shown that, even for applications with strong real-time constraints, EKF can properly estimate the UAV attitudes, even in the presence of data loss.
As studied in earlier work [4], we consider the quadrotor UAV control structure in two levels: high-level and low-level. High-level is mainly about guidance and position controlling in the autonomous motion tasks and generating the trajectories to be tracked by the low-level controller. Provided the trajectory from high-level, the low-level control is responsible for the quadrotor UAV's attitude and altitude tracking performance and stability. In this study, we focus on the low-level control design, following a decentralized approach, considering the three motion dynamics modes separately: adaptive LQT control for the attitude dynamics, proportional (P) control for the yaw dynamics, and proportional-integral-derivative (PID) control for the altitude dynamics, as shown in Figure 1. In the overall structure, the attitude measurement noises, which come from IMU sensors, are compensated using a Kalman filter to obtain more reliable attitude estimation. The effectiveness of the employed Kalman filter is investigated over the experiments that compare the Kalman filter results with a complementary filter. In the next step, we developed an infinite-horizon ALQT controller and validated its effectiveness by performing two sets of experiments.
The rest of the paper is organized as follows: the quadrotor UAV system and the UAV attitude tracking problem are presented in Section 2. The filters are designed to fuse IMU data for reliable attitude parameter estimation are presented in Section 3. In Sections 4 and 5, the ALQT, P and PID control designs (for attitude, yaw and altitude control, respectively) are developed. In Section 6, the proposed control schemes are tested on the experimental testbed and the test results are discussed. In Section 7, concluding remarks are given.

Quadrotor UAV Dynamics
A nonlinear dynamic model of quadrotor UAV motion dynamics is presented in [4]. In this paper, we have simplified and partitioned this nonlinear dynamic model to obtain separate linear models for each of attitude, yaw, and altitude dynamics.

Attitude Model
Ignoring inertial and drag effects, we obtain a linearized attitude (roll/pitch) dynamics from the nonlinear dynamic model in [4]. Hence, we write the attitude model in the state-space form aṡ l represent states, control inputs, Euler angles, angular velocities, thrust forces, rotational inertias, positive armature gain, the actuator bandwidth in attitude (roll/pitch) dynamics and the distance between the center of gravity O b and each propeller, respectively.

Yaw Model
We obtain linearized yaw dynamic as where u ψ is the yaw control input, K ψ is thrust-to-moment gain and J ψ is the rotational inertia in yaw motion. Finally, we write the linearized yaw model in form of an input-output transfer function as:

Altitude Model
We have linearized the nonlinear altitude model [4] by the use of small angle approximation and take the effect of gravity as an offset in the linearized model. Accordingly, we obtain the simplified linear altitude model asp where p z is z-position of O b , u z is the altitude control input and m is the total mass of the quadrotor UAV system. Finally, we obtain the linearized altitude model in the form of an input-output transfer function as

Problem Statement
Considering a quadrotor UAV with attitude (roll/pitch) dynamics (1), yaw dynamics (3), and altitude dynamics (5), as illustrated in Figure 1, the objectives of the paper are threefold:

1.
Given the IMU sensor measurements of the attitude angles, design a data fusion algorithm based on (i) Kalman filtering and, for comparative analysis purposes, (ii) complementary filtering, in order to cancel the IMU sensor noise effects and produce accurate attitude state estimates;

2.
Design the control units to generate the command signals u z , u ψ , u ϑ , u φ for feeding the pulse width modulation (PWM) generator that generates the motor control input signal v r , per the diagram in Figure 1: (a) design an infinite-horizon ALQT controller to generate the optimal attitude control signal u ϕ (t) = u * ϕ (t) so that ϕ(t) tracks its desired trajectory ϕ d (t), minimizing the predefined quadratic performance optimal tracking and energy consumption cost function where Q and R are positive constant weighting terms and is the attitude tracking error; (b) design a P yaw controller to generate u ψ (t) and a PID altitude controller to generate u z (t); 3.
Combining the designs in 1 and 2, above, real-time implement and experimentally validate the overall control scheme.

Control Approach
In our infinite-horizon ALQT control design, the optimal control law consists of two terms: the state-feedback and the feed-forward. The state-feedback term maintains stability of the attitude dynamics. This term is obtained solving an algebraic Riccati equation (ARE). The feed-forward term depends on the desired trajectory and is used for establishing trajectory tracking performances. The above optimal control law is combined with an LS based adaptive PI algorithm to make it robust, adaptive and avoid inertial uncertainties in the attitude dynamics. After this combination, because of the uncertainties, the ARE needs to be solved online as well. In implementation, by comparing the online estimates of the uncertain parameters with some critical parameters calculated and stored in a look-up table, the time-varying state-feedback (from the PI) and then the time-varying feed-forward (from slowly-varying desired attitude and the PI) terms are calculated online. In real-time implementation of the designed ALQT scheme, we utilize a practical real-time computation technique based on parameterized analytical solutions of the state-feedback and the feed-forward terms.

IMU Sensor Data Fusion
The quadrotor UAV needs a robust estimation scheme for denoising the attitude angle measurements to provide reliable feedback to the proposed ALQT control scheme. The attitude angles are measured using an ADIS16405 IMU as shown in Figure 2. Then, a Kalman filter is employed to attenuate the effect of measurement noises. The IMU contains a 3-axis gyroscope to measure angular velocities (θ,φ,ψ), a 3-axis accelerometer to measure accelerations due to Earth's gravity (a x , a y , a z ) and a 3-axis magnetometer to measure the magnetic field intensities (m x , m y , m z ). The specifications are listed in Table 1. Table 1. The ADIS16405 IMU Specifications [41].

Attitude Determination from IMU Sensors
Roll and pitch angles are obtained based on accelerometer and gravity vector relation. The rotation matrix from the body frame to the inertial frame is defined with the Euler angles as: Assuming constant translational velocities [30,42], i.e., ignoring translational accelerations, we obtain the following relation between the accelerometer output, rotation matrix and earth gravity: where R i2b = R T b2i . From Equation (9), attitude angles are calculated as where atan2(a y , a z ) denotes arc tangent of a x and a y while it uses the signs of both arguments to determine the quadrant of the result. By determining the roll and pith angles, the rotation matrix from the body frame to the magnetometer local (NED:North-East-Down) frame is rearranged as Hence, yaw (heading) is calculated as In practice, the yaw (heading) is updated by gyroscope data integration instead of a Kalman filter or a complementary filter since the laboratory environment has magnetic (metallic) disturbances on the heading calculation (12). Solution methods of magnetic disturbances on heading calculation are discussed with the details in [43].

Attitude Estimation Using a Kalman Filter
To filter IMU accelerometer noises, a linear Kalman filter is employed in this paper. At each time step k, this Kalman filter first predicts the state propagation using the dynamic model of the quadrotor UAV, the control inputs applied at step k − 1 and the state measurement at step k − 1. Then, it incorporates new measurement data of step k, to determine the state estimate.
Consider the following discrete-time linear time-invariant model of the attitude dynamics, with additive Gaussian measurement noise and disturbance, based on Equation (1): where w is zero mean Gaussian disturbance noise with covariance Q K , v is zero mean Gaussian measurement noise with covariance R K , and with sampling time T s . Note that, in implementation of Equation (15), since the value of the rotational inertia J ϕ is uncertain, the nominal value of this parameter is used, as detailed in Remark 2 in Section 4.1. For this system model, the Kalman filter prediction and update equations are as follows: Update:ȳ x where P[k + 1|k] and M[k] are the predicted error covariance and the optimal Kalman gain, respectively.

Attitude Estimation by a Complementary Filter
As an alternative to Kalman filtering, we also study utilization of complementary filter in denoising and fusion of measurement data from accelerometers and gyroscopes. Typically, an accelerometer based orientation estimation works better in static conditions, and, on the other hand, a gyroscope based orientation estimation gives better results in dynamic conditions. A complementary filter passes the accelerometer signals through a low-pass filter and the gyroscope signals integral through a high-pass filter. Then, the resulting signals are summed up to estimate the attitude angles more reliably in both dynamic and static condition cases. The schematic complementary filter block diagram is depicted in Figure 3.

Adaptive Optimal Attitude Tracking Control Design
In this section, the proposed ALQT control scheme for attitude tracking of a quadrotor UAV is presented.

Adaptive Parameter Identification Scheme
We employ an LS based PI scheme to estimate the uncertain inertial parameters. From the attitude dynamics Equation (1), following the procedure in [44,45], we first define a linear parametric model avoiding need for signal differentiation and the associated noise sensitivity issue by use of the stable filter 1 (s+λ) , λ > 0, as follows: noting that the Euler rateφ (obtained using the IMU and the filters in Section 3) and the control signal u ϕ are measurable, and l, K, b are known constant parameters.
To generate the estimateθ ϕ of the uncertain inertia parameter θ * ϕ , we apply the following recursive LS algorithm [45] based on the parametric model (22): where p(t) is the positive covariance (time varying gain) term with p(0) = p 0 > 0, m n is the normalizing signal, and is the estimation error. Pr(.) is projection operator that maintainŝ (23), applied to the attitude dynamics (1). It is guaranteed that all the signals in the PI scheme (23), including p and p −1 , are bounded and

Lemma 1 (Stability and Convergence). Consider the LS based PI scheme
Proof. The result is a direct corollary of the more general Theorem 3.7.4 and 3.10.1 in [45].

Generic Linear Quadratic Tracking Control Design
To construct the base optimal control law of the proposed ALQT scheme, we follow an infinite-horizon LQT control design approach [46], explained in the sequel for a linear system in the generic state-space formẋ (t) = Ax(t) + Bu(t), where x ∈ n , u ∈ r and y ∈ m are state, control input and output vectors. A ∈ n×n , B ∈ n×r and C ∈ m×n are state, input and output matrices. m, n, and r are generic system dimensions.
The objective is to generate u(t) so that y(t) tracks a given desired continuous and differentiable output trajectory z(t) ∈ m as close as possible with minimum consumption of control effort for all t. Thus, let us define the error vector and the cost function where Q ∈ m×m and R ∈ r×r are symmetric, positive definite weighting matrices. In order to generate the optimal control signal u(t) = u * (t) that minimizes the cost function (26), following Hamiltonian calculation [46], at first, the following DRE is formed: where P ∈ n×n is a symmetric, positive definite matrix. Since the infinite-horizon LQT design [46] is studied, there is no terminal F(t f ) = 0 in cost function (26). Therefore, P(t) tends to its steady-state value lim t f →∞ (P(t f )) =P as the solution of the following ARE: whereP ∈ n×n is a symmetric, positive definite matrix calculated by analytical solution of the ARE (28). Then, as the next step in the LQT design steps with a Hamiltonian approach, a vector signal g(t) ∈ n is generated via the differential equatioṅ The final optimal control signal is generated as where −R −1 B TP x(t) is the state feedback term and R −1 B T g(t) is the feed-forward term. Note that the control law (30) is established in [46] to bear the following optimal tracking property: Ref. [46]: The control law (30) guarantees that the system (24) is closed loop stable and the cost function (26) is minimized, for any given slowly-varying desired output trajectory z(t).
To simplify and ease the calculation of the vector signal g(t), we use an approximation [47] as follows:

Adaptive Linear Quadratic Tracking (ALQT) Control Design
For attitude control, our approach is to apply the control law (28), (30), (31) to system (1). Note that implementation of the control law (30) requiresP from Equation (28) andḡ(t) from Equation (31), and hence requires knowledge of the system matrices A, B, C. In our case, in Equation (1), although B ϕ , C ϕ are known, A ϕ is unknown. Hence, following the certainty equivalence approach [45,46], the following adaptive version of the LQT control law (28), (30), (31) for the cost function (6) and the attitude tracking error (7) is designed.
The time-varying adaptive ARE, the approximate vector signalḡ(t) and the adaptive optimal control signal are obtained, respectively, as

Remark 3.
There is also no constraint on the control signalû ϕ (t) considered in the control design. However, we consider a limit −0.025 u ϕ (t) 0.025 to prevent damages on the quadrotor motors due to high torque commands.

Yaw and Altitude Control
To provide the overall motion in experiments, P and PID controllers are designed, respectively, for yaw and altitude dynamics as follows.

Yaw Control
Since yaw dynamics are not directly affecting the lateral motion of the quadrotor UAV system, the yaw motion control is considered independently. Therefore, the following P control law is used based on the dynamic model (3): where e ψ = (ψ d − ψ).

Altitude Control
Altitude controller is derived for keeping the quadrotor UAV system in its desired altitude and providing stability at the longitudinal motion. The following PID control law is used based on the dynamic model (5): where e z = (p zd − p z ).

Remark 4.
With the attitude, yaw and altitude control schemes as designed above, the control inputsû * ϕ , u ψ and u z are generated. Then, we combine these inputs [4] to generate each motor PWM inputs v r . for flight control of the Qball-X4 quadrotor UAV system (Quanser, Markham, ON, Canada).

Test Platform
The test platform consists of a Qball-X4 quadrotor UAV and a ground control and communication station (host computer) as illustrated in Figure 4. The Qball-X4 is equipped with a sonar sensor and an IMU to provide altitude, acceleration, angular rate and magnetometer measurements [48]. It has an on-board avionics data acquisition card (DAQ) and a Gumstix embedded computer (Gumstix Inc., Redwood City, CA, USA) for interfacing with on-board sensors and driving the four rotor motors. Each motor is linked to one of the four PWM servo output channels on the DAQ. The Qball-X4 dynamic parameters as specified in [48] are presented in Table 2. The ground station computer is used for coding the designed control algorithms, and embedding on the Qball-X4 on-board computers before tests as well as generating the high-level control inputs in the form of desired attitude and altitude trajectories online during the tests. For control algorithm coding and embedding, Quarc, a MATLAB/Simulink R based interface software developed by Quanser Inc., is used.

Control Design Specifications and Online Calculation of Control Parameters
In implementation of the ALQT control design explained in detail in Section 4.3, the error and the control weighting parameters are chosen as Q = 100 and R = 30, 000. Following Equation (35a), the constant entryP 3 ofP(t) is calculated asP 3 = (QR)/b = 115.4701. The other entries ofP(t) are calculated solving Equation (35) online, noting the dependence of these entries to each other and the parameter estimateθ ϕ . From Equation (35d), the entryP 2 is found in form of the entriesP 5 and written in Equation (35c). Then, the Equations (35c) and (35f) are obtained in form of the entriesP 5 andP 6 as follows: Solving the Equations (39a) and (39b) by using Maple R and MATLAB R software,P 6 , which is chosen as a critical parameter, is offline calculated for the estimateθ ϕ ∈ [θ ϕ , θ ϕ ] of θ * ϕ . Then, a lookup table is prepared as plotted in Figure 5. The remaining entries ofP are simultaneously calculated usinḡ P 6 and the estimateθ ϕ as follows: After obtainingP, by Equation (36) After that, the vector signalḡ(t) is found by Equations (41) and (36) as follows: The ALQT control design with specifications above is used for pitch and roll control. For yaw tracking, a P controller is used with gain K pψ = 0.015, and, for altitude tracking, a PID controller is used with gains K pz = 0.006, K iz = 0.008 and K dz = 0.002.

Experimental Results
After setting all control parameters with the sampling rate 200 [Hz] by using MATLAB/Simulink R and Quarc interface in the host computer, as explained in Sections 6.1 and 6.2, we have implemented the proposed control scheme on the Qball-X4 as seen in Figure 6 for the following two cases: Test 1. ALQT with complementary filter: The video of the experiment is presented in URL [49]. Test 2. ALQT with Kalman filter: The video of the experiment is presented in URL [50]. In both tests, the Qball-X4 starts to perform the tracking control task after hovering for 15 s. The real-time IMU data measurements in Test-2 from the gyroscope, the accelerometer and the magnetometer are presented in Figure 7a-c, respectively. Applying the methodology explained in Section 3.1, the IMU measurements shown in Figure 6 are used to obtain the raw calculation of the roll and pitch parameters (yellow plots), and then to generate the estimates by complementary filter (blue plots) and Kalman filter (red plots) shown in Figures 8 and 9. Kalman filter provides more reliable data less sensitive to noise. For the yaw estimation, gyroscope data integration is used instead, due to distortion effects by metallic objects of the test environment, as explained in Section 3.1.   The tracking error performances of both tests verify that the control objective is satisfied as seen in Figures 10 and 11. In both tests, the controllers maintain attitude angles close to their desired angles with small attitude tracking errors ±0.1 [rad]. However, as seen in Figure 11, ALQT control with Kalman filter is more robust to sensor noises and uncertainties, and results in smaller tracking errors.   As seen in Tables 3 and 4, ALQT control with Kalman filter gives significantly smaller mean-square error and consumes less battery (energy). It is also observed in additional simulations that the proposed controller consumes less battery energy with more robust control action compared to other classical controllers such as PID. In real time, the motor PWM control inputs have the constraint −0.1 v r (t) 0.1 since they work with limited voltage to prevent damages due to high torque commands. Hence, a limit is applied for the optimal attitude control inputs as mentioned in Remark 3 even though LQT design procedure does not have any constraints. As seen in Figures 12-14, the proposed controller satisfies admissible and optimal control actions for all t > 0 during the tests. Figures 12-14 show that the motor PWM and the optimal attitude control inputs are kept within the allowed limits.
The LS based estimation of the uncertain inertia parametersθ ϑ andθ φ is presented in Figure 15.

Comparative Simulations and Observations
For optimal performance comparison with the existing literature, in ideal simulation conditions without noises, we simulate the ALQT control design and compare with a classical PID controller with control gains K p = 0.0017; K i = 8.98; K d = 0.005. As seen in Figure 16, the ALQT controller gives smaller tracking errors with less control action. Therefore, in the actual settings with noises, it is expected that the ALQT with a reliable filter will give us better tracking and control input performances compared to a PID controller. Figure 17 presents the estimates of the simulation. It is also observed from literature that the proposed controller gives a good control performance in terms of optimal attitude tracking compared to the attitude tracking errors of [11,12].

Conclusions
In this paper, the adaptive linear quadratic tracking (ALQT) scheme has been developed to control and stabilize the attitude of the Qball-X4 quadrotor UAV system in an optimal sense. The proposed adaptive controller is designed by an indirect approach and combined with the LS based parameter identification (PI) to eliminate the influences of inertial uncertainties. Additionally, the Kalman filter has been designed for canceling noise effects on the attitude estimation data to provide more reliable feedback to the controller and it is compared with the Complementary filter. All analytical analyses and designs are verified by the two experimental tests. We witness that the ALQT design in experiments work satisfactorily in terms of the optimal tracking performance. In the Kalman filter vs. Complementary filter, although both filter designs are good at canceling noise effects on the estimated attitude data, the Kalman filter gives a better accuracy and reliable attitude estimation. Thus, the experimental results show that the quadrotor UAV has more robust behavior and better tracking error with the estimated attitude data by the Kalman filter compared to the Complementary filter.
A potential future study is developing heading (yaw) estimation methods under magnetic disturbances. Another future direction is to extend optimal linear quadratic tracking control design for altitude and yaw dynamics.