This is a project where an Adaptive Flight Control is designed and tested using MATLAB/Simulink I started with a nonlinear aircraft model. The contained description is inside the simulink MATLAB/Function
Aircraft parameters (NOMINAL) are set by INIT.m The Aircraft is trimmed in some given condition in terms of TAS, and attitude (simply a steaty state level flight) The TRIM.m script gives back the input needed to keep the aircraft in a given flight condition. L1AC works in a linear systems representation, therefore the system is linearized around the trimmed condition. The dynamics and control matrices A and B are extracted by "estrai.m"
The A and B matrices are then used by POLE_PLACEMENT.m to compute the feedback matrices K for LATERAL and LONGITUDINAL dynamics
The design of the control laws parameters is the job for the script TEST_NAVION and TEST_NAVION_LAT
PLOTTING.m plots the main state variables in single figures PLOTTING2.m plots the main state variables in a subplot figure PLOTTING3.m plots the main input variables in a subplot figure
SETUP.m run the above script all in onces and set some more variables
MONTECARLO runs different simulations in order to test system robustness, recalls plotting to compares the behaviour in different conditions.
I hope that someone will eventually flight testing it in the real world