How hnainiamohamedamine29/vtol_system_modeling works
This repository is a collection of standalone VTOL control and simulation scripts, rather than one integrated application. The principal workflow in wind_simulation.py builds a linear aircraft model, computes LQR and Kalman gains, simulates wind-disturbed flight, then plots state estimates and animates the trajectory. Simulation.py provides a separate interactive discrete-time simulation, while PID_vs_LQR.py compares PID and LQR on a reduced model. README capabilities are represented where the sampled code supports them; the documented vtol_simulation.py entry point is absent from the tree, and VTOL_system.m was not sampled.
Main entry points: wind_simulation.py Flight simulation · Simulation.py Interactive simulation · PID_vs_LQR.py Reduced model simulation
Components 17
Wind Simulation
- Aircraft model
wind_simulation.py - LQR control
wind_simulation.py - Kalman estimator
wind_simulation.py - Wind disturbance
wind_simulation.py - Flight simulation
wind_simulation.py - State plots
wind_simulation.py - 3D animation
wind_simulation.py
Interactive Simulation
- Interactive simulation
Simulation.py - Discrete LQR
Simulation.py - Discrete estimator
Simulation.py - Reference input
Simulation.py - Live plots
Simulation.py
Controller Comparison
- Reduced model simulation
PID_vs_LQR.py - LQR controller
PID_vs_LQR.py - PID controller
PID_vs_LQR.py - Response comparison
PID_vs_LQR.py
Other components
- Simulation user
Connections 14
- Flight simulation → Aircraft model: integrates dynamics
wind_simulation.py - Flight simulation → LQR control: computes control
wind_simulation.py - Flight simulation → Kalman estimator: updates estimate
wind_simulation.py - Flight simulation → Wind disturbance: applies wind
wind_simulation.py - Flight simulation → State plots: plots logged states
wind_simulation.py - Flight simulation → 3D animation: animates trajectory
wind_simulation.py - Simulation user → Reference input: sets references
Simulation.py - Interactive simulation → Reference input: reads references
Simulation.py - Interactive simulation → Discrete LQR: computes control
Simulation.py - Interactive simulation → Discrete estimator: updates estimate
Simulation.py - Interactive simulation → Live plots: plots responses
Simulation.py - Reduced model simulation → LQR controller: computes LQR
PID_vs_LQR.py - Reduced model simulation → PID controller: computes PID
PID_vs_LQR.py - Reduced model simulation → Response comparison: plots responses
PID_vs_LQR.py