Next Article in Journal
Research on the Inversion Method of Dust Content on Mining Area Plant Canopies Based on UAV-Borne VNIR Hyperspectral Data
Previous Article in Journal
Unmanned Aerial Vehicle Technology for Glaciology Research in the Third Pole
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Hybrid Heading Estimation Approach for Micro Coaxial Drones Based on Motion-Adaptive Stabilization and APEKF

1
School of Instrument Science and Engineering, Southeast University, Nanjing 210096, China
2
Key Laboratory of Micro-Inertial Instrument and Advanced Navigation Technology, Southeast University, Nanjing 210096, China
*
Author to whom correspondence should be addressed.
Drones 2025, 9(4), 255; https://doi.org/10.3390/drones9040255
Submission received: 20 February 2025 / Revised: 13 March 2025 / Accepted: 26 March 2025 / Published: 27 March 2025

Abstract

:
Coaxial drones have garnered popularity owing to their energy efficiency and compact design. However, the precise navigation of these drones in complex and dynamic flight scenarios is limited by inaccuracies in heading/yaw estimation. Conventional heading estimation methods rely on magnetometers and real-time kinematic Global Navigation Satellite Systems (RTK-GNSS), which directly measure heading angle. However, the small size of microdrones restricts the placement of magnetometers away from magnetic interference and prevents the use of directional antennas. Moreover, single-antenna alignment algorithms are highly susceptible to errors caused by nonlinearity, leading to significant inaccuracies in heading estimation. To address these challenges, this paper proposes a hybrid heading estimation approach that integrates Motion-Adaptive Stabilization with an Angle-Parameterized Extended Kalman Filter (APEKF). This method utilizes low-cost GNSS, a magnetometer, and an Inertial Measurement Unit (IMU). Heading is initialized based on the drone’s static attitude, with an adaptive threshold established during takeoff to account for varying flight conditions. As the drone reaches higher altitudes, heading estimation is further stabilized. GNSS velocity observations enhance estimation accuracy through horizontal maneuvering alignment achieved by incorporating multiple sub-filter techniques and residual-based fusion. In the simulations and onboard experiments in this study, the proposed heading estimation method demonstrated a precision of approximately 1.01° post-takeoff, with the alignment speed enhanced by 43%. Moreover, the method outperformed existing estimation techniques and, owing to its low computational overhead, can serve as a reliable full-stage backup across various drone applications.

1. Introduction

With the rapid development of sensor technology [1], drones have become increasingly prevalent in transportation, resource exploration, military operations, and agricultural production. Micro coaxial drones [2], characterized by their compact structure, high payload capacity, long endurance, and portability, are suitable for tasks in dynamic environments [3]. Therefore, attitude estimation in the navigation systems used on these drones is of critical importance [4]. The structure of micro coaxial drones differs significantly from that of traditional drones [5], especially due to the lack of additional counterbalance configurations. The dual motors are placed close to the central motherboard, resulting in a mechanical structure that is long in length but narrow in width.
Inertial navigation systems provide autonomous navigation independent of external information [6] and are based on the principles of dead reckoning. As the system starts, the navigation system must be initialized, encompassing its position, velocity, and attitude [7]. The heading is critical to describe the vehicle’s orientation [8]. There are significant differences in initial pointing between high-precision and low-cost Inertial Navigation System (INS), primarily due to differences in noise characteristics. High-accuracy Inertial Measurement Units (IMUs) can achieve traditional static alignment methods and complete the attitude initialization by sensing the local Earth gravity and rotation rate. The relatively low bias stability of Micro-Electro-Mechanical System (MEMS) gyroscopes in microsystems, which often exceeds 10°/h, poses significant challenges to the accurate estimation of attitude [9].
Regarding drone navigation, the prevailing approach depends on external sensors for heading estimation. J. Metge et al. used a triaxial magnetometer for angle compensation, estimating the heading with geomagnetic assistance [10]. Medina et al. employed Real-Time Kinematic Global Navigation Satellite Systems (RTK-GNSSs) for the initial alignment of drone heading [11]; however, the accuracy of the dual-antenna system is reduced as the installation distance is shortened. Wang et al. proposed an initial alignment scheme using polarized light, which, although effective, is contingent upon lighting conditions [12]. Despite the advantages of these methods, the complex magnetic field of micro coaxial drones, easily disturbed by the magnetic field around power lines, and their insufficient body length for RTK heading calculations limit their applicability [13]. Hence, the selection of external sensors for heading estimation in micro coaxial drones is limited. Furthermore, heading estimation methods that combine single-antenna GNSS with IMU [14] face challenges like cumulative gyro error and significant heading misalignment. To address these issues, two primary methods have been proposed: filter-based optimization and constraint-based methods. Filtering methods can accurately model the state error associated with significant drift [15], although they require a relatively lengthy convergence period [16]. The alternative kinematic constraint-based approach estimates the heading by assuming that the vehicle’s velocity direction aligns with its longitudinal axis. However, this method does not apply to omnidirectional vehicles like coaxial dual-rotor drones. Furthermore, the significant issue of heading misalignment is characterized by strong nonlinearity [17], emphasizing the necessity of choosing an appropriate nonlinear filter. In recent years, hybrid filtering methods [18] combining extended Kalman filter (EKF) with back-end fusion have effectively balanced performance and computational complexity.
A heading estimation method based on Angle-Parameterized Extended Kalman Filter (APEKF) is proposed to address the challenges associated with heading estimation for micro coaxial drones. As shown in Figure 1, the heading is modeled firstly, and the motion characteristics are analyzed to accurately describe the attitude changes. Accordingly, the Motion-Adaptive Heading Stabilization (MAHS) algorithm is introduced to effectively enhance the initial stability of the heading estimation during take-off. The combination of angle parameterization and multi-sub-filter fusion in the APEKF facilitates the integration of GNSS observation information to achieve rapid alignment, resulting in high-precision heading estimation. The excellent accuracy of this method and stability in complex maneuvering environments are confirmed by both simulations and real-world experiments.
This research is organized as follows. Section 2 introduces the heading estimation modeling and coordinate system setup for micro coaxial drones and provides a detailed discussion on the design of the novel heading estimation method. Section 3 presents the simulation design and results, validating the effectiveness of the proposed method. Section 4 provides the results of the onboard experiments, further demonstrating the superior performance of the method in real flight scenarios. Finally, Section 5 summarizes the research findings of the present study.

