Uploaded June 2020 | Updated September 2026, 1 day ago
This is a flight simulation of a fixed wing aircraft in 6-DOF using MPC (model predictive control), using MATLAB, Simulink, and FlightGear.
The model predictive control (MPC) design was implemented in Python and then the states/inputs were exported to MATLAB via a csv file, then loaded onto FlightGear.
A linear MPC formulation is developed for both longitudinal and lateral modes (where there is coupling between the two), via constrained quadratic programming QP.
The simulation shows that due to the inherent MIMO coupling of inputs, some of the controlled variables exhibit overshoot.
However, the actuator position and rate constraints are satisfied, thereby demonstrating that the QP solver works well.
Furthermore, there is a limit on the maximum setpoints that can be used on the controlled variables. For instance,nthe maximum pitch angle which can be reached is 0.04 rad and -0.035 rad. This is due to the QP formulation itself.
Part 3 of my FlightGear video series is coming soon.
Thanks for watching!
VDEngineering
~~My Udemy Courses on Motion Planning / Navigation / Trajectory Planning:
udemy.com/course/autonomous-robots-nonholonomic-motion-planning-algorithms
Buy Coffee: buymeacoffee.com/vdengineering
My Instagram: instagram.com/vinayak_desh
My Website: vinayakd.com
This is a flight simulation of a fixed wing aircraft in 6-DOF using MPC (model predictive control), using MATLAB, Simulink, and FlightGear.
The model predictive control (MPC) design was implemented in Python and then the states/inputs were exported to MATLAB via a csv file, then loaded onto FlightGear.
A linear MPC formulation is developed for both longitudinal and lateral modes (where there is coupling between the two), via constrained quadratic programming QP.
The simulation shows that due to the inherent MIMO coupling of inputs, some of the controlled variables exhibit overshoot.
However, the actuator position and rate constraints are satisfied, thereby demonstrating that the QP solver works well.
Furthermore, there is a limit on the maximum setpoints that can be used on the controlled variables. For instance,nthe maximum pitch angle which can be reached is 0.04 rad and -0.035 rad. This is due to the QP formulation itself.
Part 3 of my FlightGear video series is coming soon.
Thanks for watching!
VDEngineering
~~My Udemy Courses on Motion Planning / Navigation / Trajectory Planning:
udemy.com/course/autonomous-robots-nonholonomic-motion-planning-algorithms
Buy Coffee: buymeacoffee.com/vdengineering
My Instagram: instagram.com/vinayak_desh
My Website: vinayakd.com










![Interceptor Missile Guidance & Control: Full Flight Simulation Tutorial! (MATLAB / Simulink)
~~My Udemy Courses on Motion Planning / Navigation / Trajectory Planning:
https://www.udemy.com/course/autonomous-robots-nonholonomic-motion-planning-algorithms/
Code: https://github.com/Vinayak-D/PNGuidance
In this video you will learn the fundamentals of missile guidance, navigation and control. This tutorial will cover developing a MATLAB and Simulink model of a missile hitting its target using Proportional Navigation Guidance. Next, a Simulink 3D animation is done! You will learn
1) 3-Loop Autopilots (pitch attitude control)
2) Proportional Navigation Guidance
3) Missile Line of Sight and Miss Distance Calculation
4) Build a full flight simulation!
TIMESTAMPS:
Simulation!: 0:00
Intro: 4:28
MATLAB Code: 12:06
Simulink Model: 12:29
Results: 24:30
LINKS:
Missile Autopilot Model: https://www.jhuapl.edu/Content/techdigest/pdf/V29-N01/29-01-Jackson.pdf
Missile Guidance: https://www.jhuapl.edu/Content/techdigest/pdf/V29-N01/29-01-Palumbo_Principles_Rev2018.pdf
Proportional Navigation (PN) Video 1: https://www.youtube.com/watch?v=T2fPKUfmnKo&
PN Video 2: https://www.youtube.com/watch?v=cXDyyQrfY5M&ab_channel=BenDickinson
PN Video 3 [Derivations]: https://www.youtube.com/watch?v=uiXvksoOoG8&
Thanks for watching! Subscribe for more videos like this!
Buy Coffee: https://buymeacoffee.com/vdengineering
My Instagram: https://www.instagram.com/vinayak_desh/
My Website: https://www.vinayakd.com/
Sounds taken from: [NO COPYRIGHT]
- https://www.youtube.com/watch?v=KhNeOZM7dHs&
- https://www.youtube.com/watch?v=JAKW76he5d4&
- https://www.youtube.com/watch?v=KfYto9Szei8& Interceptor Missile Guidance & Control: Full Flight Simulation Tutorial! (MATLAB / Simulink)](https://i.ytimg.com/vi/SaahPmmE748/mqdefault.jpg)