Next Article in Journal
IMPA versus Cloud Analysis and IDA: Different Methods to Evaluate Structural Seismic Fragility
Previous Article in Journal
Blockchain-Based Internet of Things Access Control Technology in Intelligent Manufacturing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Adaptive Three-Axis Attitude Estimation Method Based on Multi-Sensor Fusion for Optoelectronic Platform

1
Key Laboratory of Airborne Optical Imaging and Measurement, Changchun Institute of Optics, Fine Mechanics and Physics, Chinese Academy of Sciences, Changchun 130033, China
2
University of Chinese Academy of Sciences, Beijing 100049, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2022, 12(7), 3693; https://doi.org/10.3390/app12073693
Submission received: 24 February 2022 / Revised: 3 April 2022 / Accepted: 4 April 2022 / Published: 6 April 2022
(This article belongs to the Section Aerospace Science and Engineering)

Abstract

:
Optoelectronic platform is an important payload in the field of aerospace and widely used in geographic mapping, measurement, and positioning. In order to obtain high-precision attitude measurement, gyro and accelerometer are applied in the feedback loop of light of sight (LOS) control system of optoelectronic platform. Aiming at compensating for gyro drift and maneuvering acceleration disturbance, an adaptive 3-axis attitude estimation method is proposed in this paper. An adaptive threshold criterion is designed by applying the accelerometer data in the sliding window. The threshold is determined in real time to judge whether the maneuvering acceleration exists. If it exists, the angular attitude error is compensated for by the gyro drift model. Otherwise, the angular attitude error is compensated by multi-sensor fusion. Furthermore, a phase-lag-free low pass filter (LPF) is applied to compensate for the phase lag error introduced in the above attitude estimation process. Compared with the angular attitude calculated by gyro, the root mean square error (RMSE) of the proposed method in roll, pitch, and yaw attitude decreased 44.23%, 49.91%, and 46.21%, respectively. In addition, the proposed method can estimate the attitude accurately without obvious phase lag when the maneuvering acceleration disturbance exists. The focus of this paper is to improve the performance of LOS motion control system of optoelectronic platform from the perspective of sensor signal processing. This method is suitable for aerospace applications with high-precision measurement and positioning requirements without maneuver interference, drift error and phase lag.

Graphical Abstract

1. Introduction

Optoelectronic platform has a wide range of applications in the field of aerospace, such as disaster prevention and rescue, geographic mapping, and precision agriculture [1,2]. The line of sight (LOS) is the axis of the optoelectronic sensor lens. The stability of LOS of optoelectronic sensor can ensure the quality of the output image of optoelectronic platform. A high-quality feedback inertial signal is the basis of LOS motion control system in optoelectronic platform [3]. The processing of inertial sensor signal which affects the stabilization of LOS is an effective method. Gyro and accelerometer are two common inertial space motion sensors [4]. The LOS stability control of the optoelectronic platform needs the inertial velocity feedback of gyro. Gyro has a fast response but suffers from drift due to accumulated errors. In the application of the motion control method, even if the control command and feedback error are zero, the LOS of optoelectronic still shakes due to gyro drift [5]. Therefore, the velocity feedback of gyro measurement must be transformed into attitude feedback. In addition, maneuvering acceleration exists in the flight of aircraft. It adversely affects the output of the accelerometer and the angular attitude calculated from it [6]. Therefore, the attitude estimation based on multi-sensor data fusion method is necessary to improve the attitude control performance of optoelectronic platform.
Many scholars do studies to solve the above problems. An attitude estimation algorithm based on gyro and accelerometer is proposed in reference [7]. However, the cumulative error of yaw attitude cannot be compensated for due to the lack of magnetometer information. An error data model of accelerometer and gyro is established and the attitude of moving carrier is predicted by Kalman filter [8,9]. This method can suppress the attitude divergence caused by gyro drift but it is not applicable to the situation where the motion state changes rapidly. The system has poor robustness because the accelerometer measures the sum of motion acceleration and gravity acceleration when the carrier has maneuvering acceleration [10]. An extended Kalman filter (EKF) algorithm is applied to integrate accelerometer and magnetometer in [11]. During the maneuvering period, the estimation error of the maneuvering acceleration is modeled as the sum of a fluctuation error and a sudden change error. However, the magnetometer has measurement error due to electromagnetic interference which affects the measurement accuracy [12]. An improved adaptive Kalman filter (AKF) based on Sage-Husa time-varying state disturbance estimator is used to estimate the mean and variance of state disturbance, but this method is not stable and easy to diverge [13].The combination of KF and adaptive Kalman filter is also an effective data fusion method [14]. Reference [15] takes GPS/SINS integrated navigation as the background and adopts adaptive filter algorithm for attitude estimation. However, the measurement error of GPS is large when obstructions exist which affects the accuracy of the algorithm [16]. In addition, it needs to be processed synchronously with inertial sensor which increases the complexity of the algorithm.
In order to solve the above problems, zero speed correction and speed constraint are applied to improve the accuracy and robustness of attitude estimation algorithm [17]. It means that the accurate detection of motion state of the moving carrier is very important. Reference [18] uses accelerometer variance and introduces yaw attitude for detection. The motion state is judged by the standard deviation (STD) of X-axis and Y-axis data of accelerometer and magnetometer [19]. These methods are mainly used in vehicle navigation system but there is little research on attitude measurement. In addition, it is difficult to meet the real-time and flexibility requirements of LOS stabilization control system of the optoelectronic platform.
Furthermore, dynamic processes lead to phase lag. If the feedback signal lags behind, the control system is difficult to achieve a high performance [20]. The purpose of introducing additional signal is reducing the phase lag. Low pass filter (LPF) and high pass filter (HPF) can form a filter to utilize the phase advance information [21]. However, it is difficult for any input signal to compensate for the phase lag of LPF. A phase-lag-free LPF has been proposed using higher-order signal in [22]. This method can suppress noise without obvious phase lag.
Although the common data fusion method can effectively suppress the gyro drift, the measurement accuracy is not high due to the influence of maneuver. The application of GPS and magnetometer can suppress the maneuvering acceleration interference effectively. However, GPS is not suitable for suspended platform without movement since it is necessary to establish the correction quantity related to the inertial attitude [23]. The measurement accuracy of magnetometer is not high due to electromagnetic interference [12]. In addition, signal filtering will lead to phase lag inevitably. Compensating the phase lag is also effective to improve the performance of the control system. Optoelectronic platforms adopt vibration isolators to isolate the interference from the carrier, such as attitude motion and vibration [24]. The LOS stability control accuracy of optoelectronic platform can be improved as long as the attitude estimation based on multi-sensor fusion is applied. The contributions of this study are as follows:
(a) An adaptive threshold criterion is designed based on the accelerometer data in the sliding window. The threshold is determined online to judge whether the influence of maneuvering acceleration can be ignored;
(b) Data fusion based on gyro and accelerometer (DFBGA) and suppressing maneuvering acceleration disturbance method (SLAIM) are designed in attitude estimation. Based on adaptive threshold criterion, DFBGA is applied if the influence of maneuvering acceleration can be ignored. SLAIM is applied if the influence of maneuvering acceleration cannot be ignored. It is also adopted in the estimation of yaw attitude because it cannot be measured by accelerometer;
(c) In order to compensate for the phase lag error introduced in the above attitude estimation process based on Kalman filter, a phase-lag-free LPF is proposed to revise the phase lag by applying the higher order signal.
This paper is organized as follows. The problem formulation is introduced in Section 2. The attitude estimation method design is proposed in Section 3. Simulations and experiments are described in Section 4. At last, Section 5 concludes the paper.