2. Methodology Design

This section provides a detailed account of the methodology for estimating heading in micro coaxial drones. Section 2.1 defines the coordinate system and heading model of the coaxial drone, and its kinematic characteristics are subjected to a comprehensive analysis. Subsequently, Section 2.2 presents the heading initialization and stabilization estimation method based on MAHS technology, focusing on its utilization for initial alignment on the ground and heading estimation during a stable take-off. Finally, Section 2.3 provides a comprehensive explanation of the application of APEKF. Integrating GNSS velocity information ensures the coaxial drone can rapidly and accurately align its heading after take-off. Figure 2 illustrates the overall structural block diagram of this method.

2.1. Modeling of the Micro Coaxial Drone

The fundamental mechanical configuration of the micro coaxial drone comprises a brushless motor power system, two control servo motors, and the load-bearing section of the lower fuselage. The coaxial propeller system serves as the primary source of thrust. In contrast to conventional quadcopters, this drone can control its attitude in three dimensions by modifying the center of gravity using two vertically intersecting servo motors. The core board and battery are affixed within the load-bearing structure of the lower fuselage, while the remaining cables are concealed inside the body. The advantage of this design lies in its compact mechanical structure, facilitating miniaturization and optimizing energy efficiency within a limited volume. However, due to the proximity of the motors, battery, and high-current cables to the sensors, the high-power operation often generates significant magnetic interference within the fuselage, which affects the measurements of the magnetic sensors.
As shown in Figure 3, three coordinate systems are introduced to describe the heading of a coaxial drone in space. The b frame represents the airframe coordinate system, in which the origin of the b frame is at the center of the mass of the drone; X b points to the front; Y b points to the right; Z b points to the top; the n frame represents the navigational coordinate system, in which X n points to the north; Y n points to the east; Z n points to the sky; the l system represents a local coordinate system rotated from the n system by the heading angle ψ . The attitude is represented by the Euler angle.
a = [ ϕ ,   θ ,   ψ ] T 3
Based on the principle of inertial navigation, the sensor information v b 3 in the system b can be transformed into the navigation coordinate system for navigation calculation by the rotation matrix C b n . The three-by-three rotation matrix C b n can be expressed as the sequential product of the corresponding rotation matrices of the Euler angles. The Euler angles are defined using the 3-1-3 rotation sequence, which is widely used in aerospace applications.
v n = C b n v b
C b n = C z ( ψ ) C y ( θ ) C x ( ϕ )
ψ = tan 1 ( C b n ( 2 , 1 ) C b n ( 1 , 1 ) )
where the heading can be inverted from the rotation matrix; ψ characterizes the degree of rotation from the n system to the l system; C b n represents the rotation matrix that transfers the vector from the b system to the n system; v represents the 3D space vector; ϕ represents the pitch angle; θ represents the roll angle.
The kinetic equations for the attitude and velocity of the miniature coaxial drone are summarized as follows:
C ˙ b n = C b n Ω n b b
V ˙ n = C b n f b + g n
where Ω n b b is the antisymmetric array of angular velocities; V n is the velocity of the carrier in the navigational coordinate system; f b is the specific force information measured by the accelerometer; g n is the component of the gravity vector in the navigational coordinate system; g is the local gravity.

2.2. Motion-Adaptive Heading Stabilization

