Next Article in Journal
Crack Monitoring of Operational Wind Turbine Foundations
Next Article in Special Issue
Research and Development of Electrostatic Accelerometers for Space Science Missions at HUST
Previous Article in Journal
Estimating Hourly Concentrations of PM2.5 across a Metropolitan Area Using Low-Cost Particle Monitors
Previous Article in Special Issue
Characteristics of Marine Gravity Anomaly Reference Maps and Accuracy Analysis of Gravity Matching-Aided Navigation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Extended Kalman Filter-Based Attitude Tracking Algorithm for Star Sensors

School of Instrument Science and Opto-electronics Engineering, Beijing University of Aeronautics and Astronautics, Beijing 100191, China
*
Author to whom correspondence should be addressed.
Sensors 2017, 17(8), 1921; https://doi.org/10.3390/s17081921
Submission received: 15 June 2017 / Revised: 15 August 2017 / Accepted: 16 August 2017 / Published: 21 August 2017
(This article belongs to the Special Issue Inertial Sensors for Positioning and Navigation)

Abstract

:
Efficiency and reliability are key issues when a star sensor operates in tracking mode. In the case of high attitude dynamics, the performance of existing attitude tracking algorithms degenerates rapidly. In this paper an extended Kalman filtering-based attitude tracking algorithm is presented. The star sensor is modeled as a nonlinear stochastic system with the state estimate providing the three degree-of-freedom attitude quaternion and angular velocity. The star positions in the star image are predicted and measured to estimate the optimal attitude. Furthermore, all the cataloged stars observed in the sensor field-of-view according the predicted image motion are accessed using a catalog partition table to speed up the tracking, called star mapping. Software simulation and night-sky experiment are performed to validate the efficiency and reliability of the proposed method.

1. Introduction

Star sensors are widely used for attitude determination in both orbiting and interplanetary spacecraft [1]. A star sensor typically operates in two modes: initial acquisition and tracking mode. The difference between them is whether the approximate attitude is known. In initial acquisition without a-priori attitude input, stars inside the whole field of view (FOV) are acquired and mapped to the matching stars in the sensor’s star catalog by a search over the whole celestial sphere. The lost-in-space algorithms are well summarized by Benjamin [2]. In the case sufficient stars have been identified, the star sensor starts the calculation of attitude and goes into tracking mode. In contrast to initial acquisition mode, the sensor performs an attitude tracking and not a star tracking in tracking mode. The current attitude and angular rate is used to determine an expected attitude for the following measurement frame. The sensor uses this expected attitude and onboard star catalog to determine the star track windows to get the stars to be measured and evaluated. This method shortens the time to find the measurement stars and will also to eliminate spurious objects. Tracking mode is more efficient and reliable than initial acquisition mode and is the key operation mode in the lifetime of a star sensor. Attitude Tracking Algorithm directly affects the star sensor’s performance.
At present, a few papers are published for tracking. Li [3] and Jiang [4] used the locations of recognized stars (reference stars) in previous star image as the centers of star track windows. If there is only one observed star in the window, the star is matched with the reference star corresponding to the track window. The radius of the window is in proportion to star sensor’s angular rate. The larger the radius is, the more stars will be observed in one track window. In that case the angular distance between the observed stars and reference stars are used to find the correct match which is complicated and time consuming. In order to speed up the accessing the cataloged stars to identify the stars which enter or exit the sensor FOV, Jiang assigned the cataloged stars into sub-catalog. A partition table including all sub-catalogs is generated which is memory-consuming. Finally, according to stars transformation between inertial-based coordinate system and image plane, the star sensor’s attitude is calculated by QUEST algorithm [5].
Samaan [1] presented two new recursive methods for identifying the stars within the FOV during tracking. The spherical polygon approach is used to sort the star position vector components in x, y and z-axes and then to access the cataloged stars within the FOV. However, it needs angular velocity obtained from the rate gyro and runs slower than jiang’s method [4]. The star neighborhood approach is also used as a second method for star identification. In this method Samaan accesses all cataloged stars in the union of the neighborhoods of stars identified in the previous frame. Like Jiang [4], there comes the need for more memory to save the “star neighbor table”. The attitude estimator adopted in both the proposed algorithms is the “second Estimator of the Optimal Quaternion” [6].
To improve the tracking performance under high dynamic condition, Sun [7] proposed a star tracking method which combines the spot-target-based optical flow analysis and Kalman filter to determine the angular velocity. Effective positions and size of the region of interest for detecting the star spot are provided. However, the algorithm is not suitable for use in orbit as it requires a large amount of calculation. Yu [8] proposed a multiexposure imaging based star tracking method for intensified star trackers which is not applicable to traditional star trackers without intensified image detector due to the low star sensitivity.
Typically, the key issues in tracking mode are determining the star locations within the FOV and an optimal attitude rapidly. A novel attitude tracking method is presented herein. Two techniques are introduced to improve the efficiency and reliability. Firstly, the star sensor is modeled as a nonlinear stochastic system with the state estimate providing the three degree-of-freedom attitude quaternion and angular velocity. The stochastic model uses the extended Kalman filter (EKF) [9] to estimate the attitude for the current and following frame. Secondly, inspired by [1,4], a partition table is established and accessed by spherical polygon approach involving a tradeoff between time versus memory consuming. The new tracking algorithm, presented here, is supported by both the software simulation and the hardware test results.
The remainder of this paper is organized as follows: Section 2 describes the algorithm, including the tracking model, attitude estimation, star catalog partition and initial angular velocity estimation criteria, in detail. Section 3 presents the simulation and experiment results to demonstrate the performance of the proposed algorithm. Finally, some conclusions are drawn.