2. Problem Formulation

Body coordinate system and geographic coordinate system should be established as the reference coordinate system for attitude change. The coordinate system determined by the body axis of the carrier is the body coordinate system O b X b Y b Z b and the coordinate system determined by east-north-sky direction is geographic coordinate system O g X g Y g Z g . These two coordinate systems are shown in Figure 1. The accelerometer can obtain linear acceleration and the gyro can obtain angular velocity in the body coordinate system. The angular attitude and angular velocity in the geographic coordinate system can be obtained by solving the output data of these sensors. Roll angle γ is the angular attitude rotating around X g -axis, pitch angle θ is the angular attitude rotating around Y g -axis and yaw angle ψ is the angular attitude rotating around Z g -axis.
The measured value of gyro is the angular velocity of body coordinate system. It has the advantage of fast response and low cost. However, it suffers from drift due to accumulated errors by integration to obtain angle information. The measured value of accelerometer is the linear acceleration of body coordinate system which does not suffer from zero drift. However, the yaw angle ψ cannot be measured by accelerometer due to the rotation plane of ψ is orthogonal to gravity. Therefore, it is necessary to use the signal processing method of fusing multiple sensor data to improve the accuracy of angular attitude measurement.

3. An Adaptive Attitude Estimation Method Based on Multi-Sensor Fusion

In this study, attitude estimation algorithm flow chart is shown in Figure 2. It includes four parts: coordinate transformation, adaptive threshold setting, attitude measurement based on Kalman filter, and phase-lag-free LPF.

3.1. Coordinate Transformation

The coordinate transformation for accelerometer output data is shown as follows. If an vector in the inertial space is calculated by unit vector [ 0   0   1 ] T rotating around 3-axis, attitude rotation matrix C b g can be expressed as
C b g   =   cos γ cos ψ cos ψ sin γ sin θ     cos θ sin γ sin θ sin ψ   +   cos θ cos ψ sin γ cos γ sin ψ cos θ cos ψ   +   sin γ sin θ sin ψ cos θ sin γ sin ψ     cos ψ sin θ sin γ cos γ sin θ cos γ cos θ .
Record the accelerometer measurement as a x , a y , and a z after unitization
a x a y a z = C b g 0 0 1 = sin θ sin ψ + cos θ cos ψ sin γ cos θ sin γ sin ψ cos ψ sin θ cos γ cos θ .
In Equation (2), when the yaw angle ψ = 0 , the roll angle γ , and pitch angle θ can be calculated as Equations (3) and (4). However, the yaw angle cannot be measured by accelerometer due to the rotation plane is orthogonal to gravity.
γ = arcsin a x ,
θ = arctan a y a z .
The coordinate transformation of gyro output data is shown as follows. Its 3-axis angular velocity is ω x , ω y and ω z ,
ω x ω y ω z = cos θ cos γ cos γ 0 sin θ 0 1 cos θ cos γ sin γ 0 θ ˙ γ ˙ ψ ˙ .
Therefore, 3-axis angular velocity in the geographic coordinate system can be obtained by
ψ . θ . γ . = sin γ cos θ 0 cos γ cos θ cos γ 0 sin γ sin γ tan θ 1 cos γ tan θ ω x ω y ω z .

3.2. Adaptive Threshold Criterion

The accelerometer output data are used as the basis to judge the influence of maneuvering acceleration for the attitude estimation of roll angle γ and pitch angle θ , respectively. Collect the output data of X-axis and Y-axis of accelerometer in the conditions of the maneuvering acceleration exists and does not exist. If there are N groups of data within the sampling interval, the standard deviation(STD) of them can be expressed as
q S T D = 1 N 1 i = 1 N A i μ 2 ,
where A i is the i-th output of the single axis of the accelerometer, and μ is the average value of N groups data of the corresponding axis.
Take the X-axis as an example and collect the output data of X-axis of accelerometer in two conditions of the same interval. The STD of two conditions are shown in Figure 3. It shows that the STD of acceleration changes slowly when the maneuvering acceleration does not exist and the STD of the acceleration fluctuates greatly and changes rapidly when the maneuvering acceleration exists.
Based on the above analysis, an adaptive threshold criterion method is adopted. The threshold value λ s x is calculated according to the STD of x-axis and y-axis acceleration obtained in the fixed length sliding window, which can be expressed
λ s x = i = 1 n Q S T D x i · p x i · k x ,
where n is the fixed window length which used to calculate the threshold. k x is the magnification factor. Q S T D x i is the STD value calculated of each sampling interval in the window time. p x i is the weight factor and p x 1 p x 2 p x n .
p x i = i m i = 1 n i m , m = 2 ,
where i is the serial number in the window time. Compared with m = 1 , it can increase the influence of approaching time; compared with m > 2 , it will not highlight the approaching time too much to suppress the influence of gross error on the threshold calculation.
If the STD of acceleration calculated in the current period is less than the threshold λ s x , it could be considered that the influence of the maneuvering acceleration in the current period can be ignored. Otherwise, it is considered that the influence of the acceleration in the current period cannot be ignored. The threshold setting and the method of judging whether the maneuvering acceleration exists of Y-axis are similar to that of X-axis.

