# A Real-Time Structure of Attitude Algorithm for High Dynamic Bodies.

1. IntroductionSpinning bodies are a kind of fight vehicle that has high self-rotating speed, such as guided shells and guided multiple launch rockets, and they are also called the high dynamic bodies. The spinning mode of high self-rotating speed is used to simplify the configuration of control systems and generate stability of the motion and robustness to disturbances [1]. Nevertheless, this mode induces the occurrence of coning motion, which gets worse as the self-rotating speed increases. Researches on aerodynamic design and control system design are made to restrain coning motion and improve flight environment for spinning bodies [2].

In researches on control and navigation of vehicles, attitude algorithm is a key part, and it still has the same position for the high dynamic bodies. The most popular methods to describe the relationship of a body to the reference frame are rotation vector, the direction cosine transformation matrix, Euler angles, and quaternions. Through decades of persistent efforts by researchers, an outstanding two-stage structure of attitude algorithm has been refined and outlined by Savage [3], which consists of attitude matrix update cycle by Jordan [4] and rotation vector update cycle by Bortz [5]. Moreover, an inevitable error named coning error is induced by environment disturbances, and it drifts and diverges in a period of time. So, the drift error indicates the accuracy of attitude algorithm. In addition, the stage of updating the rotation vector has the truncation error for approximation. Up to now, the coning error has attracted many researchers to devote to the development of valid algorithms. Multisubsample optimized algorithms based on bandwidth of gyroscopes are proposed to restrain drifting of coning error, which are also regarded as uncompressed algorithms. It is found that the more the subsamples are chosen, the smaller the drifting rate of coning error is [6-9]. To further improve the accuracy of rotation vectors, compressed and half-compressed algorithms have been presented as well [10, 11]. These algorithms calculate several angular increments at a higher frequency and then compress them as one value in a relative lower frequency. Considering the maneuver situation of flight vehicles, the performance of coning correction of attitude algorithms under pure coning environment is examined to verify the validity [12,13]. A cone algorithm uses a cone frame and cone attitude to describe the coning movement of high dynamic bodies and restrains the coning error by environment disturbance [14]. In fact, the cone frame and cone attitude are defined according to the characteristic of coning motion of high dynamic bodies. Generally speaking, coning motion includes the nutation motion and the precession motion, which causes attitude coupled. There are also some works focusing on limiting coning motion under an allowable level, such as a nutation control system and nutation damping for spin-stabilized satellites [15, 16]. These works are extremely relevant and provide an important contribution to the improvement of attitude algorithms.

However, the drifting error of attitude algorithms still exists for high speed spinners, and attitude computation becomes even more difficult due to the time constraint. The total update time is dependent on the sum of each subsample time, while the subsample time is determined by the processing ability of hardware. Nevertheless, for high dynamic bodies, the value of the rotational speed is another significant parameter to be considered while solving for the attitude. This is because the conventional structure of attitude algorithm with the compressed mode has the real-time problem, and it could not meet the real-time requirement of bodies with self-rotating speed greater than 20r/s [17]. In other words, under the condition of high self-rotating speed, it is hard for the conventional structure with the lower updating frequency to provide attitude to control system and navigation system at each right time. In addition, drifting error can not be restrained validly due to the enlarged update time. This issue also exists in information exchange of spacecraft [18]. Besides, it is necessary to notice that MEMS gyroscopes used for high dynamic bodies have intrinsic poorer alignment and lower measurement accuracy. Therefore, in this paper, a realtime structure of the attitude algorithm is proposed and compared to the conventional structure to improve the realtime capabilities for high dynamic bodies.

2. The Conventional Structure of Attitude Algorithm

The conventional structure of attitude algorithm includes two stages. The first stage is to calculate the rotation vector by using the data from gyroscopes in higher frequency, and the second stage is to update the attitude matrix based on the relationship between rotation vector and attitude matrix. The relationship between rotation vector and angular velocity is shown as follows [5]:

[mathematical expression not reproducible], (1)

where [phi] represents rotation vector and to represents angular velocity. Based on the small angle approximation, (1) can be simplified as

[[??].sub.l] [approximately equal to] [omega] + 1/2 [[phi].sub.l] x [omega] + 1/12 [[phi].sub.l] x ([[phi].sub.l] x [omega]). (2)

It is seen that (2) is a differential equation, and the rotation vector can be obtained by

[mathematical expression not reproducible]. (3)