2. Algorithm Description

In this section, we initially describe the tracking model of the star sensor. We then provide some implementation details, particularly on attitude estimation, star catalog partition and initial angular velocity estimation. Firstly, the EKF algorithm for attitude estimation is designed. Secondly, a novel star catalog partition method is presented to speed up accessing the cataloged stars while having a small memory requirement. Thirdly, the initial angular velocity estimation algorithm is described.

2.1. Tracking Models

After a full-sky star identification is finished to establish an initial attitude and angular velocity, the star sensor enters the tracking mode and recursively performs the following three steps as shown in Figure 1.
From EKF the attitude quaternion and its error covariance is extrapolated to the next frame in EKF. The expected attitude is used to access onboard partition table and star catalog by spherical polygon approach [1] to determine the centers of the star track windows. Meanwhile, the error covariance is used to determine the radius of the track windows.
Get the stars to be measured [10] and evaluated in the track windows of star image. If there is only one star in a reference star’s neighborhood, the star in star image is matched with the star in reference star image. Further, the match can be checked by the inter-star angles between the reference stars and the observed stars.
The coordinates of the matched stars in the observation star image are used as the measurements for EKF to estimate the optimal attitude quaternion of current frame and the angular velocity.

2.2. EKF Based Attitude Estimation

The quaternion q = [ q 0 q 1 q 2 q 3 ] and the angular velocity w = [ w x w y w z ] T are selected as state variables:
s = [ q 0 q 1 q 2 q 3 w x w y w z ] T
The quaternion q representing a rotation is given by [11]
q = [ q 0 q 1 q 2 q 3 ] = [ cos θ 2 ( sin θ 2 ) u ]
where u is the axis of rotation and θ is the angle of rotation about u . The quaternion satisfies a single constraint, which is q = 1 .
A system model, that is, a function ϕ and additive noise σ required to calculate the next state in terms of the present state can be defined as [9]:
s k = ϕ k 1 ( s k 1 ) + σ k 1
σ is assumed to be additive Gaussian noise with zero mean and covariance matrix Q . The state transition function ϕ extrapolates from the state at time interval k 1 to the next state at time interval k . The angular velocities are assumed constant so that w i ( t k ) = w i ( t k 1 ) .
The quaternion propagation in time must be derived. The relation between q and the angular velocity w is known to be [11]:
q ˙ = 1 2 [ 0 w x w y w z ] q 1 2 Ω q 1 2 ( 0 w x w x 0 w y w z w z w y w y w z w z w y 0 w x w x 0 ) q Ω ¯ q
where the symbol ‘ ’ represents quaternion multiplication.
Solving for q when w is constant gives:
q ( t ) = e Ω ¯ ( t t k ) q ( t k )
Since 2 Ω ¯ Ω is an orthogonal and skew-symmetric matrix, its eigenvalues are ± i , ± i [12]. After solving for the closed form of the matrix exponential [13], the solution, when simplified, is:
q ( t ) = [ cos ( Ω ( t t k ) 2 ) I + 2 Ω sin ( Ω ( t t k ) 2 ) Ω ¯ ] q ( t k )
The state transitions for each variable have now been defined. The state transition function is:
ϕ k ( s ) = [ Q tran q ( t k ) w x w y w z ]
where:
Q tran = [ cos ( Ω Δ t 2 ) I + 2 Ω sin ( Ω Δ t 2 ) Ω ¯ ]
Q tran is the 4-by-4 quaternion transition matrix.
The linearized state transition matrix Φ k is computed as the partial derivative of the state transition function with respect to each state variable and evaluated at time t = t k . The time dependency requires that it be computed at each state update. Formally, Φ k is a matrix of dimension 7-by-7:
Φ k = [ Q tran 0 0 0 0 0 0 0 0 0 0 0 0 Q σ 1 0 0 0 1 0 0 0 1 ]
where Q tran is defined above in Equation (7). Q σ is defined as:
Q σ = q w | w = w k = Q tran q ( t k ) w | w = w k = [ Q tran q ( t k ) w x   Q tran q ( t k ) w y   Q tran q ( t k ) w z ] w = w k
Each column may be computed separately as given below. The partial derivative of Q tran q ( t k ) with respect to each w i is:
Q tran q ( t k ) w i = ( w i τ 2 | w | sin ( | w | τ 2 ) I + ( w i τ | w | 2 cos ( | w | τ 2 ) 2 w i | w | 3 sin ( | w | τ 2 ) ) Ω ¯ + 2 | w | sin ( | w | τ 2 ) Ω ¯ w i ) q ( t k )
The partial derivatives of Ω ¯ with respect to w x , w y and w z are:
Ω ¯ w x = 1 2 [ 0 1 1 0 0 0 0 0 0 0 0 0 0 1 1 0 ] , Ω ¯ w y = 1 2 [ 0 0 0 0 1 0 0 1 1 0 0 1 0 0 0 0 ] , Ω ¯ w z = 1 2 [ 0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0 ]
The measurement update equation is [9]:
z k = h k ( q k ) + v k
The measurement noise v is zero mean, Gaussian sequence, with covariance matrix R . Measurement function h k comprises the 3-D rotation and perspective projection functions shown in Figure 2.
The rotation matrix which describes the rotation from celestial reference frame to star sensor reference frame could be defined in terms of a unit quaternion [14]:
R = [ q 0 2 + q 1 2 q 2 2 q 3 2 2 ( q 1 q 2 + q 0 q 3 ) 2 ( q 1 q 3 q 0 q 2 ) 2 ( q 1 q 2 q 0 q 3 ) q 0 2 q 1 2 + q 2 2 q 3 2 2 ( q 2 q 3 + q 0 q 1 ) 2 ( q 1 q 3 + q 0 q 2 ) 2 ( q 2 q 3 q 0 q 1 ) q 0 2 q 1 2 q 2 2 + q 3 2 ]
Let r = ( r x , r y , r z ) be the 3-D coordinate of a unit vector in star sensor reference frame and s = ( s x , s y , s z ) in celestial reference frame:
r = R s
The star locations ( x i , y i ) is then calculated by using:
x i = f r x r z , y i = f r y r z
where f is the camera focal length.
The linearized measurement matrix is the partial derivative of the measurement function with respect to each state variable and evaluated at time t = tk. Formally, Hk is determined as:
H k ( s k ) = h ( s ) s | s = s k = ( ( x 1 s 1 x 1 s 7 y n s 1 y n s 7 ) )
Hk is a 2n-by-7 matrix where n is the number of matched stars. For each matched star, the partial derivative of each coordinate needs to be computed:
x s i = x r x r x s i + x r y r y s i + x r z r z s i y s i = y r x r x s i + y r y r y s i + y r z r z s i
The partial derivatives of the observed stars x and y with respect to each element of r are given below:
x r x = f c r z , x r y = 0 , x r z = r x f c r z 2 y r x = 0 , y r y = f c r z , y r z = r y f c r z 2
The partial derivatives of r with respect to each state variable can be calculated:
r w i = 0 ( i = x , y , z ) , r q i = ( r x q i r y q i r z q i ) = R q i s ( i = 0 , 1 , 2 , 3 )
The partial derivatives of R with respect to each rotational quaternion variable are:
R q 0 = [ 2 q 0 2 q 3 2 q 2 2 q 3 2 q 0 2 q 1 2 q 2 2 q 1 2 q 0 ] , R q 1 = [ 2 q 1 2 q 2 2 q 3 2 q 2 2 q 1 2 q 0 2 q 3 2 q 0 2 q 1 ] R q 2 = [ 2 q 2 2 q 1 2 q 0 2 q 1 2 q 2 2 q 3 2 q 0 2 q 3 2 q 2 ] , R q 3 = [ 2 q 3 2 q 0 2 q 1 2 q 0 2 q 3 2 q 2 2 q 1 2 q 2 2 q 3 ]
Figure 3 below offers a complete picture of the operation of the EKF, The time update projects the current state estimate ahead in time. The measurement update adjusts the projected estimate by an actual measurement at that time. The elements of the EKF are reported in Table 1. The (−) and (+) notations represent the estimate before and after the measurement update, respectively.