3.3. Attitude Estimation Based on Kalman Filter

The accuracy of the angular attitude calculated by the accelerometer is influenced by the maneuvering acceleration in motion. In addition, the yaw angle cannot be calculated by the output data of the accelerometer. Therefore, two attitude estimation algorithms are designed based on Kalman filter.
For the roll angle γ and pitch angle θ , if the STD of the acceleration output data calculated in the current period is greater than the threshold of the corresponding axis, that is the influence of maneuvering acceleration cannot be ignored and for the yaw angle ψ , the angular attitude is calculated by SLAIM. If the STD of the output data of accelerometer calculated in the current period is less than the threshold of the corresponding axis, that is the influence of the maneuvering acceleration can be ignored, the angular attitude is calculated by DFBGA.

3.3.1. Kalman Filter for Inertial Attitude Estimation

Set state equation and measurement equations of random linear discrete system as:
x k = A k , k 1 x k 1 + B k , k 1 u k + ω k z k = H k x k + ν k ,
where x k is the state variable, z k is the measurement variable, A k , k 1 is the non-singular state one step transition matrix, B k , k 1 is the process noise input matrix, u k is the control input, ω k is the random process noise sequence, H k is the measurement matrix and ν k is the measurement noise sequence.
Time update equations:
x ^ k = A x ^ k 1 + B u ^ k 1 + ω ^ k 1 ,
P k = A P k 1 A T + Q .
State update equations:
K k = P k H T ( H P k H T + R ) 1 ,
x ^ k = x ^ k + K k z k H x ^ k ,
P k = ( I K k H ) P k .

3.3.2. Data Fusion Method of Gyro and Accelerometer

For the angular attitude measurement of roll angle γ and pitch angle θ when the influence of maneuvering acceleration can be ignored, the data of gyro and accelerometer are fused to obtain accurate attitude estimation value by Kalman filter.
The roll angle γ and pitch angle θ are taken as the state variables of Kalman filter, that is the state variables of the state equation in Equation (10) is
x k = γ k θ k T .
The angular attitude calculated by the accelerometer and the angular velocity calculated by the gyro in the geographic coordinate system are taken as the measurement variables of Kalman filter. The measurement variables of the measurement equation in Equation (10) is
z k = γ k γ ˙ k θ k θ ˙ k T ,
where γ k and θ k are the actual roll and pitch angular attitude, γ k and θ k are the roll and pitch angular attitude calculated by the accelerometer and γ ˙ k and θ ˙ k are the roll and pitch angular velocity calculated by the gyro at k-time. In this fusion method, control input μ k = 0 , random process noise sequence ω k and measurement noise sequence υ k can be ignored.

3.3.3. Attitude Estimation for Suppressing Maneuvering Acceleration Disturbance

For the angular attitude estimation of roll angle γ and pitch angle θ when the influence of maneuvering acceleration cannot be ignored as well as the angular attitude estimation of yaw angle ψ , the attitude error caused by gyro dynamic drift is regarded as a time-varying signal. A more accurate attitude error estimation value is obtained through Kalman filter to compensate for the attitude angle error.
There is an attitude drift error between the angular attitude calculated by the gyro and the actual angular attitude due to the existence of gyro zero drift. The relationship between the actual angular attitude and the calculated angular attitude at moment k is as follows:
γ k θ k ψ k = γ k ε γ k θ k ε θ k ψ k ε ψ k ,
where γ k , θ k and ψ k are the actual 3-axis angular attitude at moment k, γ k , θ k , and ψ k are the 3-axis angular attitude calculated by the gyro at moment k and ε γ k , ε θ k , and ε ψ k are the 3-axis angular attitude drift error at moment k.
The attitude error caused by the zero drift of gyro is related to the motion complexity of the measured carrier and the attitude error accumulates with time when measuring the moving carrier. The motion complexity is described as the change of the angular attitude at moment k relative to the angular attitude at moment k 1 and the attitude drift error model equation is established as
ε γ k ε θ k ε ψ k = ε γ ( k 1 ) ε θ ( k 1 ) ε ψ ( k 1 ) + δ j · γ k γ k 1 θ k θ k 1 ψ k ψ k 1 + ω γ k ω θ k ω ψ k ,
where ε γ k , ε θ k and ε ψ k are the 3-axis angular attitude drift error at moment k, ε γ ( k 1 ) , ε θ ( k 1 ) and ε ψ ( k 1 ) are the 3-axis angular attitude drift error at moment k 1 and δ j , j = 1 , 2 , 3 is adjustable parameter. Random process noise sequence ω γ k , ω θ k and ω ψ k are determined by the measurement accuracy of the gyro.
The state equation of Kalman filter is established according to the attitude drift error model. The state variable is
x k = ε γ k ε θ k ε ψ k T .
The control variable is
u k = γ k ε γ k θ k ε θ k ψ k ε ψ k T .
In our study, the LPF between the angular attitude calculated by the gyro at moment k and the first few moments of moment k is used as the measurement of attitude drift error caused by gyro drift. The measurement variable of attitude drift error is
z k = a j · γ k θ k ψ k + b j · γ k 1 θ k 1 ψ k 1 + c j · γ k 2 θ k 2 ψ k 2 γ k 3 θ k 3 ψ k 3 , j = 1 , 2 , 3 ,
where a j , b j , c j , j = 1 , 2 , 3 meet the condition a j + b j + c j = 1 1 1 T . γ k , γ k 1 , γ k 2 , γ k 3 , θ k , θ k 1 , θ k 2 , θ k 3 , ψ k , ψ k 1 , ψ k 2 , ψ k 3 are the 3-axis angular attitudes calculated by gyro at moment k , k 1 , k 2 , k 3 , respectively.

3.4. Phase-Lag-Free Low Pass Filter

