Abstract & Overview
Based on the hardware principle and firmware principle of the open source APM flight control board, this paper constructs and studies the flight control system in a modular manner. The article analyzes the architecture of the quad-rotor UAV control system. The hardware part adopts modular unit design and replaces and changes some components. The 32-bit STM32F4 processor chip is mainly used to replace the 8-bit dual processing of APM’s Mega2560 and Mega32u2. The chip is replaced with some sensors, and some external interfaces have been deleted or added; the software part, the underlying driver library source code file, uses the parent-child class to write the source code, realizes the modularization of the source code, and facilitates later software upgrades and maintenance. The system scheme has the advantages of high reliability and high cost performance.