Nevertheless, the data sampled from gyroscopes is discrete, and it is difficult to calculate the rotation vector through integration of the second and third terms of (2). Thus, the angular velocity from gyroscopes can be integrated to determine the angular increment:

[mathematical expression not reproducible], (4)

where [t.sub.l] = [t.sub.l-1] + T and T represents the update time:

T = N x h, (5)

where N represents the amount of subsamples that determine attitude algorithms and h represents subsample time.

Moreover, if the third term of (2) is omitted, the sequential angular increments can be used to calculate the rotation vector by

[mathematical expression not reproducible], (6)

where [[??].sub.i] represents the coefficient that can be determined by the optimized algorithm under the classical coning environment [3,10]. Figure 1 shows coning motion of high dynamic bodies, [x.sub.c] represents coning axis, [OMEGA] represents the coning frequency, and a represents the half coning angle.

The classical coning environment can be described by [5]

[mathematical expression not reproducible].(7)

where [[omega].sub.x], [[omega].sub.y], and [[omega].sub.z] represent the components of angular velocity.

The second term of (6) can not be eliminated thoroughly by optimization, and it is also regarded as coning error [10]. In general, the performance evaluation of algorithms including the uncompressed and compressed algorithms can be expressed as the drifting error under coning environment. There are several different forms of multisubsample algorithms, but all of them can be summarized as [9,10]

[[phi].sub.e] - [[??].sub.l] - [[phi].sub.l]. (8)

If the subsample time h is fixed, the drifting error is dependent on the update time T and the amount N of subsamples of attitude algorithm. Moreover, the larger the amount N of subsamples is, the smaller the drifting error is. Several drifting errors for different algorithms of conventional structure are provided in Table 1 [12,19, 20].

The attitude matrix can be updated by using the rotation vector, and the relationship of rotation vector and transformation matrix is shown as

[mathematical expression not reproducible], (9)

where [C.sup.b(l-1).sub.b(l)] is a transformation matrix that transforms vectors from the body frame at cycle I into the body frame at cycle I - 1 and [[phi].sub.l] x is cross-product antisymmetric matrix composed of [[phi].sub.l] components. Thus, the attitude matrix can be determined by

[mathematical expression not reproducible], (10)

where e represents the earth frame, b represents the body frame, and [C.sup.e(l).sub.b(l)] is the attitude matrix at updating cycle l.

According to (6) and (10), it is apparent that the calculation accuracy of rotation vector is quite significant. The whole updating process of attitude matrix includes N subsamples, and each subsample provides a set of angular increments.

Moreover, each set of angular increments is calculated each h in Figure 2, and the rotation vector and attitude matrix are updated each N * h.

3. Real-Time Structure of Attitude Algorithm

For the conventional structure of attitude algorithm, several sample points of angular velocity are compressed to one average value by process method to keep the precision of angular velocity, and this average value is related to the subsamples. The amount of subsamples of angular velocity represents the update frequency of attitude matrix. For the low dynamic condition such as low self-rotating speed of bodies or low coning frequency of coning environment, smaller amount of subsamples of attitude algorithm can meet the requirement of accuracy and real-time capability. For high self-rotating speed of bodies or high coning frequency of coning environment, larger amount of subsamples requires processing ability of hardware to guarantee the accuracy. Obviously, it is hard to make trade-off. It can be suggested to maintain the update time to be close to the subsample time of angular velocity and decrease coning error.

In this section, a real-time structure of attitude algorithm is proposed through analyzing the conventional one. The main idea of real-time attitude algorithm is shown briefly in Figure 3, and the angular increment and the attitude matrix can be updated during each processing time. Each attitude matrix is updated based on the previous one, so the more important of the real-time attitude algorithm is to save each element of attitude matrix in advance at each update time. Thus, whatever the amount of subsample is, the update frequency is maintained to be equal to the process frequency of angular velocity.

Considering the extended measuring range of the gyroscopes required during launch phases, MEMS rate gyroscopes are often chosen. The angular velocity sampled by MEMS gyroscopes is composed of real value and random noise signal, so it is necessary to process the original value as a trustworthy value and provide control and navigation system with it. The angular velocity is processed by

[omega]([t.sub.k]) = [[summation].sup.m.sub.j=1][??]([t.sub.j])/h, (11)

where [??]([t.sub.j]) is the original value of angular velocity, h is the processing time, and m is the number of sample points of angular velocity during the processing time. Each angular increment is calculated by

[mathematical expression not reproducible], (12)