2.3. Star Catalog Partition

In order to speed up accessing the cataloged stars to identify the stars which enter or exit the sensor FOV, the celestial sky is divided nearly evenly spaced and completely covering of the sphere. Ideally, the vertices of a regular polyhedron represent evenly spaced points on a sphere. Unfortunately there are a limited number of regular polyhedrons, none of which provide enough points. However, the faces of the polyhedron can be divided into equal polygons with the vertices projected on the sphere to get enough points. Clearly, the minimal nonuniformity will result from the polyhedron with the most and consequently smallest faces. Also, the triangular or square faces would be the simplest to subdivide. The icosahedron, a regular 20-sided polygon whose faces are equilateral triangles, fits both requirements. The partitioning steps are as follows:
The celestial sphere can be divided into twenty equivalent zones by an inscribed icosahedron which is shown in Figure 4a. A pyramid is formed by connecting the center of the celestial sphere with the three vertices on one face of the icosahedron. The pyramids divide the celestial sphere totally into twenty equivalent zones.
Each of twenty regions is divided into several congruent equilateral triangles. As shown in the Figure 4b, each edge is divided into N + 1 segments, and each region is divided into ( N + 1 ) 2 triangles.
When projected on the sphere, the vertices of these smaller triangles become the n = 10 N 2 + 20 N + 12 centers of sub-catalogs that completely cover the sphere, called sub-catalog centers. Each star in the catalog is then assigned to the sub-catalog of closest vertex. The sub-catalog centers number is computed as follows:
n = 12 + 30 × N + 20 × N × ( N 1 ) / 2
The element of the partition table is structured as Table 2, which is arranged in descending order of the x component of the center vector.
If the boresight of a star sensor is roughly known, the subcatalogs around the boresight are to be found quickly, so the guide stars within the FOV can be accessed immediately. The term θ is used to represent the maximum angle between the guide stars and the center of subcatalog. As shown in Figure 5, the necessary condition for stars to enter the FOV is that the angle between the center of the subcatalog and the boresight of the star sensor denoted by d is less than θ + FOV/2.
Let the angle between the boresight and the OXY plane of celestial reference frame be α z , then the lower and upper bound of z component of the center vector are respectively:
z l = sin ( max { α z ( θ + FOV 2 ) , π / 2 } ) z u = sin ( min { α z + ( θ + FOV 2 ) , π / 2 } )
Similarly, let the angle between the boresight and the OYZ plane be α x , and the angle between the boresight and the OZX plane be α y , then the lower and upper bound of x and y component of the center vector are respectively:
x l = sin ( max { α x ( θ + FOV 2 ) , π / 2 } ) x u = sin ( min { α x + ( θ + FOV 2 ) , π / 2 } ) y l = sin ( max { α y ( θ + FOV 2 ) , π / 2 } ) y u = sin ( min { α y + ( θ + FOV 2 ) , π / 2 } )
The necessary condition for stars to enter the FOV can be expressed as Equation (23):
x l < x < x u y l < y < y u z l < z < z u
Hence, the search of subcatalogs around the boresight is accomplished using spherical polygon approach [1] and standard Binary Search technique. The above star catalog partition method greatly reduces searching time, while needs less memory space comparing the methods in ref. [1,4], as shown in Section 3.