Phase lag error will be introduced in the above attitude estimation process based on Kalman filter. An additional high-order signal with phase advanced information is introduced to filter the original signal. The phase lag can be compensated for by phase-lag-free LPF.
Define
α k = γ k θ k ψ k T ,
β k = γ ˙ k θ ˙ k ψ ˙ k T ,
where γ k , θ k , ψ k are the 3-axis angular attitude calculated by Kalman filter in Section 3.3 and γ ˙ k , θ ˙ k , ψ ˙ k are the 3-axis angular velocity calculated from gyro in Section 3.1. These two inputs are original signals with noise.
Figure 4 shows the design of this filter. The filter can be described as two sensors which could measure the nearby order information. During data process, α k should be the position signal when β k is the velocity signal. In addition, if α k is the velocity signal, β k should be the acceleration signal.
In this research, the signal α k is low-pass filtered and the phase lag is corrected by β k . The parameter g is cut off frequency of LPF. The tracking characteristic of output signal φ k is strengthened with the increase in g. If β k = d d t α k , the relationship φ k = α k is met.
Define
φ ˙ k 1 = g α k 1 φ k 1 φ ˙ k 2 = β k 1 g φ k 2 .
The output of system in Figure 4 can be expressed as
φ k = γ k θ k ψ k T = φ k 1 + φ k 2 ,
where γ k , θ k , ψ k are the 3-axis angular attitude processed by phase-lag-free LPF. It can be seen that the design is composed of LPF and can greatly suppress the input noise from Equation (25).

4. Simulations and Experiments

In order to verify the performance of the proposed method in this paper, this section conducts simulations and experiments. Simulations are given in Section 4.1 which includes two parts. In the first part, the attitude estimation method is simulated to verify the accuracy of the method. In the second part, the LOS motion control of optoelectronic platform is simulated to verify the practicability of the method. In Section 4.2, the attitude estimation method is tested on the embedded system to verify the accuracy and real-time performance of the method.

4.1. Simulations

In order to verify the effectiveness of the proposed method, two parts of simulations are carried out in this section. In the first part, the simulated original-gyro signal, the signal processed by DFBGA and the signal processed by proposed method are compared with the reference signal to verify the ability to suppress gyro drift and maneuvering interference. The signal with phase lag and the signal processed by proposed method are compared with the reference signal to verify the ability to suppress phase lag. In the second part, the simulated original-gyro signal, the signal processed by DFBGA and the signal processed by proposed method is applied as the feedback signal of the control system and the position response is compared with the position command. The model parameters of the LOS control system of the optoelectronic platform in [25] are used as a reference.

4.1.1. Simulation Setup

(a) Simulation Setup of Signal Processing
A standard sinusoidal signal s i n ( 10 t ) is assumed to be an angular attitude reference signal. The random noise n a t 0.5 , 0.5 is added to the reference signal as the angular attitude information calculated by the accelerometer and a noise with amplitude A a = 1 is introduced every 0.1 s to simulate the maneuvering acceleration interference. The random noise n v t 0.1 , 0.1 is added to the differential of the signal as the angular velocity information calculated by the gyroscope. These two signals are applied in DFBGA and SLAIM. The random noise n t 0.2 , 0.2 is added to the reference signal and Butterworth filter is carried out to introduce phase lag. This signal is applied in Phase-lag-free LPF. The cut-off frequency g of phase-lag-free LPF is 40 Hz. Other parameters are shown in Table 1 and Table 2.
In this simulation, RMSE is applied to compare the signal processed by corresponding algorithm and reference signal.
q R M S E = 1 m k = 1 m y k y ^ k 2 ,
where y k is reference signal, y ^ k is the signal processed by corresponding algorithm and m is number of sampling points.
(b) Simulation Setup of Motion Control
This section constructs a simulated single-axis close-loop control of pitch direction for optoelectronic platform, composing of proportion-differentiation (PD) control and disturbance observer (DOB). According to the physical characteristics, the dynamic electromechanical model of each motor can be simplified as
J n ϑ ¨ + B n ϑ ˙ = u + d ,
where J n is nominal mass, B n is nominal damping, u is control variable, d is system disturbance, ϑ is angular position response which processed by proposed method and ϑ ˙ is angular velocity response which measured by gyro.
The control system diagram is shown in Figure 5. ϑ 1 is the angular position command, ϑ 0 is the angular position response and ϑ ˙ 0 is the angular velocity response. d is system disturbance and d ^ is disturbance estimation. The actual position response is compared with the position command to verify the algorithm.
A standard sinusoidal signal s i n ( 10 t ) is assumed to be the position command. The motor speed response with random noise n v t 0.1 , 0.1 and inertial DC offset which amplitude A v = 1 is used as the simulated original-gyro signal. The motor position response with random noise n a t 0.5 , 0.5 is simulated as the angular attitude calculated by accelerometer. A noise with amplitude A a = 1 is introduced every 0.1 s to simulate the maneuvering acceleration interference. The speed response feedback, the feedback signal proposed by DFBGA and the proposed feedback signal are applied in control system. Table 3 shows the parameters of the control system.
In this simulation, RMSE in Equation (27) is applied to compare the control error between position response and command. Where y k is position command, y ^ k is position response applying corresponding feedback and m is number of sampling points.

4.1.2. Simulation Results of Signal Processing

Figure 6 shows the simulation results of signal process based on Kalman filter. There is obvious noise in the signal processed by DFBGA method due to the simulated maneuvering acceleration. DFBGA and SLAIM method can suppress maneuvering interference effectively. Calculate the RMSE between the signal processed by DFBGA and SLAIM and the reference signal according to Equation (28). Compare with the simulated original-gyro signal, the RMSE of signal processed by DFBGA and SLAIM method decreased 29.08 % .
Figure 7 shows the simulation results of signal process based on phase-lag-free LPF. It can be seen from Figure 6 that phase-lag-free LPF can compensate the phase lag effectively. Calculate the RMSE between the signal processed by proposed method and the reference signal according to Equation (27). Compared with the original signal, the RMSE of signal processed by phase-lag-free LPF decreased 98.81 % .

4.1.3. Simulation Results of Motion Control

