Abstract
Stable and accurate attitude estimation is the key to the autonomous control of unmanned aerial vehicle. The Attitude Heading Reference System using micro-electro-mechanical system inertial measurement unit and magnetic sensor as measurement sensors is an indispensable system for attitude estimation of the unmanned aerial vehicle. Aiming at the problem of low precision of the Attitude Heading Reference System caused by the nonlinear attitude model of the micro unmanned aerial vehicle, an attitude heading reference algorithm based on cubature Kalman filter is proposed. Aiming at the nonlocal sampling problem of cubature Kalman filter, the transformed cubature Kalman filter using orthogonal transformation of the sampling point is presented. Meanwhile, an adaptive estimation algorithm of motion acceleration using Kalman filter is proposed, which realizes the online estimation of motion acceleration. The car-based tests show that the algorithm proposed in this paper can accurately estimate the carrier’s motion attitude and motion acceleration without global positioning system. The accuracy of acceleration reaches 0.2 m/s2, and the accuracy of attitude reaches 1°.
Introduction
Stable and accurate attitude estimation is a prerequisite for autonomous control and navigation of unmanned aerial vehicle (UAV). 1 The navigation system using inertial sensors (strapdown inertial navigation system (SINS)) has become one of the most important systems for UAV with its high degree of autonomy. 2 Micro-electro-mechanical system (MEMS) gyroscope and accelerometer have been used in navigation system due to its small size and low power consumption. 3 Attitude Heading Reference System (AHRS) using MEMS accelerometer and magnetic sensor as measurement sensors and Kalman filter for attitude estimation is an effective method for attitude estimation of UAV. 4
The motion characteristics of the micro UAV result in the nonlinearity of the aircraft attitude mathematical model, so the UAV attitude algorithm is a typical nonlinear filtering problem. At present, extended Kalman filter (EKF) is the most commonly used nonlinear filter algorithm. 5 This method propagates state variables through first-order linearization of nonlinear systems. The linearization method introduces large linearization errors, resulting in suboptimal estimation of the filter and even filter divergence. 6 Although unscented Kalman filter (UKF) can realize the state estimation of nonlinear system through unscented transform (UT), the UKF algorithm based on symmetric sampling can lead to the non-positive definite of UT transfer variance and instability of filtering when applied to high-dimensional system.7,8
The EKF and UKF require that the system must be Gaussian noise. 9 Particle filter has been proposed to solve nonlinear and non-Gaussian problems, and particle filter has become one of the most commonly used algorithms. 10 However, traditional particle filtering methods have particle impoverishment (PI) problems, and the computation increases geometrically with the increase in system dimension.11,12
Arasaratnam and Haykin13,14 have proposed a cubature Kalman filter (CKF) algorithm based on cubature transformation and proved that CKF has a higher filter accuracy than UKF. CKF guarantees the positive definiteness of the variance matrix. Because the variance matrix needs to be multiplied by a coefficient
On the contrary, the current AHRS is difficult to meet attitude accuracy requirements because the accelerometer cannot distinguish between gravity acceleration and motion acceleration, which results in low accuracy of attitude estimation under maneuvering state. 15 In view of the attitude estimation and correction problem under the condition of measurement interference, scholars have studied the state-based motion state detection algorithm, fuzzy filter, and adaptive filter to eliminate motion acceleration interference and improve the attitude estimation accuracy.16,17 However, such algorithms are used to determine whether there is motion acceleration and then decide whether to use the accelerometer output for attitude correction. Because the motion acceleration is not estimated, this kind of algorithm usually has the problem of insufficient or excessive measurement correction, which leads to the low accuracy of attitude estimation.
Aiming at the nonlinearity of the attitude model and attitude estimation is affected by the motion acceleration, and the CKF is introduced into the AHRS to estimate the attitude. In order to solve the nonlocal sampling problem in traditional CKF, the transformed sampling point method is proposed. Meanwhile, based on the motion characteristics of micro UAV, an online adaptive estimation model of motion acceleration is established, which can effectively improve the attitude estimation accuracy of AHRS.
AHRS model based on transformed CKF
The structure of the attitude estimation algorithm based on transformed CKF (TCKF) is shown in Figure 1.

