Considering the problems such as gyro error accumulating with time and GPS poor reliability in dynamic environment, the attitude-measuring and positioning system based on GPS/electronic compass was proposed and designed. C8051F021 single chip machine (SCM) was used as the central processor, HMR3300 digital electronic compass and iTrax02-03 GPS receiver to provide position and attitude information. The navigation information can not only be displayed by LCM1602 LCD module, but also can be sent through RS232 serial port to the host computer in digital and graphic ways. The results of practical sports car experiment show that the system can correctly and reliably complete the attitude and position measurement of movement vector in real-time, it has important value for many practical applications.