Abstract:The theory of relative positioning and attitude determination using GPS was expounded in detail, then the model of positioning and attitude determination was constructed. The model errors was discussed in detail. An experimenal system was established to validate the algorithms. Finally several aspect of researching formation flying was put forward.