Application of Digital Compass in Flight Control System of UAV

Introduced the application of digital compass HMR3000 in the navigation system of UAV. Firstly judge whether the received data is the start bit or not. If it is the start bit, begin to collect data, read the second bit, and meanwhile conserve the collection data. Whereas continue to judge. The communication single chip collects the data and judges if the data is the terminative sign bit or not. If it is the terminative sign bit, carry on the CRC checkout, process the data and send the data to the appointed position of RAM. The transmission of the flight position data is in one-way. The digital compass sends the data to the communication single chip. The data process by the communication single chip and then write to the register. The main single chip reads the data from the register through I2C.