tuning of airframe autopilot gains -凯发k8网页登录
this example shows how to apply simulink® design optimization™ to optimize the autopilot gains of an airframe to control its fin deflection. the model uses blocks from aerospace blockset™.
the autopilot controller consists of an inner pitch loop and outer vertical acceleration loop. both controllers are integral only controllers. the gains of both the controllers are tuned to satisfy a 2 second rise-time step response characteristic.
open the nlairframe_demo
model using the command below and run the simulation. the simulation produces an unoptimized vertical acceleration of the airframe and the initial data for optimization.
open_system('nlairframe_demo')
double-click the az response
scope block to view the unoptimized vertical acceleration az of the airframe.
double-click the q response
scope block to view the unoptimized rotation rate q of the airframe.
double-click the model
block to view the details of the subsystem. it includes an atmosphere model and aerodynamics and equations of motion model.
double-click the desired az response
block to view constraints on the vertical acceleration of the airframe. these constraints are used to simultaneously tune the gains of the two integral controllers. the first segment of the upper bound constraint represents an overshoot. note that this is a soft constraint and can be violated.
you can launch the response optimizer using the apps menu in the simulink toolstrip, or the sdotool
command in matlab®. you can launch a pre-configured optimization task in response optimizer by first opening the model and by double-clicking on the orange block at the bottom of the model. from the response optimizer, press the plot model response button to simulate the model and show how well the initial design satisfies the design requirements.
we start the optimization by pressing the optimize button from the response optimizer. the plots are updated to indicate that the design requirements are now satisfied.
the darker curve shows the final optimized response of the airframe.
% close the model. bdclose('nlairframe_demo')