This method is proposed to accomplish the initialization of the heading of a miniature coaxial drone before takeoff and the stabilization of the heading attitude estimation under severe electromagnetic interference during flight. First, the accelerometer and gyroscope data acquired in IMU in the carrier coordinate system are defined as
a b = [ a b x , a b y , a b z ] T
ω b = [ ω b x , ω b y , ω b z ] T
To minimize the inter-channel delay, eliminate high-frequency noise from the accelerometer measurements, and ensure the smoothness of the subsequently processed data, a first-order digital low-pass filter is applied to the raw data, followed by downsampling. The expression is as follows:
a l p [ i ] = β a l p [ i 1 ] + ( 1 β ) a b [ i ]
a b [ i ] = 1 4 k = 0 3 a l p [ i + k ]
where i is defined as the current data point index; β is the low-pass filtering coefficient; a l p is the filtered accelerometer data; a b [ n ] is the downsampled acceleration data with the downsampling factor set to 4; k represents the neighborhood range relative to the current data point.
The drone is assumed to be at rest upon initialization, experiencing no acceleration apart from gravity. The acceleration performs a quick coarse alignment of roll and pitch angles, providing initial values for subsequent adjustments.
ϕ = tan 1 ( a b y a b z )
θ = tan 1 ( a b x a b y 2 + a b z 2 )
Convert the magnetic data from the b system to the l system by combining the roll and pitch angles to isolate the magnetic field component in the vertical plane to solve for the initial heading angle ψ i n i t .
m b = [ m b x , m b y , m b z ] T
m l = C y ( θ ) C x ( ϕ ) m b
ω b i a s = 1 100 i = 1 100 ω [ i ]
ψ i n i t = arctan ( m l y m l x )
where m l denotes the magnetic field distribution in the horizontal coordinate system, C y ( θ ) corresponds to a rotation about the y-axis with an angle θ , C x ( ϕ ) corresponds to a rotation about the x-axis with an angle ϕ , ω b i a s denotes the zero-bias error of the gyroscope sensor, ω [ i ] denotes the angular velocity of the airframe at the i moment.
After the initialization of the heading is completed on the ground, the drive board of the miniature coaxial drone activates the brushless motor, dramatically increasing magnetic interference and making in the magnetic field-based heading estimation method inapplicable. For this reason, a novel MAHS algorithm is used in this study to ensure that the estimation error of the heading during liftoff can be controlled within a small range. The gravity vector can effectively correct the roll and pitch angles, but the gravity vector is insensitive to the rotation around the vertical axis. Irrespective of the drone’s rotational direction, it is not possible to detect the change in heading through the gravity vector that is consistently directed towards the center of the earth. To resolve this issue, the angular velocity of the z axis needs to be optimized to mitigate the heading drift caused by the gyroscope error integral. Given the structural characteristics of a coaxial twin-propeller drone that remains vertically upward most of the time, noise suppression was chosen as ω b z .
The angular velocity data may be stored in a queue before takeoff, and the absolute maximum value in the queue is selected as the threshold, after which the angular velocity data undergo motion-adaptive compensation, with the threshold value τ used as the boundary to determine the motion and the stationary state.
τ = max { ω 1 ,   ω 2 ,     ω i }
ω = ω ω b i a s
ω b z = ω b z      ω b z τ > ω a r s 0            ω b z τ < ω a r s
where ω b z is the z axis angular velocity in the body coordinate system; τ is the angular velocity determination threshold; ω a r s is the minimum sensitive angular velocity of the gyro.
The angular velocity data after removing the bias can be expressed as ω , which is combined with the initial attitude angle input to the Mahony filter [19] for attitude estimation during takeoff, and the yaw angle of the airframe is obtained by solving the quaternion output from this filter [20].
e = a b × [ 2 q 1 q 3 2 q 0 q 2 , 2 q 0 q 1 + 2 q 2 q 3 , 2 q 0 2 + 2 q 3 2 1 ] T
I = I + K i e
ω M = ω + K p + I
q = q + 1 2 q ω M
ψ = tan 1 ( 2 ( q 0 q 3 + q 1 q 2 ) 1 2 ( q 2 2 + q 3 2 ) )
where e denotes the error vector; I denotes the error integral; K p denotes the filter proportional gain coefficient; K i denotes the filter integral gain coefficient; ω M denotes the input filter angular velocity.

2.3. Angle-Parameterized Extended Kalman Filter

‘Angle parameterized’ refers to the process of discretizing the range of heading angles into a finite set of candidate angles. Figure 4 depicts the core framework of the APEKF algorithm, consisting of an angle parameterization module, extended Kalman filters, and a Residual-weighted fusion filter. The state vector of the filter contains the heading and the eastward and northward velocities. The inertial solution is the predicted value, and the GPS velocities serve as input for the observations. In the fusion process, the weights of each sub-filter are calculated based on the velocity residuals, and the weighted fusion outputs the final heading estimation.
The heading used in this study is defined as positive northeast, driven by the velocity increments to the north and east in the horizontal plane and the angular increment around the vertical axis. Assuming that the heading has measuring errors associated with these three incremental noises, it is necessary to initialize the heading, specified by parameterizing the angle, before executing the fast alignment algorithm. Multiple hypothetical heading angles preset on the horizontal plane are updated independently and iteratively by the horizontal plane velocities provided by the GPS observations. As demonstrated in Figure 5, the red arrow denotes the true heading, the green arrow indicates the heading obtained from the final fusion result of the residual filter, and the black arrows represent the heading estimates provided by the sub-filters. The blue dashed line is a representation of the top-down view of the carrier’s movement direction, from left to right. After several iterations, these individual estimates gradually converge to the accurate value due to the influence of the residuals with the true heading.
Before the angular parameterization, the heading confidence interval is calculated depending on the running time. As the operation time in the air increases, the confidence interval used to characterize the uncertainty range increases accordingly. The deviations at different flight durations are evaluated and used as a foundation for the angular parameterization.
U = ρ t 2 τ
where U is the confidence heading interval; ρ is the heading offset coefficient factor; t is the running time; τ is the gyro motion detection threshold; τ and t are determined through experimental calibration designed to differentiate minor sensor noise from significant angular motion.
The heading parameterization quantity introduces N s u b split confidence intervals, assuming heading intervals of 15° [21]. The initial quaternions of the sub-filters are calculated as the outer product of the initial quaternions with one assumed quaternion to derive the initial state assigned to each sub-filter, ensuring that they can be computed independently for different assumed heading angles.
N s u b = U 15 + 1
ψ i = ψ 0 + ( N s u b 1 2 i ) 15 ,      i = 0 , 1 , 2 , , n 1
q i = q ψ q θ q
Construct the extended Kalman filter in each branch and define the state vectors
x k = q k , V E , k , V N , k T
where V E , k is the velocity component in the east direction. The update equation is calculated using a discrete time step Δ t and corrected using quaternions and accelerometer outputs, combined with inertial predictions, obtaining the amount of velocity change in the horizontal plane. The final velocity increment is derived by converting the acceleration to an inertial coordinate system as follows:
q k = q k 1 + 1 2 q k 1 Ω ( ω k ) Δ t
a n = q a b q *
V E , k = V E , k 1 + a n e , k Δ t
V N , k = V N , k 1 + a n e , k Δ t
where Ω ( ω k ) is the quaternionic concomitant matrix of angular velocities ω k . After eliminating the bias effect and assuming that the error growth in the computed values of inertia is driven by noise in the incremental angles and incremental velocities, the derivation leads to the prediction of the a priori estimated covariance equation
P k k 1 = F P k 1 k 1 F T + Q
Equations for updating covariance related to northward and eastward velocity observations, i.e., the computationally optimal Kalman gain equation, the computationally updated state estimation equation, and the computationally updated covariance equation for EKFs, are as follows:
y ˜ = H x ^ k k 1 V E G P S V N G P S
K = P k k 1 H T H P k k 1 H T + diag σ Δ V G P S 2 σ Δ V G P S 2 1
x ^ k = x ^ k k 1 K y ˜
y ˜ = H x ^ k k 1 V E G P S V N G P S
where Δ ψ is the incremental angle prediction of the IMU’s z axis on the fuselage axis, i.e., the incremental heading; Δ V x y is the incremental velocity measurement of the IMU on the fuselage axis; σ Δ V x y 2 is the variance of the incremental velocity measurements of the x and y axes, where the observation transfer matrix is H = 0 1 0 0 0 1 .
λ = 1 1 + k ( v j , k ) 2
x f u s e d = j = 1 N λ j x j
P f u s e d = j = 1 N λ j ( P k , j + x ^ k , j x ^ k x ^ k , j x ^ k T )
The fusion weight calculation method is based on velocity residuals, using the Euclidean distance of the velocity residuals v from each sub-model to determine the corresponding weights λ . Normalization and smoothing are executed for the residuals, and the contribution of each sub-model is dynamically adjusted in the heading estimation. These weights are used to adjust the state vector and covariance matrix of multiple models to solve the issue. To avoid the angle wrap-back problem, the heading states are converted to vectors with a length equal to the weight value 1 before summation. Following normalization, the state variable x f u s e d and the corresponding covariance matrix P f u s e d are produced based on weight fusion.