2.4. Initial Angular Velocity Estimation

Initial angular velocity is derived from the quaternion difference. Taking account of Equation (5), the quaternion difference is written as:
Δ q ( t ) = [ Δ q 0 ( t ) Δ q 1 ( t ) Δ q 2 ( t ) Δ q 3 ( t ) ] q ( t 2 ) q * ( t 1 ) = [ cos ( Ω ( t 2 t 1 ) 2 ) w x Ω sin ( Ω ( t 2 t 1 ) 2 ) w y Ω sin ( Ω ( t 2 t 1 ) 2 ) w z Ω sin ( Ω ( t 2 t 1 ) 2 ) ]
Taylor series expansion of Δ q 1 ( t ) is:
Δ q 1 ( t ) = w x ( t 2 t 1 ) 2 w x Ω 2 ( t 2 t 1 ) 3 48 + 0 ( Ω 4 ) w x ( t 2 t 1 ) 2
The linear term is used to approximate w x :
w x Δ q 1 ( t ) × 2 t 2 t 1
Similarly, we have:
w y Δ q 2 ( t ) × 2 t 2 t 1 , w z Δ q 3 ( t ) × 2 t 2 t 1
Typically, a star sensor slews within 8°/s [15,16,17,18] and operates with an update rate of 10 Hz inducing some error less than 1 arcsec/s, so this approximation is reasonable.
Equation (25) can be expanded as:
w = 2 t k + 1 t k [ q 1 ( k + 1 ) q 2 ( k + 1 ) q 3 ( k + 1 ) q 0 ( k + 1 ) q 3 ( k + 1 ) q 2 ( k + 1 ) q 3 ( k + 1 ) q 0 ( k + 1 ) q 1 ( k + 1 ) q 2 ( k + 1 ) q 1 ( k + 1 ) q 0 ( k + 1 ) ] [ q 0 ( k ) q 1 ( k ) q 2 ( k ) q 3 ( k ) ] = 2 t k + 1 t k [ q 1 ( k ) q 2 ( k ) q 3 ( k ) q 0 ( k ) q 3 ( k ) q 2 ( k ) q 3 ( k ) q 0 ( k ) q 1 ( k ) q 2 ( k ) q 1 ( k ) q 0 ( k ) ] [ q 0 ( k + 1 ) q 1 ( k + 1 ) q 2 ( k + 1 ) q 3 ( k + 1 ) ]

2.5. Track Window Radius Determination

In the tracking mode, the stars are measured and evaluated in the star image tracking windows. If there is only one observed star in a window, the star is matched with the reference star corresponding to the track window. The larger the radius, the greater the probability that the window contains false stars due to hot spots, space radiation, stray light, etc. In order to improve tracking reliability, the tracking window radius should be as small as possible. The radius of the window is determined by the accuracy of the predicted attitude. It is possible to estimate the average star prediction accuracy, E boresight , by Equation (27):
E prediction = E boresight × N pixel × N star F O V
where E boresight is the predicted boresight accuracy obtained from the EKF error covariance extrapolation, N pixel is the number of pixels across the focal plane, and N star is the number of stars detected on the camera image.
In order to improve the location accuracy of the star, the spot size of the star image is enlarged to a few pixels ranging from 3 to 5. Hence, the tracking window radius could be determined by Equation (28):
R track = 5 × E prediction + 5

