STEMM Institute Press
Science, Technology, Engineering, Management and Medicine
Simulink-Based Hardware-in-the-Loop Simulation System for UAV Flight Control System
DOI: https://doi.org/10.62517/jbdc.202501218
Author(s)
Shasha Wang1, Helong Wu2,*
Affiliation(s)
1School of Information Technology & Engineering, Guangzhou College of Commerce, Guangzhou, China 2China Electronic Product Reliability and Environment Testing Research Institute Guangzhou, China * Corresponding Author
Abstract
In the development of flight control systems, hardware-in-the-loop simulation(HIL)simulation is essential for algorithm verification and system validation. By thoroughly and effectively validating flight control algorithms during the ground phase, potential software and hardware issues can be resolved early, significantly reducing losses incurred during actual flight tests. In the event of a crash during real-world flight testing, not only could it cause substantial harm to human life and property, but it would also drastically increase aircraft debugging costs. Currently, HIL are becoming increasingly vital in the development of low-cost, consumer-grade UAV flight control systems, as they greatly enhance development efficiency and debugging safety. This paper proposes a Simulink-based method for constructing an HIL simulation system for UAV flight control. First, the UAV dynamic model is established in the Simulink environment, including the power unit model, control effectiveness model, rigid-body dynamics model, and rigid-body kinematics model. Subsequently, virtual sensor models - such as gyroscopes, accelerometers, magnetometers, and barometers—are developed. Serial communication protocols are employed to facilitate real-time data exchange between the flight control system and the UAV dynamic model, forming a closed-loop HIL simulation. Finally, HIL simulation tests are conducted to evaluate the flight performance of the flight control system. Experimental results demonstrate that the proposed HIL simulation system effectively validates flight control performance, providing robust support for flight control development and testing.
Keywords
UAV Body Model; Flight Control; HIL; Virtual Sensor.
References
[1] Sarcinelli-Filho, Mario, Brandao, et al. A Hardware-in-the-Loop Platform for Rotary-Wing Unmanned Aerial Vehicles. Journal of Intelligent & Robotic Systems: Theory & Application, 2016, 84(1/4):725-743. [2] Nguyen K D, Ha C. Development of Hardware-in-the-Loop Simulation Based on Gazebo and Pixhawk for Unmanned Aerial Vehicles. International Journal of Aeronautical and Space Sciences 19, 2018: 238–249. [3] De C, Dos S. A Software-in-the-Loop Simulation Scheme for Position Formation Flight of Multicopters. Journal of Aerospace Technology and Management, 2016, 8(4):431-440. [4] Prabowo Y A , Trilaksono B R , Triputra F R . Hardware In-the-Loop Simulation for Visual Servoing of Fixed Wing UAV// 2015 International Conference on Electrical Engineering and Informatics. IEEE, 2015. [5] Sung G M, Tung L F, Wang H K, et al. USB Transceiver with a Serial Interface Engine and FIFO Queue for efficient FPGA-to-FPGA Communication. IEEE Access, 2020, PP(99):1-1. [6] Yang J, Wang X, Baldi S, et al. A software-in-the-loop implementation of adaptive formation control for fixed-wing UAVs. IEEE/CAA Journal of Automatica Sinica, 2019, 6(5). [7] Ebeid E, Skriver M, Terkildsen K H, et al. A Survey of Open-Source UAV Flight Controllers and Flight Simulators. Microprocessors and Microsystems, 2018, 61. [8] P Castillo-García, Hernandez L E M , Gil P G . Data Fusion for UAV Localization - ScienceDirect. Indoor Navigation Strategies for Aerial Autonomous Systems, 2017:109-129. [9] Nak Y K, Wonkeun Y, In H C, et al. Features of Invariant Extended Kalman Filter Applied to Unmanned Aerial Vehicle Navigation. Sensors, 2018, 18(9):2855. [10]Rabbou M A, El-Rabbany A. Tightly coupled integration of GPS precise point positioning and MEMS-based inertial systems. GPS Solutions, 2015, 19(4):601-609.
Copyright @ 2020-2035 STEMM Institute Press All Rights Reserved