3. Simulation

To validate the effectiveness of the proposed heading estimation method, this section describes simulations performed for the model of the flight process of a micro coaxial dual-rotor drone under different maneuvering characteristics. As illustrated in Figure 6, one of the horizontal maneuvering trajectories is presented. Derivation of trajectories was achieved by the removal of outliers and application of smoothing interpolation to the data obtained from onboard altitude and geolocation sensors. Initially, the drone is positioned in a stationary state on the ground. Thereafter, it ascends to a specified altitude and initiates horizontal maneuvers, including straight-line acceleration, deceleration, and turning maneuvers, to verify the observability of the heading estimation. This trajectory is designed to approximately reflect typical UAV flight characteristics, encompassing both the take-off and horizontal motion phases, and serves as the basis for subsequent simulations.
In the simulation environment, sensor data are generated depending on the performance parameters of the key sensors used on the drone. The IMU in the simulation is set to a sampling rate of 400 Hz, while the GNSS is set to a sampling rate of 10 Hz. The MEMS-IMU model employed is the ADIS16505-1, which provides data on angular velocity and specific force. Table 1 presents the specific parameters used for the analysis. The GNSS performance settings are derived from the model BT-F9BK4, which provides velocity information. Table 2 illustrates the relevant parameters.
In the takeoff part, the simulated data were generated based on the true values from outdoor flight trajectory combined with the characteristics of the sensors. The raw data were simulated using MATLAB R2022a SENSOR toolbox. The inertial navigation method was compared with the Mahony filter algorithm and the proposed algorithm. To further demonstrate the advantages of the proposed method in heading estimation, it was also compared with a state-of-the-art (SOTA) method presented in [22]. The simulation commenced at 0 s and concluded at 45 s.
Figure 7a illustrates that the simulation was initially conducted during the take-off phase, and the outcomes of the four heading estimation techniques are presented. The initial heading was set to 0°, with the first five seconds representing the initialization phase, during which the drone remained stationary on the ground, followed by the take-off. After take-off, the simulation demonstrated that the drone executes substantial maneuvers, with the maximum heading change reaching approximately 90°. Figure 7 highlights three representative key positions, defined by red dashed boxes, with the details. Additionally, Figure 7b–d present localized enlarged views of Figure 7a.
Figure 7b illustrates the heading estimation outcomes during the ground initialization phase, where both the inertial method and the SOTA algorithm demonstrate significant discrepancies when the drone commences its initial movement. The inability of the heading thresholds to adjust dynamically results in a lack of prompt response to the transition from a stationary to a moving state. The Mahony algorithm demonstrates superior performance, as its integration factor mitigates the tendency to overreact to sudden changes in the drone’s movement. Conversely, the proposed MAHS method demonstrates higher accuracy in heading estimation by closely following the true value curve.
Figure 7c illustrates the alterations in the heading when the drone executes substantial maneuvers during take-off. In this case, both the SOTA and the proposed method demonstrate an ability to track the true value curve with a high degree of accuracy. Conversely, the inertial and Mahony filter methods exhibit a greater tendency to deviate from the true value, with the maximum error reaching up to 50°. Figure 7d depicts the heading estimation outcomes after the conclusion of the entire take-off procedure. The proposed method exhibits a deviation of merely 1° from the true heading angle, effectively addressing the issue of heading drift in the absence of GPS correction.
The maximum absolute error (MAE), root mean square error (RMSE), and standard deviation (STD) were identified as the primary performance evaluation metrics. Table 3 presents the results of the various methods.
As illustrated in Table 3, the inertial method and the Mahony filter algorithm demonstrate suboptimal performance in heading estimation accuracy, particularly during periods of intense motion, where the errors are more pronounced. Conversely, the proposed MAHS algorithm demonstrates superior precision and stability, achieving MAE of 0.6251, indicating an overall high level of accuracy. Furthermore, the algorithm demonstrates remarkable stability in both stationary and intense motion states and during prolonged operation, with a RMSE of 0.3661, representing an 85% improvement compared to the SOTA method. This result illustrates that the proposed algorithm effectively addresses the heading drift issue and maintains high estimation accuracy throughout the take-off process.
Following the ground initialization and take-off process, the micro coaxial dual-rotor drone ascended to the predetermined horizontal altitude. Subsequently, the GPS velocity data were employed to facilitate a further alignment of the heading through horizontal maneuvers. As previously demonstrated, the drone successfully executed the heading stabilization operation. Given the potential for magnetic interference during the flight, error redundancy was incorporated into the initialization process to validate the system’s robustness. Based on the derivations presented in Section 2, the confidence interval for the APEKF algorithm was set to 60°, and five sub-filters were initialized, with a horizontal plane cutting step of 15°.
Figure 8 presents the results of three sets of simulations conducted under three different horizontal motion modes. Figure 8a–c represents linear acceleration, turning acceleration, and curved motion, respectively; in the figures, the blue line represents the true value in the simulation, whereas the red dots indicate the GPS velocity observations.
Figure 9 illustrates the results of diverse heading alignment techniques across the three sets of simulations, with a comparison of the EKF method [23], the UKF method [24], the GSF-UKF method [25], and the Particle Filter (PF) method [26]. Generally, the GSF-UKF method tends to diverge when faced with significant heading misalignments, whereas the UKF method demonstrates a slower convergence rate than the EKF method. Although the particle filter method demonstrates relatively rapid convergence, a magnified view reveals sudden changes in heading estimation during intense maneuvers [27]. Conversely, the proposed method demonstrates accelerated convergence during heading alignment and maintains high stability throughout the process. Figure 9a illustrates that the heading error gradually decreases when the aircraft reaches the horizontal plane and performs rapid maneuvers. Hence, the proposed method enhances the speed and precision of heading alignment based on nonlinear filtering algorithms, particularly in complex dynamic flight scenarios.
Figure 10 presents an analysis of the internal operational process of the APEKF, demonstrating that the state quantities of the sub-filters exhibit a gradual convergence towards the true value while the weights likewise attain greater uniformity. During the initial phase of the filtering process, sub-filters far from the true heading exhibit diminished weight contributions due to the parameterized preset of the heading. However, as the filter iterations progress, the sub-filters gradually converge, and their weights become consistent [28]. This process demonstrates that the proposed heading estimation algorithm effectively achieves rapid convergence while maintaining high accuracy. Based on our tests on a microcontroller, although incorporating multiple sub-EKFs increases the execution time, the proposed APEKF still meets the real-time requirements for embedded systems. As illustrated in Table 4, a comparative analysis of the results from simulations has been conducted.