3. Simulation and Experiment

Several simulations and night sky tests were performed to evaluate the tracking algorithm presented in this paper. The simulations were implemented in MATLAB in the Microsoft Windows environment on a Core II 2.8 GHz PC.

3.1. Simulation

The star sensor configuration used for the simulations reported in this paper uses a 14.5 degrees circular FOV and 44.27 mm focal distance with a focal plane consisting of 2048 × 2048 pixels. A guide star catalog is made of 4338 stars below magnitude 6, based on the Smithsonian Astrophysical Observatory (SAO) J2000 star catalogue. From the discussion below parameter N in the star catalog partition method is 4, so the number of sub-catalogs divided is 252.
Simulation has been performed to evaluate the performance of the attitude tracking method under a variety of conditions. The results are obtained by varying initial conditions to characterize errors, convergence, and stability in the attitude quaternion estimate. Root mean square errors are presented.
Initial conditions requiring specification include the initial attitude and the error covariance matrix which are obtained from the iterative identification algorithm [19] and the QUEST algorithm [5]. Process noise given by the covariance matrix Q and measurement noise given by the covariance matrix R is also specified initially, remaining constant throughout. Table 3 gives the initial states for the simulation, as well as the assumed initial error covariance diagonal terms and the process noise covariance diagonal terms.
Actual initial attitude quaternion is (0.54435, 0.15051, −0.07010, 0.82226), and true angular rate is (−0.03, 0.04, −0.02) rad/s. The angular velocity is assumed to be constant in the tracking models. Taking into account the actual conditions, the fluctuation in angular velocity is assumed to be 0.001 rad per second. Hence, the process noise covariance diagonal terms are {1 × 109, 1 × 109, 1 × 109, 1 × 109, 1 × 10−6, 1 × 10−6, 1 × 10−6}, while the off-diagonal terms are zero. The star measurement accuracy is determined by the star signal-to-noise ratio (SNR). The higher the SNR is, the more accuracy a star sensor can achieve. The measurement noise is a Gaussian with a standard deviation ranging from 0.04 to 0.18 pixel [18]. Since the noise for the points is independent with respect to x and y as well as each other, the measurement error covariance matrix is a straightforward diagonal matrix whose diagonal elements are the noise variances while the off-diagonal terms are zero. The simulated sample interval is 0.1 s.
Figure 6 and Figure 7 show the results of a sample run where the true states are shown along with the estimated values. The simulation was run for a time of 250 s with a measurement interval of 0.1 s. The tracking is always successful.
Figure 8 gives the attitude estimation errors over the same period of time from the same sample data represented in Euler angles around the x-, y- and z-axis, whose standard deviations are 0.5, 0.5, and 5.7 arc seconds respectively. Figure 9 gives the estimation errors for angular velocity about the x-, y- and z-axis whose standard deviations are 2.6 × 105, 2.3 × 105, 1.3 × 104 rad/s respectively. The accuracy along the boresight of the star sensor (z-axis) is less than the accuracy cross the boresight (x- and y-axis), which is an inherent characteristic of a star sensor. The ratio of the uncertainty along the boresight to the uncertainty cross the boresight spans from 7 to 90 [20]. As can be seen, the estimates track the state variables reasonably well.
Figure 10 shows the maximum prediction error of the star locations in each tracking cycle. It is noted that the initial angular velocity estimations are inaccurate so that the prediction errors in the first frame are larger which are 2.27, 1.45 pixels respectively about x- and y-coordinate. The prediction errors in the next frame are less than 0.2 pixel.
The smaller the error is, the smaller the size of track windows is, and the more robust the tracking is. As the star location prediction error is relatively small, as shown in Figure 10, the radius of the track windows is set to 16 pixels ensuring a unique match and not updated according to the EKF error covariance. The above results are for a single representative run and are not necessarily typical. A further measure of performance is the error over a large number of trials. Using the same initial conditions given above, a series of tests were performed to experimentally measure the error. Figure 11 and Figure 12 show the calculated root mean square (RMS) error over 100 sample runs. The square root of the corresponding mean diagonal element from the calculated covariance error matrix is also shown in each figure. In the nonlinear EKF, the covariance matrix depends on the measurements and does not necessarily represent the actual error covariance [21]. In these tests, the covariance matrix values correspond closely to the actual error values for the attitude estimation while minor differences are present for the angular velocity estimation.

3.2. Night Sky Experiments