where [t.sub.k] = [t.sub.k-1] + h. It is necessary to note that (12) is different to (4) due to the different integral time. According to Figure 3, the update time [T.sub.update] of real-time structure of attitude algorithm is equal to the process time:

[T.sub.update] = h (13)

The rotation vector is calculated by using the sequential angular increments from (12):

[mathematical expression not reproducible]. (14)

The attitude matrix at [t.sub.k] is updated by

[mathematical expression not reproducible], (15)

where [C.sup.e(k).sub.e(k-N)] is an identity matrix, [C.sup.e(k).sub.b(k-N)] represents the attitude matrix at [t.sub.k] - N x h, and [C.sup.b(k-N).sub.b(k)] represents the body matrix from [t.sub.k] to [t.sub.k-N]:

[mathematical expression not reproducible]. (16)

The flow diagram for a Matlab program is shown in Figure 4 to explain the program of real-time structure of attitude algorithm, and the whole update process of attitude matrix has a major loop and N deterministic branches in the program. The symbol i represents the ordinal number of angular velocity. The variable Count is an index and represents the number of subsamples. In fact, when i is less than N, the program starts to make the initial alignment of attitude matrix. Then, the subsequent N-1 attitude matrixes are calculated directly by choosing the appropriate subsamples of attitude algorithm. Moreover, every element of attitude matrix in the minor loop must be saved in real time according to the corresponding Count. Thus, when i is greater than N, the attitude matrix can be updated based on the previous matrix.

The drifting errors for different algorithms of real-time structure are shown in Table 2. From the view of drifting error, the single-subsample and two-subsample algorithms are suitable for the low dynamic condition, but the three-, four-, and five-subsample algorithms are suitable for the high dynamic condition. Compared with Table 1, each corresponding drifting error in Table 2 is much smaller if N is greater than 1. Moreover, the attitude matrix by real-time structure can be updated in each subsample time h other than N-h.

4. Simulation and Analysis

To verify the validity of real-time structure of attitude algorithm, the conventional structure in [10] is chosen to make simulations under different coning conditions in Matlab, and the subsample time is h = 0.1 ms. The amount of subsamples is chosen N = 1,2, 3,4 and 5, respectively, and the optimized coefficients are shown in Table 3.

The update time of attitude matrix is determined by the subsample time, so different algorithms have different update time. The comparison of the update time of conventional structure and real-time structure is shown in Figure 5. It is apparent that the update time of conventional structure is increasing linearly as the amount of subsample increasing, but the update time of real-time attitude structure remains unchanged.

Firstly, self-rotation is considered without coning environment, and the self-rotation speed is assumed to be 1080[degrees]/s, 3600[degrees]/s, 7200[degrees]/s, and 9000[degrees]/s, respectively. The angular increment of roll angle in each update cycle by conventional structure and real-time structure is shown in Tables 4 and 5. As the self-rotation speed is increasing, the angular increment by conventional structure becomes large. However, the angular increment by real-time structure remains unchanged under the same self-rotation speed, and it is 0.9[degrees] under the condition of self-rotation speed 9000[degrees]/s. In fact, the angular increment indicates the attitude error between adjacent sample times. Based on the simulations and analysis, the real-time algorithm has higher accuracy and better real-time capacity than the conventional algorithm.

Then, the coning environment is added, the half coning angle [alpha] = 1[degrees], and the coning frequency [OMEGA] = 360[degrees]/s.

The single-subsample algorithms of conventional structure and real-time structure have the same update time and accuracy, so the comparison is made for other algorithms. The drifting errors by conventional structure and real-time structure under coning environment are shown in Figures 6 and 7. The drifting error is mainly dependent on the amount of subsamples if the subsample time is fixed. With the same subsamples, the drifting error of real-time structure is much smaller than that of conventional structure. This means the real-time structure has higher accuracy than the conventional structure.

5. Conclusion

For high dynamic bodies with high self-rotating speed and coning environment, the conventional structure of attitude algorithm has the real-time problem, and it can not provide attitude to control system and navigation system at each right time. In this paper, by comparing with the conventional structure, a real-time structure of attitude algorithm with two loops is developed to improve real-time capability for high dynamic bodies, and a flow diagram for a Matlab program is provided in detail. Every element of attitude matrix in the minor loop can be saved in real time, and then the next attitude matrix can be updated based on the previous matrix at every subsample time. Thus, the real-time structure avoids lowering updating frequency, though different multisubsample algorithms are used. Through simulation and analysis, the real-time structure of attitude algorithm is better than the conventional structure because of short update time of attitude matrix and small drifting error, and it is more appropriate for high dynamic bodies.