Figure 8 shows the simulation results of motion control which applied feedback signals processed by corresponding methods. Calculate the RMSE between position response and position command according to Equation (27). Compared with the response with gyro feedback, the RMSE of the response with feedback signal via DFBGA decreased 25.51 % and the RMSE of the response with feedback signal via proposed method decreased 38.07 % . It can be seen that applying the method proposed in this paper to the feedback loop of motion control has more accurate command response and will not cause system instability.

4.2. Experiments

4.2.1. Experimental Setup

The experimental device is shown in Figure 9. It is an optoelectronic platform composed of 3-axis servo unit motors with encoders, inertial measurement unit (IMU) with 3-axis gyros and accelerometers, and pay load. The velocity acceleration of the motors are measured by gyros and accelerometers of IMU. The measurement bandwidth and accuracy of encoder can be sure to be convinced for control and the system will not be unstable due to its measurement problems. Therefore, it is reliable to take the encoder measurement data as the standard experimental result. The IMU used in this study is WT931. The accuracy of the gyro is 0.05 /s and the accuracy of the accelerometers is 0.1 m/s2. The encoder applied in this study is AS5048 and its resolution is 0 . 05 . The sampling time is 1.5 ms. The cut-off frequency g of phase-lag-free LPF of roll, pitch, and yaw attitude are 150 Hz, 100 Hz, and 150 Hz, respectively. Other parameters are shown in Table 4 and Table 5.
In the experiments, the angular attitude calculated by gyro, the angular attitude calculated by DFBGA, the angular attitude calculated by DFBGA and SLAIM, the angular attitude calculated by the proposed method and the angular attitude calculated by 3-axis encoders are compared. This experiment includes two parts. In part 1, the motion carrier moves only with translational motion in the horizontal direction and without 3-axis rotation motion. In part 2, the translational motion in horizontal direction and 3-axis rotation exist in the motion of moving carrier at the same time. The horizontal acceleration is accompanied by slight jitter to simulate the maneuvering motion of UAV. The amplitude of jitter is about 1 cm and the frequency is about 2 to 3 times per second. Due to the limitation of the number of data acquisition software channels, the attitude information of roll, pitch and yaw directions are output, respectively.
The output of the three-axis encoder is used as the reference of angular attitude through coordinate transformation. The coordinate transformation from body coordinate system to geographical coordinate system can be decomposed into three basic rotations around Z-axis, X-axis, and Y-axis, respectively, and each basic rotation corresponds to a transformation matrix. The transformation matrix corresponding to rotation around Z-axis, X-axis and Y-axis are shown in Equation (29), respectively.
A z , ψ = cos ψ sin ψ 0 sin ψ cos ψ 0 0 0 1 , A x , γ = 1 0 0 0 cos γ sin γ 0 sin γ cos γ , A y , θ = cos θ 0 sin θ 0 1 0 sin θ 0 cos θ .
The output data of the motor encoders rotating around the ZXY-axis are defined as ϕ 1 , ϕ 2 , ϕ 3 . According to the mechanical structure of the experimental device, define
a z 1 a z 2 a z 3 T = A z , ψ · 0 0 ϕ 1 T ,
b x 1 b x 2 b x 3 T = A z , ψ · A x , γ · A y , 60 · ϕ 2 0 0 T ,
c y 1 c y 2 c y 3 T = A z , ψ · A x , γ · A y , 60 · A y , θ · 0 ϕ 3 0 T .
The 3-axis angular attitude in the geographic coordinate system is
γ θ ψ T = a 1 + b 1 + c 1 a 2 + b 2 + c 2 a 3 + b 3 + c 3 T .
In this study, RMSE calculated by Equation (27) is applied to compare the accuracy of signal processing algorithms. Where y k is reference angular attitude calculated by encoder, y ^ k is angular attitude calculated by corresponding algorithm and m is number of sampling points.

4.2.2. Experiment Results

Experiment results include two parts. The first part is static experiment which mainly shows the influence of gyro drift and maneuvering acceleration interference on attitude estimation. The second part is dynamic experiment which mainly shows the advantages of the proposed method in gyro drift and maneuvering acceleration interference restraint and phase compensation. In the experiment, the motion carrier switched between moving state and stationary state and the 3-axis angular attitude are tested for 5 min. In order to show the results clearly and limited by page length, the data were collected for 10 to 15 s.
In the static experiment, the STD of the corresponding output of accelerometer is shown in Figure 10a and the angular attitude comparison in roll direction is shown in Figure 10c. The STD of the corresponding output of accelerometer is shown in Figure 10b and the angular attitude comparison in pitch direction is shown in Figure 10d.
It can be seen from the partial enlarged detail of Figure 10a,b that when the maneuvering acceleration exists, the STD of the accelerometer output data changes greatly and fast. As can be seen from the partial enlarged detail of Figure 10c,d, a cumulative error exists in the angular calculated by the gyro due to the influence of zero drift. The roll and pitch angular attitude drift error reaches 1.649 and 0.544 in 9 s, respectively. Due to the adverse effect of maneuvering acceleration on the output signal of accelerometer, there is an obvious error in the angular attitude calculated by DFBGA. The maximum error value of roll and pitch angular attitude reaches 54.53 and 19.31 , respectively. The signal with such error will seriously affect the performance of the control system. Consequently, it is necessary to adopt the attitude measurement algorithm to suppress maneuvering acceleration.
In dynamic experiment, the STD of the corresponding output of accelerometer is shown in Figure 11 and the angular attitude comparison in roll direction is shown in Figure 12. The STD of the corresponding output of accelerometer is shown in Figure 13 and the angular attitude comparison in pitch direction is shown in Figure 14. The angular attitude comparison in yaw direction is shown in Figure 15.
The angular attitude calculated by DFBGA and SLAIM has the ability to suppress gyro drift and maneuvering acceleration disturbance and there is no obvious noise. However, phase lag error will be introduced in the attitude estimation process based on Kalman filter. The angular attitude calculated by proposed method can restrain the phase lag and smooth the waveform. The proposed method is robust because it can accurately calculate the angular attitude in the presence of gyro drift noise and maneuvering acceleration disturbance.
Calculate the RMSE between the 3-axis angular attitude calculated by gyro, DFBGA, DFBGA, and SLAIM, the proposed method and the 3-axis angular attitude calculated by encoder according to Equation (28). Compared with the angular attitude calculated by gyro, the RMSE of the angular attitude calculated by DFBGA and SLAIM in roll, pitch, and yaw attitude decreased 26.84 % , 33.53 % , and 24.23 % , respectively. The RMSE of the angular attitude calculated by the proposed method in roll, pitch, and yaw attitude decreased 44.23 % , 49.91 % , and 46.21 % , respectively. Compared with the angular attitude calculated by DFBGA, the RMSE of the angular attitude calculated by DFBGA and SLAIM in roll, pitch attitude decreased 37.69 % and 28.53 % , respectively. The RMSE of the angular attitude calculated by the proposed method in roll and pitch attitude decreased 52.50 % and 86.84 % , respectively.
Table 6 shows the comparison of time required for data processing once. The proposed method improves the accuracy of sensor data processing at the expense of little processing time. The method proposed in this paper is superior to the traditional processing method in measurement accuracy. Under the gyro drift and maneuver interference, the proposed method can accurately estimate 3-axis angular attitude without phase lag. This high-quality signal can effectively improve the performance of the control system.

