A Least Squares Estimate of Satellite Attitude