The traditional complementary filter algorithm which realizes the data fusion of multi sensors and compensates the integration error of the gyroscope has the advantage of easier calculation.But it also has some defects,such as large data fluctuation and calculating error.In this paper,the differentiation element is introduced to solve the problem of data fluctuation.An improved algorithm is proposed with PID controller to weaken data fluctuation.The experimental results showthat the algorithm in this paper has the advantage of less computation and small data fluctuation.It can achieve stable s...