The night sky tests have been performed at the Xinglong Astronomical Observatory of the Chinese Academy of Sciences. The star sensor was placed on a rotating table with vertical axis as shown in Figure 13. The parameters of the star sensor are listed in Table 4.
Limited by the sensitivity of the image sensor, the angular rate is set to 2 degrees per second around y-axis of the star sensor. The estimated quaternion is plotted in Figure 14.
In order to assess the 3-axis attitude measurement accuracy we create a reference quaternion (qr) which represents as good as possible the trajectory track under investigation. For that purpose the four elements of the measured quaternions were fitted over their time stamp to a 5th degree polynomial. The difference between the reference quaternion which is smooth due to 5th order polynomial fitting and the measured quaternion both at the same time stamp represents the attitude error which can be expressed as Euler angle rotation around x-, y-, z-axis as shown in Figure 15. The standard deviations are 5.3, 9.8, and 50.8 arc seconds respectively, which are larger than simulation errors due to the larger star position error caused by low SNR value, the less star number detected in the field of view caused by low star sensitivity and the more star vector uncertainty caused by atmosphere turbulence. It can be seen that the y-axis error is larger than the x-axis error due to introduction of system error of rotating table. It is shown in Figure 16 that the prediction error of the star locations is less than 3 pixels.
The tracking time in every cycle is shown in Figure 17. The tracking time in every cycle keeps less than 40 milliseconds, so this algorithm is suitable for real-time tracking.

3.3. Comparison and Analysis

The time to predict the frame of the stars at each time step constituted with the time to search the partition table and the time to access the catalog is related with the number of subcatalogs. The larger the subcatalog number is, the longer the time searching the partition table is. However, the average number of the stars in one subcatloag decreases as the subcatalog number increases, and it will take shorter time to access the catalog. To determine the optimum number of subcatalogs, the distribution of the stars on the celestial sphere was assumed to be uniform, and the time to simulate the reference star image was computed against N using a Monte Carlo simulation method. The time is normalization to that accessing all stars in the catalog. The result is shown in Figure 18. For an FOV of Φ20°, the time consumed is 0.08 when N is 11. According to the results, to achieve the shortest consumed time, N is decided to be in the range of 3 to 5.
To compare the speed of Samaan [1] and Jiang [4], the time to simulate the reference star image was computed against FOV by Monte Carlo simulation. The result is show in Figure 19. The time taken by our method is shorter than ref. [1], but longer than ref. [4]. As FOV increases, the gap between ours and [4] is reduced, and that between ours and [1] is enlarged. For an FOV of Φ20°, the time consumed is 0.05, decreased by 70 percent compared to [1] and increased by 50 percent more than [4].
A comparison in consumed memory among these methods is listed below. For an FOV of Φ20° and catalog star number of 5000, our methods needs 5 k bytes, which is a decrease by 83 percent compared to [4] and by 91 percent compared to [1].

4. Conclusions

To improve the performance of star sensor in case of high attitude dynamics, a novel attitude tracking algorithm based on extended Kalman filter is presented. The approach model the star sensor as a nonlinear stochastic system with the state estimate providing the three degree-of-freedom attitude quaternion and angular velocity based on the extended Kalman filter (EKF). From EKF the attitude quaternion and its error covariance are extrapolated to the next frame used to predict the centers and radius of the star track windows. In order to speed up the prediction a star catalogue partition method by an inscribed regular icosahedron is introduced for a fast search of the star catalog while having a small memory requirement. Then the matched stars in the track windows of star image are measured and used as the measurements for EKF to estimate the optimal attitude quaternion of current frame and the angular velocity.
The simulation and night sky experiment results demonstrate that this algorithm provides effective and reliable attitude tracking. In the simulation the EKF always converge, and the covariance matrix values accord with the actual error values for the attitude estimation while minor differences are present for the angular velocity estimation. In addition, it is noted that the accuracy along the boresight of the star sensor (z-axis) is less than the accuracy cross the boresight (x- and y-axis), which is an inherent characteristic of a star sensor. Moreover, it can be seen that the prediction error of the star locations is less than 3 pixels and the tracking time in every cycle keeps less than 40 milliseconds in the night sky experiment. Hence, the algorithm is particularly suitable for use in orbit as it is computationally efficient and has a small memory requirement. Future work can involve on-orbit validation of the attitude tracking algorithm.

Acknowledgments

This work is supported by the National Natural Science Foundation of China (Grant No. 61378052 and No. 61705005).

Author Contributions

