Research on Complementary Filtered Attitude Solution Method for Quadcopter Based on Double Filter Preprocessing
DOI:
https://doi.org/10.5755/j02.mech.34093Keywords:
quadrotor, harr wavelet, complementary filtering, double filtering, peprocessingAbstract
In the attitude calculation process of quadrotor, the traditional pre-filtering method has degraded the attitude solving accuracy due to incomplete denoising of accelerometer and gyroscope measurements. Therefore, a complementary filtered attitude solution method based on double filter pre-processing is proposed to address this problem. First, the signal decomposition, hard threshold denoising, and signal reconstruction of the accelerometer and gyroscope acquired data are performed using the Haar real-time wavelet filtering algorithm. The reconstructed signal is then filtered by the infinite impulse response ( IIR ) low-pass filtering algorithm to remove the residual high-frequency noise and complete the dual filtering preprocessing. Next, the gyroscope data is corrected with accelerometer data according to the complementary filtering algorithm. Finally, the corrected data are used to solve the quaternion and thus the attitude angle by combining the Longacurta method. The results show that the dual filtering preprocessing method can further reduce the noise in the measurements of accelerometer and gyroscope. The attitude angle results calculated by the proposed method in the static and dynamic hovering states of the four-rotor aircraft have a small degree of dispersion, which can effectively improve the accuracy of attitude calculation.