The quaternion calculation for spacecraft attitude determination is investigated in this paper,including the transformation between quaternion and the direction cosine matrix,the quaternion differential equation,the selection of time steps for integrating the quaternion equation,and the compensation methods for the noncommutativity error in high dynamic motion.The dual quaternion is also addressed.