5. Conclusions

In order to improve the attitude measurement accuracy of aerospace optoelectronic platform, an attitude estimation algorithm is introduced in this paper. An adaptive threshold criterion is designed to judge whether the influence of maneuvering acceleration can be ignored. It has good flexibility and versatility because the threshold changes with the sliding of the window. DFBGA and SLAIM are applied in order to compensate for gyro drift error and maneuvering acceleration interference. A phase-lag-free LPF makes use of the phase-lead information in the higher order signal measured by gyro to revise the phase lag introduced by the attitude estimation process based on Kalman filter. The proposed method can accurately calculate the angular attitude in the presence of gyro drift and maneuvering acceleration disturbance. In addition, the phase lag can be compensated and is suitable for attitude estimation of feedback loop in high precision control system. In the simulation and experiment of signal processing, the accuracy and real-time performance of the proposed method are verified by comparing with the reference signal and the attitude measured by encoders. In the simulation of motion control, the position response tracks the position command well. The filters in proposed method does not cause the instability of the control system.
This study improves the performance of LOS motion control system of optoelectronic platform from the perspective of sensor signal processing. The algorithm proposed in this paper does not need to change the mechanical structure design and hardware circuit design of the optoelectronic platform in practical application. This method can be applied to various optoelectronic platforms without increasing the migration cost and has strong practicability. It has the advantages of low cost and strong flexibility. In the future work, the attitude angle calculated in this study will be used as the feedback signal to complete the closed-loop of the control system, which can verify the effectiveness of the proposed method intuitively.

Author Contributions

