KFSunAndEarth2:

Path: SpacecraftEstimation/AttitudeEstimation

% A Kalman Filter using the sun vector and the earth vector for GEO. 
   The sun sensor boresight is the positive x body axis. The attitude base is 
   the output of a gyro. The attitude states are small angles.
   See also KFilter.

   The measurements are the Earth angle theta and sun vector uMeas.
--------------------------------------------------------------------------
   Form:
   [p, x] = KFSunAndEarth2( p, x, d, w )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   p          (6,6) Covariance matrix
   x          (6,1) State vector [attitude;gyroBias;attitudeBias]
   d          (1,1) .q          (9,9) Plant noise
                    .r          (4,4) Measurement noise
                    .u          (3,1) Sun vector in the LVLH frame
                    .wO         (1,1) Orbit rate
                    .theta      (2,1) Earth sensor measurements
                    .noSun      (1,1) Cosine of half FOV angle
                    .a          (9,9) The state transition matrix
                    .b          (9,9) The input matrix
                    .uMeas      (3,1) Measured unit sun vector
                    .biasStates (1,1) If no, there are no estimates of biases
   w          (3,1) Gyro rates

   -------
   Outputs
   -------
   p          (9,9) Covariance matrix
   x          (9,1) State vector [attitude;gyroBias;attitudeBias]

--------------------------------------------------------------------------

Children:

Common: Estimation/KFilter

Back to the SpacecraftEstimation Module page