AHRS nonlinear algorithm based on TCKF.
In Figure 1,
The “north-east-ground” frame is set as the navigation frame. The “front-right” direction of the vehicle body is set as the
TCKF algorithm
Analysis of the CKF algorithm
The nonlinear system is shown in equation (1)
where
CKF uses cubature rules and deterministic weighted points to sample. For
where
Equation (3) can be expanded as follows using the Taylor expansion
where
According to equation (4), the mean value of
According to the symmetry, the odd moment of
Considering
where
According to equations (6) and (7), equation (6) can be written as
The higher order information of
From equation (9), it can be seen that the mean value after CKF transmission can be accurate to the third order, and the error is only introduced in the fourth and higher order. The higher order information increases significantly with the increase in dimension, which is prone to nonlocal sampling problems.
TCKF algorithm
The orthogonal matrix
where
The sampling points
After orthogonal transformation using equation (10),
where
According to equation (12), the new sampling points
The new Gaussian filtering algorithm (TCKF) can be obtained by replacing the sampling points in the CKF with the proposed transformed points.
Similarly, substituting equation (13) into equation (6), the higher order information of TCKF can be written as follows
where if
Considering
Therefore, the higher order information transmitted by TCKF is much smaller than CKF. This greatly reduces the problem of nonlocal sampling.
Adaptive AHRS-based TCKF algorithm
AHRS system model
According to the relationship between the body frame and the navigation frame,
where
where
Therefore, equation (15) can be simply written as
where
where
Extending the noise model to the equation of state, equations (15) and (16) can be written as a nonlinear equation as shown in equation (18)
where
The state variable vector is chosen as follows
According to equation (18), the state equations of the system can be written as
where
Without drone acceleration, the acceleration measured by the accelerometers can be simply written as
where
According to equation (20), the measurement equation can be set as
where
The nonlinear system composed of equations (19) and (21) can be solved using the TCKF algorithm proposed.
Adaptive estimation algorithm of motion acceleration
Equation (20) is obtained based on the situation that the UAV has no motion acceleration. However, there will be frequent acceleration and deceleration maneuvers during the flight of the UAV, which will introduce the motion acceleration component into the measurement information of the accelerometer. Because the accelerometer cannot distinguish gravity acceleration and motion acceleration, it is impossible to perform attitude estimation using equation (20) directly. This paper designs a motion acceleration adaptive estimation algorithm.
The motion of the micro UAV have low-frequency and slow-changing characteristic. Thus, the first-order Markov model is used to model the motion acceleration as follows
where
The conversion relationship between the body frame and the geographic frame is shown as
where
where
From equation (23), taking the output of the accelerometer as the measurement information, equation (24) can be written as follows
Taking equation (22) as the state equation and equation (25) as the measurement equation, the Kalman filter is used to estimate the motion acceleration.
Using the estimated motion acceleration
At the same time, equation (22) has shown that the value of the attenuation coefficient is
where
Experiments
Car-based TCKF test
In order to verify the attitude estimation performance of the proposed algorithm in practical applications, the MEMS AHRS shown in Figure 2 is designed.

MEMS Attitude Heading Reference System.
The gyroscope is composed of three ADXRS646 single-axis gyros with an precision of 12°/h, and the accelerometer uses a three-axis ADXL355 with a precision of 5 × 10−3 G. The output frequency of gyroscopes and accelerometers is 1000 Hz. Considering the low dynamic characteristics of the UAV, the sampling frequency of the gyroscope and acceleration is set as 100 Hz to reduce the impact of MEMS sensor noise. The system processor adopts STM32F4 series ARM with floating point arithmetic capability, and its frequency is 168 MHz. Considering the computing power of the processor, the frequency of TCKF is set as 10 Hz, and the Kalman filter frequency estimated by motion acceleration is set as 20 Hz. Because the frequency of the motion acceleration estimation algorithm in section “Adaptive AHRS-based TCKF algorithm” is faster than the frequency of the TCKF, the results of motion acceleration estimation algorithm can be smoothed and used as the input of the TCKF.
A car experiment has been conducted in Nanjing University of Science and Technology. In the experiment, commercial SBG Ellipse Inertial/GPS (global positioning system) integrated navigation system using EKF was used as a reference, and the measurement precision of the roll and pitch angle with GPS is 0.2°. The path is shown in Figure 3.

Tracking map of car experiment.
Results analysis
The comparison of the roll and pitch angle of the TCKF algorithm, CKF algorithm, and SBG, presented in this paper, is shown in Figures 4 and 5.

Comparison of roll angle.

Comparison of pitch angle.
It can be seen from the figure that our proposed attitude algorithm using TCKF without GPS is consistent with the SBG results with GPS basically.
As shown in Figures 6 and 7, from 0 to 40 s, without motion acceleration, the attitude error between TCKF/CKF and SBG is less than 0.2°. The proposed motion acceleration adaptive estimation algorithm can estimate the motion acceleration.

Comparison of pitch angle from 0 to 40 s.

Comparison of estimated acceleration and actual acceleration from 0 to 40 s.
As shown in Figures 8 and 9, from 200 to 300 s, in the case of acceleration and deceleration, the SBG can accurately reflect the change in attitude angle with GPS assistance.

Comparison of pitch angle from 200 to 300 s.

Comparison of estimated acceleration and actual acceleration from 200 to 300 s.
Meanwhile, it can be seen from Figures 6 and 8 that the accuracy of the TCKF algorithm is significantly better than that of the CKF algorithm. The attitude error between our proposed algorithm and SBG is shown in Table 1.
Our proposed algorithm and SBG attitude error (unit: degree).
CKF: cubature Kalman filter; TCKF: transformed cubature Kalman filter.
From Table 1, the attitude error of our proposed algorithm is less than 1°. The algorithm has reached a high precision without GPS with SBG results as a reference. The mean error and mean square error of the TCKF algorithm are improved by 70% compared to CKF.
As shown in Figures 9 and 10, the proposed motion acceleration adaptive estimation algorithm can estimate the trend of the carrier’s motion acceleration, and the error between estimated acceleration and actual acceleration is less than 0.2 m/s2. The attitude angle error caused by the acceleration error is less than 1.0°, which is consistent with the error reflected in Figure 7. It can be seen from Figure 10 that the acceleration estimation algorithm has good real-time performance.

Comparison of estimated acceleration and actual acceleration from 600 to 650 s.
Conclusion
The core of attitude estimation for micro UAV is AHRS which uses micro-electronic mechanical system inertial measurement unit (MEMS-IMU) as measuring sensors. The AHRS nonlinear estimation model and an adaptive motion acceleration estimation algorithm are established. Aiming at the nonlinear filtering and the nonlocal sampling problem of CKF problem, the TCKF algorithm is proposed based on the orthogonal sampling transformation. The car-based test has proved that the presented algorithm has a precision of 1° without GPS. Meanwhile, the accuracy of the TCKF algorithm is improved by 70% compared to CKF. The algorithm proposed in this paper has important practical value for the research and application of AHRS.
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 work was supported by Natural Science Foundation of the Jiangsu Higher Education Institutions of China (Grant No. BK20160849).
