The most important problem of the GPS real-time attitude determination is integer ambiguity resolution .This article discusses a new algorithm for integer ambiguity resolution can be used in real-time attitude determination that uses single-difference smoothed pseudo range measurements. Over the conventional algorithms, it has several advantages. And we investigate the validity and the performance of the new algorithm through simulations.