4. Airborne Test of Micro Coaxial Drone

Figure 11 illustrates the configuration of the experimental setup. The drone weighs approximately 416 g and is configured as a coaxial rotor helicopter with a strongly coupled six-degree-of-freedom mechanical structure. Its propulsion system comprises two brushless direct current motors that rotate in opposite directions at an oblique incidence angle, while two servo motors are installed on the lower rotor. The sensors are installed on the drone body and its core board, with data acquisition achieved via the STM32F446 microcontroller serial port, thereby enabling the simultaneous collection of raw data from multiple sensors. The experiment used the QMC5883 magnetometer to provide 100 Hz triaxial magnetic field data, while the IMU provided 400 Hz acceleration and angular velocity data. The IMU and magnetometer are integrated into the main control core PCB, while the GNSS antenna is mounted vertically on the carbon fiber support rod on the side wing of the drone. To enhance the precision of the reference data in the experiment, a dual-antenna orientation device, SINOm100W, was positioned on the support frame beneath the drone, providing heading reference data with an accuracy of 0.1° (this device was solely employed for experimental true value comparison and is not incorporated into the actual design).
The experiment was conducted in an open and flat area, with three independent datasets collected to verify the proposed method. The average duration of the experiment was 60 s. The drone was observed to perform a series of tests, beginning with the initialization, takeoff, and multiple horizontal maneuvering flight tests, all of which commenced from the origin.
Figure 12 demonstrates that, during the ground initialization phase, the magnetometer’s heading calculation was influenced by a certain degree of magnetic declination. The magnetometer data are represented by a light grey dashed line, with the red line denoting the reference heading. Nevertheless, this interference was relatively minor compared to the significant magnetic interference generated during high-power operations of the motor after take-off, resulting in a discernible escalation in magnetic interference. Figure 12 emphasizes the necessity of effectively addressing motor interference during heading estimation to ensure flight. Figure 13 presents the flight path that was recorded during a field test that was conducted in a parking lot. GNSS was utilized to acquire latitude and longitude data, which were subsequently displayed on Google Earth to illustrate the operational trajectory. The trajectory encompassed a distance of approximately 65 m. Key waypoints were delineated under real-world conditions.
Figure 14 presents the results of the heading estimation conducted using various methods in the onboard experiment. The experiment included the initialization, take-off, and horizontal maneuvering phases, during which several algorithms were compared: the EKF method [29], the Optimized Mahony filter method [30], the UAV-PF method [31], and the proposed method. Moreover, the red reference line in Figure 13 denotes the output of the heading reference device. Given that the system delineates the heading angle within a range of −180° to 180°, the reference value at the 19-s and 40-s mark, though exceeding −180° and approaching 180°, does not signify any substantial change in the actual flight heading of the aircraft. The experiment focused on the initial five seconds of the MAHS phase, during which the MAHS algorithm demonstrated its efficiency in suppressing magnetic interference at the initial startup of the motor. Subsequently, APEKF performed rapid heading alignment using GNSS velocity data. The entire experiment demonstrated the effective combination of these two algorithms, significantly improving the accuracy and convergence speed of the heading estimation.
Implementing the optimized heading estimation method proposed in this study resulted in a notable enhancement in the performance of the heading during the take-off process of the coaxial drone. Table 5 presents the results of the onboard experiment, showing that the proposed method demonstrated the most optimal performance regarding alignment time, standard deviation, and root mean square error. The heading alignment time was reduced to 1.794 s, with a standard deviation of 0.7678° and an RMSE of only 1.0107°. Overall, the algorithm demonstrated significant enhancements in accuracy and stability compared to alternative methods, particularly in managing the dynamic environment during the take-off phase.

5. Conclusions