Conceptualization, D.T. and Y.K.; validation, Y.K.; resources, D.T.; data curation, Y.K.; writing—original draft preparation, Y.K.; writing—review and editing, Y.W.; supervision, D.T.; funding acquisition, D.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Key Research Program of Frontier Sciences, CAS, grant number ZDBS-LY-JSC044, in part by the National Science Foundation of China, grant number T2122001, in part by the Changchun Science and Technology Development Plan Project, grant number 21SH03, in part by the Innovation Team and Talents Cultivation Program of National Administration of Traditional Chinese Medicine, grant number ZYYCXTD-D-202001.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding authors.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Ding, M.; Sun, Z.; Wei, L. Infrared Target Detection and Recognition Method in optoelectronic System. J. Aerosp. Inf. Syst. 2019, 16, 94–106. [Google Scholar]
  2. Musunuri, Y.R.; Kwon, O.-S. Haze Removal Based on Refined Transmission Map for Aerial Image Matching. Appl. Sci. 2021, 11, 6917. [Google Scholar] [CrossRef]
  3. Ozaki, T.; Ohta, N.; Jimbo, T. A Wireless Radio Frequency-powered Insect-scale Flapping-wing Aerial Vehicle. Nat. Electron. 2021, 4, 845–852. [Google Scholar] [CrossRef]
  4. Sattistini, S.; Cappelletti, C.; Graziani, F. Results of the Attitude Reconstruction For the UniSat-6 Microsatellite Using In-orbit Data. Acta Astronaut. 2016, 127, 87–94. [Google Scholar] [CrossRef]
  5. Liao, C. Design and Realization of 3D Printed Fiber-tip Microcantilever Probes Applied to Hydrogen Sensing. Light. Adv. Manuf. 2022, 3, 1–11. [Google Scholar] [CrossRef]
  6. Sands, T.; Kim, J.J.; Agrawal, B.N. Improved Hamiltonian Adaptive Control of spacecraft. In Proceedings of the 2009 IEEE Aerospace Conference, Big Sky, MT, USA, 7–14 March 2009. [Google Scholar]
  7. Chen, T.; Yang, G.; Cai, Q.; Wen, Z.; Zhang, W. A Novel Calibration Method for Gyro-Accelerometer Asynchronous Time in Foot-Mounted Pedestrian Navigation System. Sensors 2022, 22, 209. [Google Scholar] [CrossRef]
  8. Benallegue, M.; Benallegue, A.; Chitour, Y. Tilt Estimator for 3D Non-rigid Pendulum Based on a Tri-axial Accelerometer and Gyrometer. In Proceedings of the 2017 IEEE-RAS 17th International Conference on Humanoid Robotics (Humanoids), Birmingham, UK, 15–17 November 2017; pp. 830–835. [Google Scholar]
  9. Ghobadi, M.; Singla, P.; Esfahani, E.T. Robust Attitude Estimation from Uncertain Observations of Inertial Sensors Using Covariance Inflated Multiplicative Extended Kalman Filter. IEEE Trans. Instrum. Meas. 2018, 67, 1708–1718. [Google Scholar] [CrossRef]
  10. Mannay, K.; Ureña, J.; Hernández, Á.; Villadangos, J.M.; Machhout, M.; Aguili, T. Evaluation of Multi-Sensor Fusion Methods for Ultrasonic Indoor Positioning. Appl. Sci. 2021, 11, 6805. [Google Scholar] [CrossRef]
  11. Jiang, Y.; Baoyin, H.; Mao, Y. Robust Extended Kalman Filter with Input Estimation for Maneuver Tracking. Chin. J. Aeronaut. 2018, 31, 1910–1919. [Google Scholar] [CrossRef]
  12. Gong, X.; Chen, S.; Zhang, S. JOM-4S Overhauser Magnetometer and Sensitivity Estimation. Sensors 2021, 21, 7698. [Google Scholar] [CrossRef]
  13. Song, K.; Cong, S.; Deng, K.; Shang, W.; Kong, D.; Shen, H. Design of Adaptive Strong Tracking and Robust Kalman Filter. In Proceedings of the 33rd Chinese Control Conference, Nanjing, China, 28–30 July 2014; pp. 6626–6631. [Google Scholar]
  14. Han, D.; Jean, D.; Zhang, L. Full-dimension Attitude Determination Based on Two-antenna GPS/SINS Integrated Navigation System. In Proceedings of the International Conference on Information Fusion, Xi’an, China, 10–13 July 2017; pp. 1–7. [Google Scholar]
  15. Wang, C.; Bo, Y.; Jiang, C. A New Efficient Filter Model for GPS/SINS Ultra-Tight Integration System. Math. Probl. Eng. 2020, 2020, 9158185. [Google Scholar]
  16. Bauer, D.; Belbachir, A.; Donath, N. Embedded Vehicle Speed Estimation System Using an Asynchronous Temporal Contrast Vision Sensor. Embedded Syst. 2007, 2007, 082174. [Google Scholar] [CrossRef]
  17. Liu, P.; Huang, H. Research on Zero-speed Detector Based on INS/Wheel Speed and Vehicle Gear. J. Phys. Conf. Ser. 2020, 1650, 022106. [Google Scholar] [CrossRef]
  18. Zhao, Y.W. Performance Evaluation of Cubature Kalman filter in a GPS/IMU Tightly-coupled Navigation System. Signal Process. Off. Publ. Eur. Assoc. Signal Process. 2016, 119, 67–79. [Google Scholar] [CrossRef]
  19. He, Y.; Li, L. A Novel Multi-source Vehicle Detection Algorithm Based on Deep Learning. In Proceedings of the 2018 14th IEEE International Conference on Signal Processing (ICSP), Beijing, China, 12–16 August 2018; pp. 979–982. [Google Scholar]
  20. Lohe, M.A. Synchronization Control in Networks with Uniform and Distributed Phase Lag. Automatica 2015, 54, 114–123. [Google Scholar] [CrossRef]
  21. Ang, W.T.; Krichane, M.; Sim, T. Zero Phase Filtering for Active Compensation of Periodic Physiological Motion. In Proceedings of the First IEEE/RAS-EMBS International Conference on Biomedical Robotics and Biomechatronics, Pisa, Italy, 20–22 February 2006; pp. 182–187. [Google Scholar]
  22. Tian, D.; Gao, H.J. Phase-lag-free Low Pass Filter with Higher-order Sensors and Its Application in Motion Control. In Proceedings of the IECON 2016–42nd Annual Conference of the IEEE Industrial Electronics Society, Florence, Italy, 23–26 October 2016; pp. 607–612. [Google Scholar]
  23. Zhuang, Z.; Guo, Z.; Joseph Raj, A.N.; Guo, C. UAV Attitude Estimation Based on the Dual Filtering Methods. Int. J. Intell. Unmanned Syst. 2018, 6, 21–31. [Google Scholar] [CrossRef] [Green Version]
  24. Gan, Z.; Zhang, B.; Han, P. Engineering Analysis of Airborne Optoelectronic Platform Frame Structure. Opt. Precis. Eng. 2008, 16, 2441–2446. [Google Scholar]
  25. Wang, Y.; Tian, D.; Dai, M. Composite Hierarchical Anti-Disturbance Control with Multisensor Fusion for Compact Optoelectronic Platforms. Sensors 2018, 18, 3190. [Google Scholar] [CrossRef] [PubMed] [Green Version]