Jian Li has designed the system and the measurement model of the Kalman filter, carried out the simulation, experiment, and data analysis. Xinguo Wei has retrieved related literature of the star sensor tracking, and proposed the star catalog partition and search method. Guangjun Zhang has established the star sensor tracking model, and proposed the initial angular velocity estimation method.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Malak, A.; Samaan, D.M.; Junkins, J.L. Recursive Mode Star Identification Algorithms. IEEE Trans. Aerosp. Electron. Syst. 2005, 41, 1–7. [Google Scholar]
  2. Benjamin, B.; Spratling, I.V.; Mortari, D. A Survey on Star Identification Algorithms. Algorithms 2009, 2, 93–107. [Google Scholar]
  3. Li, B.; Zhang, Y.; Li, H.; Wang, C. A star tracking algorithm suitable for star sensor. Proc. SPIE 2007. [Google Scholar] [CrossRef]
  4. Jiang, J.; Zhang, G.J.; Wei, X.; Li, X. Rapid star tracking algorithm for star sensor. IEEE Aerosp. Electron. Syst. Mag. 2009, 24, 23–33. [Google Scholar] [CrossRef]
  5. Shuster, M.D.; Oh, S.D. Three-axis attitude determination from vector observations. J. Guid. Control Dyn. 2012, 4, 70–77. [Google Scholar] [CrossRef]
  6. Mortari, D. Second Estimator of the Optimal Quaternion. J. Guid. Control Dyn. 2000, 23, 885–888. [Google Scholar] [CrossRef]
  7. Yu, W.; Jiang, J.; Zhang, G. Star tracking method based on multiexposure imaging for intensified star trackers. Appl. Opt. 2017, 56, 5961–5971. [Google Scholar] [CrossRef]
  8. Sun, T.; Xing, F.; Wang, X.; Li, J.; Wei, M.; You, Z. Effective star tracking method based on optical flow analysis for star trackers. Appl. Opt. 2016, 55, 10335–10340. [Google Scholar] [CrossRef] [PubMed]
  9. Welch, G.; Bishop, G. An Introduction to the Kalman Filter; University of North Carolina at Chapel Hill: Chapel Hill, NC, USA, July 1995. [Google Scholar]
  10. Liebe, C.C. Accuracy performance of star trackers-a tutorial. IEEE Trans. Aerosp. Electron. Syst. 2002, 38, 587–599. [Google Scholar] [CrossRef]
  11. Markley, F.L. Parameterization of the Attitude, Spacecraft Attitude Determination and Control; D. Reidel Publishing Co.: Dordrecht, The Netherlands, 1978; pp. 410–420. [Google Scholar]
  12. Chou, J.C.K. Quaternion kinematic and dynamic differential equations. IEEE Trans. Robot. Autom. 1992, 8, 53–64. [Google Scholar] [CrossRef]
  13. Kreyszig, E. Advanced Engineering Mathematics; John Wiley and Sons: New York, NY, USA, 1983. [Google Scholar]
  14. Brogan, W.L. Modern Control Theory; Prentice-Hall: Englewood Cliffs, NJ, USA, 1982. [Google Scholar]
  15. Active Pixel Sensor ASTRO APS. Available online: http://www.jena-optronik.de/en/aocs/astro-aps.html?file=tl_files/pdf/Data%20Sheet%20ASTRO%20APS.pdf (accessed on 17 August 2017).
  16. AA-STR APS Based Autonomous Star Tracker. Available online: http://www.leonardocompany.com/documents/63265270/65635102/Copia+di+A_STR_Autonomous_Star_Trackers_LQ_mm07786_.pdf?download_file (accessed on 17 August 2017).
  17. Michaels, D.; Speed, J. New Ball Aerospace star tracker achieves high tracking accuracy for a moving star field. Proc. SPIE 2004, 5430, 43–52. [Google Scholar]
  18. Blarre, L.; Perrimon, N.; Airey, S. New multiple head star sensor (HYDRA) description and development status: A highly autonomous, accurate and very robust system to pave the way for gyro-less very accurate AOCS systems. In Proceedings of the AIAA Guidance, Navigation, and Control Conference and Exhibit, San Francisco, CA, USA, 15–18 August 2005; pp. 1–9. [Google Scholar]
  19. Li, J.; Wei, X.; Zhang, G. Iterative algorithm for autonomous star identification. IEEE Trans. Aerosp. Electron. Syst. 2015, 51, 536–547. [Google Scholar] [CrossRef]
  20. Abreu, R. Stellar attitude determination accuracy with multiple-star-tracking advanced star tracker. Space Guid. Control Track. 1993, 1949, 216–227. [Google Scholar]
  21. Bar-Shalom, Y. Tracking and Data Association; Academic Press Professional, Inc.: Cambridge, MA, USA, 1987. [Google Scholar]
