A method and apparatus for refining a spacecraft state estimate, such as
an attitude estimate or an angular velocity estimate, is disclosed. The
method computes a plurality equations using residuals describing the
difference between observed star positions and predicted positions based
on inertial measurements, and solves those equations to generate refined
estimates of the spacecraft state estimates.