This study proposed a heading estimation method for micro coaxial drones based on the Angle-Parameterized Extended Kalman Filter (APEKF) to solve the heading estimation problem. At the initialization phase on the ground, the initial heading is estimated using the magnetometer. Given the considerable electromagnetic interference generated by the drone’s body following the activation of the motor, we showed an innovative solution based on the Motion-Adaptive Heading Stabilization (MAHS) algorithm, which is designed to mitigate the effects of heading drift caused by the accumulation of vertical angular velocity errors during take-off. Once the drone has reached horizontal flight, the heading is aligned with precision using GNSS signals and horizontal maneuvers. The efficacy of this method was confirmed by simulations, wherein the heading deviation was reduced by 43% within 60 s, achieving an alignment of 1.79 s with a final accuracy of 1.01°. The algorithm exhibited high precision and robustness within a relatively short time frame. Moreover, the practical applicability of the method was confirmed by onboard experiments, which demonstrated that the micro coaxial drone can estimate the heading with stability and accuracy. Compared to conventional methodologies, the proposed approach to heading estimation effectively addressed the technical challenges associated with heading estimation for coaxial drones, offering significant advantages regarding time efficiency and accuracy.

Author Contributions

Conceptualization, H.Y., X.D., L.Z. and X.C.; methodology, H.Y.; software, H.Y. and X.C.; validation, L.Z. and X.D.; formal analysis, H.Y.; investigation, L.Z. and X.D.; resources, L.Z.; writing—original draft preparation, H.Y.; writing—review and editing, H.Y. and X.C.; supervision, L.Z.; All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the National Natural Science Foundation of China (No. 52271346) and the Fundamental Research Funds for the Central Universities under Grant 2242023R40052.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
RTK-GNSSreal-time kinematic Global Navigation Satellite Systems
APEKFAngle-Parameterized Extended Kalman Filter
IMUInertial Measurement Unit
INSInertial Navigation System
MEMSMicro-Electro-Mechanical System
EKFExtended Kalman Filter
MAHSMotion-Adaptive Heading Stabilization
PFParticle Filter
UKFUnscented Kalman Filter
GSFGaussian Sum filter

