In order to improve the control performance of UAV. For a small UAV, the hardware design scheme of UAV flight control computer with STM32 as the processing core is proposed and implemented. The overall scheme design, specific hardware selection and interface design of the system are given in detail. STM32, as the main controller, expands the parallel A/D, D/A, asynchronous serial communication interface and memory around, enriches the system hardware interface resources, and selects the peripheral expansion circuit with complex programmable logic controller (CPID) to realize interrupt control. This flight control computer has the characteristics of small volume and strong autonomous navigation ability.