Figure 1. Tracking model of a star sensor.
Figure 1. Tracking model of a star sensor.
Sensors 17 01921 g001
Figure 2. Measurement model of EKF.
Figure 2. Measurement model of EKF.
Sensors 17 01921 g002
Figure 3. Operation of the EKF.
Figure 3. Operation of the EKF.
Sensors 17 01921 g003
Figure 4. Star catalog partition model. (a) The celestial sphere is divided into twenty equivalent zones by an inscribed icosahedron. (b) Each of twenty regions is divided into several congruent equilateral triangles.
Figure 4. Star catalog partition model. (a) The celestial sphere is divided into twenty equivalent zones by an inscribed icosahedron. (b) Each of twenty regions is divided into several congruent equilateral triangles.
Sensors 17 01921 g004
Figure 5. Necessary condition for stars to enter the FOV. The dark gray area represents sub-catalog, and the light gray area represents FOV.
Figure 5. Necessary condition for stars to enter the FOV. The dark gray area represents sub-catalog, and the light gray area represents FOV.
Sensors 17 01921 g005
Figure 6. Attitude estimation results in simulation.
Figure 6. Attitude estimation results in simulation.
Sensors 17 01921 g006
Figure 7. Angular velocity estimation results in simulation.
Figure 7. Angular velocity estimation results in simulation.
Sensors 17 01921 g007
Figure 8. Attitude estimation errors in simulation.
Figure 8. Attitude estimation errors in simulation.
Sensors 17 01921 g008
Figure 9. Angular velocity estimation errors in simulation.
Figure 9. Angular velocity estimation errors in simulation.
Sensors 17 01921 g009
Figure 10. Maximum prediction error of the star locations in simulation.
Figure 10. Maximum prediction error of the star locations in simulation.
Sensors 17 01921 g010
Figure 11. Root mean square estimation error and square root of the error covariance from the Kalman filter for attitude estimation.
Figure 11. Root mean square estimation error and square root of the error covariance from the Kalman filter for attitude estimation.
Sensors 17 01921 g011
Figure 12. Root mean square estimation error and square root of the error covariance from the Kalman filter for angular velocity estimation.
Figure 12. Root mean square estimation error and square root of the error covariance from the Kalman filter for angular velocity estimation.
Sensors 17 01921 g012
Figure 13. Star sensor used for the night sky experiments. (a) Our own star sensor. (b) Night sky experiments.
Figure 13. Star sensor used for the night sky experiments. (a) Our own star sensor. (b) Night sky experiments.
Sensors 17 01921 g013
Figure 14. Attitude estimation results of a night sky experiment.
Figure 14. Attitude estimation results of a night sky experiment.
Sensors 17 01921 g014
Figure 15. Attitude estimation errors of a night sky experiment.
Figure 15. Attitude estimation errors of a night sky experiment.
Sensors 17 01921 g015
Figure 16. Maximum star location prediction error of a night sky experiment.
Figure 16. Maximum star location prediction error of a night sky experiment.
Sensors 17 01921 g016
Figure 17. Tracking time for a real star sensor.
Figure 17. Tracking time for a real star sensor.
Sensors 17 01921 g017
Figure 18. Time to simulate the reference star image versus N.
Figure 18. Time to simulate the reference star image versus N.
Sensors 17 01921 g018
Figure 19. Time to simulate the reference star image versus FOV.
Figure 19. Time to simulate the reference star image versus FOV.
Sensors 17 01921 g019
Table 1. EKF elements and descriptions.
Table 1. EKF elements and descriptions.
ParameterDescription
ϕ The state transition function
Φ The linear term of the Taylor series expansion of the state transition function
Q The process noise covariance matrix
P The state error covariance matrix
K The extended Kalman filter gain
h The measurement function
H The linear term of the Taylor series expansion of the measurement function
R The measurement noise covariance matrix
Table 2. Structure of the element in the partition table.
Table 2. Structure of the element in the partition table.
Element IndexSubcatalog Center DirectionSubcatalog Start Address in Guide CatalogSubcatalog LengthMaximum Angle between the Guide Stars in the Subcatalog and the Center (Degree)
1(−0.99244712, 0.06449312, 0.10435207)1178.00
2(−0.99244712, −0.06449312, −0.10435207)1896.37
n(0.99244712, −0.06449312, −0.10435207)4324157.46
Table 3. Initial conditions for the simulation.
Table 3. Initial conditions for the simulation.
QuaternionAngular Velocity
True Initial State(0.54680, 0.15199, −0.06565, 0.82073)(−0.03, 0.04, −0.02) rad/s
Initial State Estimate(0.54679, 0.15199, −0.06566, 0.82074)(−0.03115, 0.04046, −0.02086) rad/s
Error Covariance(6 × 10−7, 1 × 10−8, 3 × 10−8, 3 × 10−7)(8 × 10−4, 8 × 10−4, 8 × 10−4) (rad/s)2
Process Noise(1 × 10−9, 1 × 10−9, 1 × 10−9, 1 × 10−9)(1 × 10−6, 1 × 10−6, 1 × 10−6) (rad/s)2
Table 4. Star sensor parameters for the night sky test.
Table 4. Star sensor parameters for the night sky test.
ParameterValue
Initial attitude(0.24383, −0.44028, 0.29841, −0.81095)
Angular velocity(0, 0.03491, 0) rad/s
Focal length44.27 mm
FOV14.5 degrees
Pixel array2048 × 2048

Share and Cite

MDPI and ACS Style

Li, J.; Wei, X.; Zhang, G. An Extended Kalman Filter-Based Attitude Tracking Algorithm for Star Sensors. Sensors 2017, 17, 1921. https://doi.org/10.3390/s17081921

AMA Style

Li J, Wei X, Zhang G. An Extended Kalman Filter-Based Attitude Tracking Algorithm for Star Sensors. Sensors. 2017; 17(8):1921. https://doi.org/10.3390/s17081921

Chicago/Turabian Style

Li, Jian, Xinguo Wei, and Guangjun Zhang. 2017. "An Extended Kalman Filter-Based Attitude Tracking Algorithm for Star Sensors" Sensors 17, no. 8: 1921. https://doi.org/10.3390/s17081921

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