Our future work will focus on the effect of real-time capacity and synchronism of attitude algorithm on the control system of high dynamic bodies.

https://doi.org/ 10.1155/2017/9542423

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Acknowledgments

This study is financially supported by the National Natural Science Foundation of China (no. 61473039) and the Open Research Project of the Beijing Key Laboratory of High Dynamic Navigation Technology (no. HDN2017002).

References

[1] Q. Wu, Q. Jia, J. Shan, and X. Meng, "A novel high precision inertial measurement scheme and its optimization method for high-speed rotating ammunition," Proceedings of the Institution of Mechanical Engineers, Part G: Journal of Aerospace Engineering, vol. 228, no. 13, pp. 2553-2566, 2014.

[2] K. Li, S. Yang, and L. Zhao, "Stability of spinning missiles with an acceleration autopilot," Journal of Guidance, Control, and Dynamics, vol. 35, no. 3, pp. 774-786, 2012.

[3] P. G. Savage, "Strapdown inertial navigation integration algorithm design. Part 1. Attitude algorithms," Journal of Guidance, Control, and Dynamics, vol. 21, no. 1, pp. 19-28, 1998.

[4] J. W. Jordan, "An accurate strapdown direction cosine algorithm," Tech. Rep., 1969.

[5] J. E. Bortz, "A new mathematical formulation for strapdown inertial navigation," IEEE Transactions on Aerospace and Electronic Systems, vol. 7, no. 1, pp. 61-66, 1971.

[6] Y. F. Jiang and Y. P. Lin, "Improved strapdown coning algorithms," IEEE Transactions on Aerospace and Electronic Systems, vol. 28, no. 2, pp. 484-490, 1992.

[7] Y. Ben, F. Sun, W. Gao, and F. Yu, "Generalized method for improved coning algorithms using angular rate," IEEE Transactions on Aerospace and Electronic Systems, vol. 45, no. 4, pp. 1565-1572, 2009.

[8] Z.-T. Li, T.-J. Wu, and L.-H. Ma, "A coning compensation algorithm for SINS in high dynamic motion," Control Engineering and Applied Informatics, vol. 13, no. 3, pp. 32-40, 2011.

[9] C.-Y. Tang and X.-Y. Chen, "A generalized coning correction structure for attitude algorithms," Mathematical Problems in Engineering, vol. 2014, Article ID 614378, 15 pages, 2014.

[10] M. B. Ignagni, "Efficient class of optimized coning compensation algorithms," Journal of Guidance, Control, and Dynamics, vol. 19, no. 2, pp. 424-429, 1996.

[11] C. Tang and X. Chen, "A class of coning algorithms based on a half-compressed structure," Sensors, vol. 14, no. 8, pp. 14289-14301, 2014.

[12] M. Song, W.-Q. Wu, and X.-F. Pan, "Approach to recovering maneuver accuracy in classical coning algorithms," Journal of Guidance, Control, and Dynamics, vol. 36, no. 3, pp. 1872-1880, 2013.

[13] M.-S. Wang, W.-Q. Wu, J.-L. Wang, and X. Pan, "High-order attitude compensation in coning and rotation coexisting environment," IEEE Transactions on Aerospace and Electronic Systems, vol. 51, no. 2, pp. 1178-1190, 2015.

[14] S.-B. Zhang, X.-C. Li, and Z. Su, "Cone algorithm of spinning vehicles under dynamic coning environment," International Journal of Aerospace Engineering, vol. 2015, Article ID 904913, 11 pages, 2015.

[15] B. Johnson George Jr, Nutation correction system for spin-stabilized satellite, U.S. Patent No. 3, 1972.

[16] Bainum P. M, Fuechsel P. G, and Mackison D. L, "Motion and stability of a dual-spin satellite with nutation damping," Journal of Spacecraft and Rockets, vol. 7, no. 6, pp. 690-696, 1970.

[17] D. F. Long, J. Lin, X. M. Zhang, and J. Li, "Orientation estimation algorithm applied to high-spin projectiles," Measurement Science and Technology, vol. 25, no. 6, Article ID 065001, 2014.

[18] Y. Guo, P. Lu, and X. Liu, "Attitude coordination for spacecraft formation with multiple communication delays," Chinese Journal of Aeronautics, vol. 28, no. 2, pp. 527-534, 2015.

