A Tutorial and Review on Flight Control Co-Simulation Using Matlab/Simulink and Flight Simulators

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...

Full description

Bibliographic Details
Main Authors: Nadjim Horri, Mikolaj Pietraszko
Format: Article
Language:English
Published: MDPI AG 2022-09-01
Series:Automation
Subjects:
Online Access:https://www.mdpi.com/2673-4052/3/3/25
_version_ 1797491254325411840
author Nadjim Horri
Mikolaj Pietraszko
author_facet Nadjim Horri
Mikolaj Pietraszko
author_sort Nadjim Horri
collection DOAJ
description 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.
first_indexed 2024-03-10T00:43:52Z
format Article
id doaj.art-1f207d25b2d84db1ac229e4fbbd26f6d
institution Directory Open Access Journal
issn 2673-4052
language English
last_indexed 2024-03-10T00:43:52Z
publishDate 2022-09-01
publisher MDPI AG
record_format Article
series Automation
spelling doaj.art-1f207d25b2d84db1ac229e4fbbd26f6d2023-11-23T15:01:43ZengMDPI AGAutomation2673-40522022-09-013348651010.3390/automation3030025A Tutorial and Review on Flight Control Co-Simulation Using Matlab/Simulink and Flight SimulatorsNadjim Horri0Mikolaj Pietraszko1School of Mechanical, Aerospace and Automotive Engineering, Coventry University, Coventry CV1 5FB, UKSchool of Mechanical, Aerospace and Automotive Engineering, Coventry University, Coventry CV1 5FB, UKFlight 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.https://www.mdpi.com/2673-4052/3/3/25co-simulationflight controlautopilotMatlab/SimulinkQGroundControlFlightGear
spellingShingle Nadjim Horri
Mikolaj Pietraszko
A Tutorial and Review on Flight Control Co-Simulation Using Matlab/Simulink and Flight Simulators
Automation
co-simulation
flight control
autopilot
Matlab/Simulink
QGroundControl
FlightGear
title A Tutorial and Review on Flight Control Co-Simulation Using Matlab/Simulink and Flight Simulators
title_full A Tutorial and Review on Flight Control Co-Simulation Using Matlab/Simulink and Flight Simulators
title_fullStr A Tutorial and Review on Flight Control Co-Simulation Using Matlab/Simulink and Flight Simulators
title_full_unstemmed A Tutorial and Review on Flight Control Co-Simulation Using Matlab/Simulink and Flight Simulators
title_short A Tutorial and Review on Flight Control Co-Simulation Using Matlab/Simulink and Flight Simulators
title_sort tutorial and review on flight control co simulation using matlab simulink and flight simulators
topic co-simulation
flight control
autopilot
Matlab/Simulink
QGroundControl
FlightGear
url https://www.mdpi.com/2673-4052/3/3/25
work_keys_str_mv AT nadjimhorri atutorialandreviewonflightcontrolcosimulationusingmatlabsimulinkandflightsimulators
AT mikolajpietraszko atutorialandreviewonflightcontrolcosimulationusingmatlabsimulinkandflightsimulators
AT nadjimhorri tutorialandreviewonflightcontrolcosimulationusingmatlabsimulinkandflightsimulators
AT mikolajpietraszko tutorialandreviewonflightcontrolcosimulationusingmatlabsimulinkandflightsimulators