References

  1. Titterton, D.; Weston, J.L. Strapdown Inertial Navigation Technology; The Institution of Engineering and Technology: Herts, UK, 2004. [Google Scholar]
  2. Dominguez, V.H.; Garcia-Salazar, O.; Amezquita-Brooks, L.; Reyes-Osorio, L.A.; Santana-Delgado, C.; Rojo-Rodriguez, E.G. Micro Coaxial Drone: Flight Dynamics, Simulation and Ground Testing. Aerospace 2022, 9, 245. [Google Scholar] [CrossRef]
  3. Wang, Z.; Liu, B.; Cui, X.; Li, Y.; Yang, Y.; Lyu, Z. The Application of Micro Coaxial Rotorcraft in Warfare: An Overview, Key Technologies, and Warfare Scenarios. IEEE Access 2022, 10, 40358–40366. [Google Scholar]
  4. Luo, L.; Huang, Y.; Zhang, Z.; Zhang, Y. A Position Loci-Based in-Motion Initial Alignment Method for Low-Cost Attitude and Heading Reference System. IEEE Trans. Instrum. Meas. 2020, 70, 7500618. [Google Scholar] [CrossRef]
  5. Xu, J.; Hao, Y.; Wang, J.; Li, L. The Control Algorithm and Experimentation of Coaxial Rotor Aircraft Trajectory Tracking Based on Backstepping Sliding Mode. Aerospace 2021, 8, 337. [Google Scholar] [CrossRef]
  6. El-Sheimy, N.; Hou, H.; Niu, X. Analysis and Modeling of Inertial Sensors Using Allan Variance. IEEE Trans. Instrum. Meas. 2007, 57, 140–149. [Google Scholar]
  7. Zhao, L.; Wang, Q.Y. Design of an Attitude and Heading Reference System Based on Distributed Filtering for Small UAV. Math. Probl. Eng. 2013, 2013, 498739. [Google Scholar]
  8. Muchiri, G.; Kimathi, S. A Review of Applications and Potential Applications of UAV. In Proceedings of the Sustainable Research and Innovation Conference, Pretoria, South Africa, 20–24 June 2022; pp. 280–283. [Google Scholar]
  9. Liu, Z.; Zhang, Y.; Chen, H.; Zhang, Z. Incremental Control System Design and Flight Tests of a Micro-Coaxial Rotor UAV. Aerosp. Sci. Technol. 2022, 131, 107979. [Google Scholar]
  10. Metge, J.; Megret, R.; Giremus, A.; Berthoumieu, Y.; Mazel, C. Dynamic Magnetic Field Compensation for Micro UAV Attitude Estimation. In Proceedings of the 2013 International Conference on Unmanned Aircraft Systems (ICUAS), Atlanta, GA, USA, 28–31 May 2013; IEEE: Piscataway, NJ, USA, 2013; pp. 725–733. [Google Scholar]
  11. Medina, D.; Vilà-Valls, J.; Hesselbarth, A.; Ziebold, R.; García, J. On the Recursive Joint Position and Attitude Determination in Multi-Antenna GNSS Platforms. Remote Sens. 2020, 12, 1955. [Google Scholar] [CrossRef]
  12. Wang, S.; Qiu, Z.; Huang, P.; Yu, X.; Yang, J.; Guo, L. A Bioinspired Navigation System for Multirotor UAV by Integrating Polarization Compass/Magnetometer/INS/GNSS. IEEE Trans. Ind. Electron. 2022, 70, 8526–8536. [Google Scholar]
  13. Jirigalatu, J.; Krishna, V.; Lima Simões da Silva, E.; Døssing, A. Experiments on Magnetic Interference for a Portable Airborne Magnetometry System Using a Hybrid Unmanned Aerial Vehicle (UAV). Geosci. Instrum. Methods Data Syst. Discuss. 2020, 2020, 25–34. [Google Scholar]
  14. Wu, Q.; Chai, H.; Xiang, M.; Zhang, Y.; Zhang, F.; Feng, X. Rapid In-Motion Heading Alignment Using Time-Differenced Carrier Phases from a Single GNSS Antenna and a Low-Grade IMU. Meas. Sci. Technol. 2024, 35, 106302. [Google Scholar]
  15. Syed, Z.F.; Aggarwal, P.; Niu, X.; El-Sheimy, N. Civilian Vehicle Navigation: Required Alignment of the Inertial Sensors for Acceptable Navigation Accuracies. IEEE Trans. Veh. Technol. 2008, 57, 3402–3412. [Google Scholar]
  16. Hong, H.; Lee, J.; Park, C. Performance Improvement of In-Flight Alignment for Autonomous Vehicle Under Large Initial Heading Error. IEE Proc.-Radar Sonar Navig. 2004, 151, 57–62. [Google Scholar]
  17. Liu, J.; Chen, X.; Wang, J. Strong Tracking UKF-Based Hybrid Algorithm and Its Application to Initial Alignment of Rotating SINS with Large Misalignment Angles. IEEE Trans. Ind. Electron. 2022, 70, 8334–8343. [Google Scholar]
  18. Hu, F.; Wu, G. Distributed Error Correction of EKF Algorithm in Multi-Sensor Fusion Localization Model. IEEE Access 2020, 8, 93211–93218. [Google Scholar]
  19. Mahony, R.; Hamel, T.; Pflimlin, J.-M. Nonlinear Complementary Filters on the Special Orthogonal Group. IEEE Trans. Autom. Control 2008, 53, 1203–1218. [Google Scholar]
  20. Ma, H.; Ge, M.; Wu, G.; Du, B.; Liu, Y. Formulas of the Optimized Yaw Angles for Cooperative Control of Wind Farms with Aligned Turbines to Maximize the Power Production. Appl. Energy 2021, 303, 117691. [Google Scholar]
  21. Niu, X.; Liu, Z.; Chen, Q.; Zhang, T. Determining the MEMS INS Initial Heading Using Trajectory Matching for UAV Applications. IEEE Sens. J. 2023, 24, 543–553. [Google Scholar]
  22. Ji, M.; Xu, X.; Guo, Y. An Adaptive Heading Correction Algorithm for Suppressing Magnetic Interference in Inertial Navigation System. IEEE Trans. Instrum. Meas. 2021, 70, 9513010. [Google Scholar]
  23. Wen, W.; Kan, Y.C.; Hsu, L.-T. Performance Comparison of GNSS/INS Integrations Based on EKF and Factor Graph Optimization. In Proceedings of the 32nd International Technical Meeting of the Satellite Division of The Institute of Navigation (ION GNSS+ 2019), Miami, FL, USA, 16–20 September 2019; pp. 3019–3032. [Google Scholar]
  24. Meng, Y.; Gao, S.; Zhong, Y.; Hu, G.; Subic, A. Covariance Matching Based Adaptive Unscented Kalman Filter for Direct Filtering in INS/GNSS Integration. Acta Astronaut. 2016, 120, 171–181. [Google Scholar]
  25. Kubo, Y.; Wang, J. INS/GPS Integration Using Gaussian Sum Particle Filter. In Proceedings of the 21st International Technical Meeting of the Satellite Division of The Institute of Navigation (ION GNSS 2008), Savannah, Georgia, 16–19 September 2008; pp. 1345–1352. [Google Scholar]
  26. Zhao, Y.; Xue, X.; Zhang, T. A Modified Particle Filter for Dynamic Multipath Mitigation in GPS Receivers. In Proceedings of the 2012 International Conference on Information Technology and Software Engineering: Information Technology & Computing Intelligence, Beijing, China, 8–10 December 2012; pp. 183–193. [Google Scholar]
  27. Pei, L.; Liu, D.; Zou, D.; Choy, R.L.F.; Chen, Y.; He, Z. Optimal Heading Estimation Based Multidimensional Particle Filter for Pedestrian Indoor Positioning. IEEE Access 2018, 6, 49705–49720. [Google Scholar]
  28. De Courville, M.; Duhamel, P. Adaptive Filtering in Subbands Using a Weighted Criterion. IEEE Trans. Signal Process. 1998, 46, 2359–2371. [Google Scholar]
  29. Munguia, R.; Grau, A. Attitude and Heading System Based on EKF Total State Configuration. In Proceedings of the 2011 IEEE International Symposium on Industrial Electronics, Gdansk, Poland, 27–30 June 2011; IEEE: Piscataway, NJ, USA, 2011; pp. 2147–2152. [Google Scholar]
  30. Zhu, Y.; Liu, J.; Yu, R.; Mu, Z.; Huang, L.; Chen, J.; Chen, J. Attitude Solving Algorithm and FPGA Implementation of Four-Rotor UAV Based on Improved Mahony Complementary Filter. Sensors 2022, 22, 6411. [Google Scholar] [CrossRef] [PubMed]
  31. Gao, J.; Zhao, H. An Improved Particle Filter for UAV Passive Tracking Based on RSS. In Proceedings of the 2020 IEEE 92nd Vehicular Technology Conference (VTC2020-Fall), Virtual Conference, 18 November–16 December 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 1–6. [Google Scholar]