[19] J. G. Lee, Y. J. Yoon, J. G. Mark, and D. A. Tazartes, "Extension of strapdown attitude algorithm for high-frequency base motion," Journal of Guidance, Control, and Dynamics, vol. 13, no. 4, pp. 738-743, 1990.

[20] J.-P. Wang and Z.-H. Jin, "Applicability of parameter analysis method for optimizing rotation vector attitude algorithms," Journal of Chinese Inertial Technology, vol. 18, no. 1, pp. 22-27, 2010.

Xingcheng Li (1,2) and Shuangbiao Zhang (3)

(1) School of Aerospace Engineering, Beijing Institute of Technology, Beijing 100081, China

(2) Key Laboratory of Dynamics and Control of Flight Vehicle, Ministry of Education, Beijing 100081, China

(3) Beijing Key Laboratory of High Dynamic Navigation Technology, Beijing Information Science & Technology University, Beijing 100101, China

Correspondence should be addressed to Xingcheng Li; xingchli@bit.edu.cn

Received 8 October 2016; Revised 11 April 2017; Accepted 14 May 2017; Published 18 June 2017

Academic Editor: William MacKunis

Caption: FIGURE 1: Coning motion of high dynamic bodies.

Caption: FIGURE 2: Conventional updating process.

Caption: FIGURE 3: Frame of real-time attitude algorithm.

Caption: FIGURE 4: Flow diagram for a Matlab program.

Caption: FIGURE 5: Update time of conventional structure and real-time structure.

Caption: FIGURE 6: Drifting errors by conventional structure.

Caption: FIGURE 7: Drifting errors by real-time structure.

TABLE 1: Drifting errors for different algorithms of conventional structure. Subsample N 1 2 Drifting error [a.sup.2][OMEGA]/12 [a.sup.2][OMEGA]/60 [[phi].sub.3] [([OMEGA]h).sup.2] [([OMEGA]h).sup.4] Subsample N 3 4 Drifting error [a.sup.2][OMEGA]/280 [a.sup.2][OMEGA]/1260 [[phi].sub.3] [([OMEGA]h).sup.6] [([OMEGA]h).sup.8] Subsample N 5 Drifting error [a.sup.2][OMEGA]/5544 [[phi].sub.3] [([OMEGA]h).sup.10] TABLE 2: Drifting errors for different algorithms of real-time structure. Subsample N 1 2 Drifting error [a.sup.2][OMEGA]/12 [a.sup.2][OMEGA]/960 [[phi].sub.3] [([OMEGA]h).sup.2] [([OMEGA]h).sup.4] Subsample N 3 4 Drifting error [a.sup.2][OMEGA]/204120 [a.sup.2][OMEGA]/82575360 [[phi].sub.3] [([OMEGA]h).sup.6] [([OMEGA]h).sup.8] Subsample N 5 Drifting error [a.sup.2][OMEGA]/54140625000 [[phi].sub.3] [([OMEGA]h).sup.10] TABLE 3: Optimized coefficients of different algorithms. N [[??].sub.1] [[??].sub.2] [[??].sub.3] [[??].sub.4] 1 0 0 0 0 2 2/3 0 0 0 3 27/20 9/20 0 0 4 214/105 92/105 54/105 0 5 1375/504 325/252 25/24 125/252 TABLE 4: Angular increment by conventional structure. N 1 2 3 4 5 1080[degrees]/s 0.108 0.216 0.324 0.432 0.54 3600[degrees]/s 0.216 0.432 0.648 0.864 1.08 7200[degrees]/s 0.432 0.864 1.296 1.728 2.16 9000[degrees]/s 0.9 1.8 2.7 3.6 4.5 TABLE 5: Angular increment by real-time structure. N 1 2 3 4 5 1080[degrees]/s 0.108 0.108 0.108 0.108 0.108 3600[degrees]/s 0.216 0.216 0.216 0.216 0.216 7200[degrees]/s 0.432 0.432 0.432 0.432 0.432 9000[degrees]/s 0.9 0.9 0.9 0.9 0.9

Printer friendly Cite/link Email Feedback | |

Title Annotation: | Research Article |
---|---|

Author: | Li, Xingcheng; Zhang, Shuangbiao |

Publication: | Journal of Control Science and Engineering |

Date: | Jan 1, 2017 |

Words: | 3737 |

Previous Article: | A Bayesian Approach to Control Loop Performance Diagnosis Incorporating Background Knowledge of Response Information. |

Next Article: | Thermal Model Parameter Identification of a Lithium Battery. |

Topics: |