Figure 1. Coordinate system setting.
Figure 1. Coordinate system setting.
Applsci 12 03693 g001
Figure 2. Attitude estimation algorithm flow chart.
Figure 2. Attitude estimation algorithm flow chart.
Applsci 12 03693 g002
Figure 3. STD of the output of X-axis accelerometer. (a) maneuvering acceleration does not exist. (b) maneuvering acceleration exists.
Figure 3. STD of the output of X-axis accelerometer. (a) maneuvering acceleration does not exist. (b) maneuvering acceleration exists.
Applsci 12 03693 g003
Figure 4. Design diagram of phase-lag-free filter.
Figure 4. Design diagram of phase-lag-free filter.
Applsci 12 03693 g004
Figure 5. Control system diagram.
Figure 5. Control system diagram.
Applsci 12 03693 g005
Figure 6. Simulation results of signal process based on Kalman filter. The first subfigure is the simulated original-gyro signal, the second subfigure is the signal processed by DFBGA, the third subfigure is the signal processed by DGBGA and SLAIM.
Figure 6. Simulation results of signal process based on Kalman filter. The first subfigure is the simulated original-gyro signal, the second subfigure is the signal processed by DFBGA, the third subfigure is the signal processed by DGBGA and SLAIM.
Applsci 12 03693 g006
Figure 7. Simulation results of signal process based on phase-lag-free LPF. The first subfigure is the original signal with phase lag, the second subfigure is the signal processed by phase-lag-free LPF.
Figure 7. Simulation results of signal process based on phase-lag-free LPF. The first subfigure is the original signal with phase lag, the second subfigure is the signal processed by phase-lag-free LPF.
Applsci 12 03693 g007
Figure 8. Application in motion control. The first subfigure is the simulated original-gyro signal feedback, the second subfigure is the feedback signal processed by DFBGA, the third subfigure is the feedback signal processed by proposed method.
Figure 8. Application in motion control. The first subfigure is the simulated original-gyro signal feedback, the second subfigure is the feedback signal processed by DFBGA, the third subfigure is the feedback signal processed by proposed method.
Applsci 12 03693 g008
Figure 9. Experimental device.
Figure 9. Experimental device.
Applsci 12 03693 g009
Figure 10. Comparison of static experimental results: (a) STD of acceleration corresponding to roll attitude. (b) STD of acceleration corresponding to pitch attitude. (c) Roll angular attitude (calculated by gyro, DFBGA, DFBGA and SLAIM, the proposed method, encoder) comparison. (d) Pitch angular attitude (calculated by gyro, DFBGA, DFBGA and SLAIM, the proposed method, encoder) comparison.
Figure 10. Comparison of static experimental results: (a) STD of acceleration corresponding to roll attitude. (b) STD of acceleration corresponding to pitch attitude. (c) Roll angular attitude (calculated by gyro, DFBGA, DFBGA and SLAIM, the proposed method, encoder) comparison. (d) Pitch angular attitude (calculated by gyro, DFBGA, DFBGA and SLAIM, the proposed method, encoder) comparison.
Applsci 12 03693 g010
Figure 11. STD of X and Y axes acceleration corresponding to roll angle.
Figure 11. STD of X and Y axes acceleration corresponding to roll angle.
Applsci 12 03693 g011
Figure 12. Roll angular attitude comparison. The first subfigure is the attitude calculated by gyro, the second subfigure is the attitude processed by DFBGA, the third subfigure is the attitude processed by DFBGA and SLAIM, the fourth subfigure is the attitude processed by proposed method.
Figure 12. Roll angular attitude comparison. The first subfigure is the attitude calculated by gyro, the second subfigure is the attitude processed by DFBGA, the third subfigure is the attitude processed by DFBGA and SLAIM, the fourth subfigure is the attitude processed by proposed method.
Applsci 12 03693 g012
Figure 13. STD of X and Y axes acceleration corresponding to pitch angle.
Figure 13. STD of X and Y axes acceleration corresponding to pitch angle.
Applsci 12 03693 g013
Figure 14. Pitch angular attitude comparison. The first subfigure is the attitude calculated by gyro, the second subfigure is the attitude processed by DFBGA, the third subfigure is the attitude processed by DFBGA and SLAIM, the fourth subfigure is the attitude processed by proposed method.
Figure 14. Pitch angular attitude comparison. The first subfigure is the attitude calculated by gyro, the second subfigure is the attitude processed by DFBGA, the third subfigure is the attitude processed by DFBGA and SLAIM, the fourth subfigure is the attitude processed by proposed method.
Applsci 12 03693 g014
Figure 15. Yaw angular attitude comparison. The first subfigure is the attitude calculated by gyro, the second subfigure is the attitude processed by SLAIM, the third subfigure is the attitude processed by proposed method.
Figure 15. Yaw angular attitude comparison. The first subfigure is the attitude calculated by gyro, the second subfigure is the attitude processed by SLAIM, the third subfigure is the attitude processed by proposed method.
Applsci 12 03693 g015
Table 1. Parameters of data fusion method based on gyro and accelerometer in simulation.
Table 1. Parameters of data fusion method based on gyro and accelerometer in simulation.
ParametersValue
State transition matrix A 0 1
Measurement transition matrix H 0 1 0 T
Process noise Q 0 0.1
Measurement noise R 0 0.000001
Table 2. Parameters of attitude estimation for suppressing maneuvering acceleration interference in simulation.
Table 2. Parameters of attitude estimation for suppressing maneuvering acceleration interference in simulation.
ParametersValue
State transition matrix A 0 1
Measurement transition matrix H 0 1
Process noise Q 0 0.001
Measurement noise R 0 0.001
Adjustable parameter δ j 0.3
Random process noise ω 0.01
Adjustable parameter a j 0.8
Adjustable parameter b j 0.1
Adjustable parameter c j 0.1
Table 3. Parameters of control system in simulation.
Table 3. Parameters of control system in simulation.
ParametersValue
Nominal mass J n (kg · m2)0.0021667
Nominal damping B n (N · s/m)0.15
Proportional gain of PD K p 500
Derivative gain of PD K d 30
DOB cut-off frequency g d o b (Hz)200
Table 4. Parameters of data fusion method based on gyro and accelerometer.
Table 4. Parameters of data fusion method based on gyro and accelerometer.
ParametersRollPitch
State transition matrix A 0 11
Measurement transition matrix H 0 1 0 T 1 0 T
Process noise Q 0   ( d e g ) 2.533 × 10 6 3.1257 × 10 6
Measurement noise R 0   ( d e g ) 2.533 × 10 6 0 0 1.4482 × 10 6 3.1257 × 10 6 0 0 1.9073 × 10 6
Table 5. Parameters of attitude estimation for suppressing maneuvering acceleration interference.
Table 5. Parameters of attitude estimation for suppressing maneuvering acceleration interference.
ParametersRollPitchYaw
State transition matrix A 0 111
Measurement transition matrix H 0 111
Process noise Q 0   ( d e g ) 0.0010.0010.001
Measurement noise R 0   ( d e g ) 0.0010.0010.001
Adjustable parameter δ j 111
Random process noise ω   ( d e g ) 0.050.050.01
Adjustable parameter a j 0.80.80.8
Adjustable parameter b j 0.10.10.1
Adjustable parameter c j 0.10.10.1
Table 6. Comparison of time required for data processing once.
Table 6. Comparison of time required for data processing once.
Common Fusion MethodProposed Method
Roll0.4487 ms0.5189 ms
Pitch0.4346 ms0.5013 ms
YawUnavailable0.223 ms
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Kong, Y.; Tian, D.; Wang, Y. An Adaptive Three-Axis Attitude Estimation Method Based on Multi-Sensor Fusion for Optoelectronic Platform. Appl. Sci. 2022, 12, 3693. https://doi.org/10.3390/app12073693

AMA Style

Kong Y, Tian D, Wang Y. An Adaptive Three-Axis Attitude Estimation Method Based on Multi-Sensor Fusion for Optoelectronic Platform. Applied Sciences. 2022; 12(7):3693. https://doi.org/10.3390/app12073693

Chicago/Turabian Style

Kong, Yawen, Dapeng Tian, and Yutang Wang. 2022. "An Adaptive Three-Axis Attitude Estimation Method Based on Multi-Sensor Fusion for Optoelectronic Platform" Applied Sciences 12, no. 7: 3693. https://doi.org/10.3390/app12073693

APA Style

Kong, Y., Tian, D., & Wang, Y. (2022). An Adaptive Three-Axis Attitude Estimation Method Based on Multi-Sensor Fusion for Optoelectronic Platform. Applied Sciences, 12(7), 3693. https://doi.org/10.3390/app12073693

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop