A Tutorial and Review on Flight Control Co-Simulation Using Matlab/Simulink and Flight Simulators
Open Access
- 3 September 2022
- journal article
- review article
- Published by MDPI AG in Automation
- Vol. 3 (3) , 486-510
Abstract
Flight testing in a realistic three-dimensional virtual environment is increasingly being considered a safe and cost-effective way of evaluating aircraft models and their control systems. The paper starts by reviewing and comparing the most popular personal computer-based flight simulators that have been successfully interfaced to date with the MathWorks software. This co-simulation approach allows combining the strengths of Matlab toolboxes for functions including navigation, control, and sensor modeling with the advanced simulation and scene rendering capabilities of dedicated flight simulation software. This approach can then be used to validate aircraft models, control algorithms, flight handling chatacteristics, or perform model identification from flight data. There is, however, a lack of sufficiently detailed step-by-step flight co-simulation tutorials, and there have also been few attempts to evaluate more than one flight co-simulation approach at a time. We, therefore, demonstrate our own step-by-step co-simulation implementations using Simulink with three different flight simulators: Xplane, FlightGear, and Alphalink’s virtual flight test environment (VFTE). All three co-simulations employ a real-time user datagram protocol (UDP) for data communication, and each approach has advantages depending on the aircraft type. In the case of a Cessna-172 general aviation aircraft, a Simulink co-simulation with Xplane demonstrates successful virtual flight tests with accurate simultaneous tracking of altitude and speed reference changes while maintaining roll stability under arbitrary wind conditions that present challenges in the single propeller Cessna. For a medium endurance Rascal-110 unmanned aerial vehicle (UAV), Simulink is interfaced with FlightGear and with QGroundControl using the MAVlink protocol, which allows to accurately follow the lateral UAV path on a map, and this setup is used to evaluate the validity of Matlab-based six degrees of freedom UAV models. For a smaller ZOHD Nano Talon miniature aerial vehicle (MAV), Simulink is interfaced with the VFTE, which was specifically designed for this MAV, and with QGroundControl for the testing of advanced H-infinity observer-based autopilots using a software-in-the-loop (SIL) simulation to achieve robust low altitude flight under windy conditions. This is then finally extended to hardware-in-the-loop (HIL) implementation on the Nano Talon MAV using a controller area network (CAN) databus and a Pixhawk-4 mini autopilot with simulated sensor models.Keywords
This publication has 17 references indexed in Scilit:
- The performance and cognitive workload analysis of a multimodal speech and visual gesture (mSVG) UAV control interfaceRobotics and Autonomous Systems, 2022
- A Neural Autopilot Training Platform based on a Matlab and X-Plane co-simulation2021
- Open-Source Visualization of Reusable Rockets Motion: Approaching Simulink - FlightGear Co-simulation2021
- 3D Trajectory Planning Method for UAVs Swarm in Building EmergenciesSensors, 2020
- Micro Air Vehicle Link (MAVlink) in a Nutshell: A SurveyIEEE Access, 2019
- Numerical Simulation Platform for a Generic Aircraft Flight Dynamic SimulationInternational Journal of Engineering & Technology, 2018
- FlyNetSim2018
- Co-Simulation of Matlab and FlightGear for Identification and Control of AircraftIFAC-PapersOnLine, 2015
- Simulation of Flapping-wing Unmanned Aerial Vehicle using X-plane and Matlab/SimulinkDefence Science Journal, 2014
- Modeling and Simulation of a Small Unmanned Aerial Vehicle2013