Figure 1. Micro coaxial drone heading estimation process.
Figure 1. Micro coaxial drone heading estimation process.
Drones 09 00255 g001
Figure 2. Structure of the heading estimation method for micro coaxial drones.
Figure 2. Structure of the heading estimation method for micro coaxial drones.
Drones 09 00255 g002
Figure 3. Mechanical structure and coordinate systems of the micro coaxial drone.
Figure 3. Mechanical structure and coordinate systems of the micro coaxial drone.
Drones 09 00255 g003
Figure 4. Flow of heading estimation based on angular parameterized extended Kalman filtering.
Figure 4. Flow of heading estimation based on angular parameterized extended Kalman filtering.
Drones 09 00255 g004
Figure 5. Heading parameterization and convergence process.
Figure 5. Heading parameterization and convergence process.
Drones 09 00255 g005
Figure 6. Simulated flight trajectory of the micro coaxial drone.
Figure 6. Simulated flight trajectory of the micro coaxial drone.
Drones 09 00255 g006
Figure 7. Comparison of four heading estimation methods in simulation. (a) Simulation during the entire take-off phase with three representative key positions highlighted by red dashed boxes (bd) presenting enlarged views. (b) Heading estimation results during the ground initialization phase. (c) Heading changes during substantial maneuvers in take-off. (d) Heading estimation after the full take-off procedure.
Figure 7. Comparison of four heading estimation methods in simulation. (a) Simulation during the entire take-off phase with three representative key positions highlighted by red dashed boxes (bd) presenting enlarged views. (b) Heading estimation results during the ground initialization phase. (c) Heading changes during substantial maneuvers in take-off. (d) Heading estimation after the full take-off procedure.
Drones 09 00255 g007
Figure 8. Simulated drone horizontal maneuvers. GPS velocity and true trajectory. (a) Linear acceleration. (b) Turning acceleration. (c) Curved motion.
Figure 8. Simulated drone horizontal maneuvers. GPS velocity and true trajectory. (a) Linear acceleration. (b) Turning acceleration. (c) Curved motion.
Drones 09 00255 g008
Figure 9. Comparison of heading estimation across five filters during horizontal maneuver simulation. (a) corresponds to Simulation 1; (b) corresponds to Simulation 2; (c) corresponds to Simulation 3.
Figure 9. Comparison of heading estimation across five filters during horizontal maneuver simulation. (a) corresponds to Simulation 1; (b) corresponds to Simulation 2; (c) corresponds to Simulation 3.
Drones 09 00255 g009
Figure 10. APEKF sub-filter output states and weight convergence.
Figure 10. APEKF sub-filter output states and weight convergence.
Drones 09 00255 g010
Figure 11. Test micro coaxial drone (main board) and takeoff scene.
Figure 11. Test micro coaxial drone (main board) and takeoff scene.
Drones 09 00255 g011
Figure 12. Magnetometer heading estimation under interference.
Figure 12. Magnetometer heading estimation under interference.
Drones 09 00255 g012
Figure 13. Trajectory of the airborne test displayed on Google Earth.
Figure 13. Trajectory of the airborne test displayed on Google Earth.
Drones 09 00255 g013
Figure 14. Comparison of four-heading estimation methods in the onboard experiment.
Figure 14. Comparison of four-heading estimation methods in the onboard experiment.
Drones 09 00255 g014
Table 1. Specifications of ADIS16505-1.
Table 1. Specifications of ADIS16505-1.
IndexAccelerometerGyroscope
Dynamic range ± 78.4   m / s 2 ± 125   ° / s
Sensitivity 0.04   m / s 2 0.06   ° / s
Bias repeatability 19.6 × 10 3   m / s 2 1.4   ° / s
In-Run Bias Stability 43.1 × 10 6   m / s 2 1.5   ° / h
s = second; m = meter; h = hour.
Table 2. Specifications of BT-F9BK4.
Table 2. Specifications of BT-F9BK4.
IndexGNSS
Velocity accuracy 0.05   m / s
Time accuracy 3 × 10 8   s
Cold start time 24   s
Table 3. Comparison of heading errors.
Table 3. Comparison of heading errors.
Heading Error (°)Mahony MethodInertial MethodSOTA MethodProposed Method
MAE61.168722.11474.40980.6251
RMSE28.941614.70322.46090.3661
STD20.66119.03412.39200.2117
Table 4. Heading alignment errors and convergence time.
Table 4. Heading alignment errors and convergence time.
MethodSimulation 1 RMSE (°) Time (s)Simulation 2 RMSE (°)Time (s)Simulation 3 RMSE (°) Time (s)
EKF9.8943.820.3219.520.4049.05
UKF30.24516.730.09814.51155.941N/A
UKF-GSF176.556N/A174.154N/A173.049N/A
PF2.7594.112.8975.46.52710.29
APEKF1.7942.33.4146.23.3287.25
N/A means not applicable.
Table 5. Flight test results.
Table 5. Flight test results.
MethodAlignment Time (s)STD (°)RMSE (°)
Optimized MahonyN/A88.081993.1734
EKF9.8943.82397.5563
UAV-PF2.7592.22283.5526
Proposed Method1.7940.76781.0107
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

Yang, H.; Ding, X.; Zhao, L.; Chen, X. Hybrid Heading Estimation Approach for Micro Coaxial Drones Based on Motion-Adaptive Stabilization and APEKF. Drones 2025, 9, 255. https://doi.org/10.3390/drones9040255

AMA Style

Yang H, Ding X, Zhao L, Chen X. Hybrid Heading Estimation Approach for Micro Coaxial Drones Based on Motion-Adaptive Stabilization and APEKF. Drones. 2025; 9(4):255. https://doi.org/10.3390/drones9040255

Chicago/Turabian Style

Yang, Haoming, Xukai Ding, Liye Zhao, and Xingyu Chen. 2025. "Hybrid Heading Estimation Approach for Micro Coaxial Drones Based on Motion-Adaptive Stabilization and APEKF" Drones 9, no. 4: 255. https://doi.org/10.3390/drones9040255

APA Style

Yang, H., Ding, X., Zhao, L., & Chen, X. (2025). Hybrid Heading Estimation Approach for Micro Coaxial Drones Based on Motion-Adaptive Stabilization and APEKF. Drones, 9(4), 255. https://doi.org/10.3390/drones9040255

Article Metrics

Back to TopTop