Aerospace Blockset™ provides flight control analysis tools that you can use to analyze the dynamic response and flying qualities of aerospace vehicles.
Flight Control Analysis Live Scripts — MATLAB® live scripts that demonstrate dynamic response and flying quality analysis of Sky Hogg and Dehavilland Beaver airframes.
Modify Flight Control Analysis Templates — Templates that you can use to analyze the flying qualities of 3 degree-of-freedom and 6 degree-of-freedom airframe models. When you are comfortable running the analysis on the default airframes, you can replace them with you own airframe and analyze it.
Analyzing dynamic response and flying qualities of airframes requires a Simulink® Control Design™ license.
Each flight control analysis template has an associated MATLAB live script that guides you through a longitudinal flying quality analysis workflow for the default airframe. You can interact with the script and explore the analysis workflow. For more information on running live scripts, see Run Sections in Live Scripts (MATLAB).
Open one of the templates, for example:
Navigate to the Getting Started section and click the first link.
Alternatively, in the Command Window, type:
The script describes how to use eigenvalue analysis to determine the longitudinal flying qualities (long-period phugoid mode and short-period mode) for an aircraft modeled in Simulink.
As you run the script, when applicable, the results of the runs display to the right.
Aerospace Blockset provides these templates:
flightControl3DOFAirframeTemplate — This template uses a three degree-of-freedom longitudinal airframe configured for linearization and handling quality analysis. For initialization, the template uses Sky Hogg airframe parameters.
flightControl6DOFAirframeTemplate — This template uses a six degree-of-freedom airframe configured for linearization and handling quality analysis using. For initialization, the template uses the DeHavilland Beaver airframe parameters.
When you are comfortable navigating the flight control analysis templates with the default airframes, consider customizing the templates for your own airframe model.
To familiarize yourself with Aerospace Blockset flight control analysis templates:
Open one of the templates, for example to start a 3DOF template:
To open a 6DOF template:
The flight control analysis model opens. Here is the 3DOF flight control analysis model.
The Analysis Workflow section contains a clickable guided workflow to compute longitudinal flying qualities and compare their values against MIL-F-8785C requirements. Each step creates the necessary files for the following step. To perform the various steps of analyzing the flight in order, sequentially click the links in the steps.
To trim the airframe, click Trim the
airframe in step 3. This action calls the
To linearize the airframe around a trimmed operating point,
click Linearize the airframe in step 4.
This action calls the
To compute the longitudinal handling qualities, click
Compute longitudinal handling qualities
in step 5. This action calls the
When you are comfortable with this template, consider customizing it with your own airframe and computing the longitudinal handling qualities for your airframe.
When you are comfortable with the 3DOF and/or 6DOF flight control analysis templates, to trim, linearize, and compute the longitudinal handling qualities for your own model airframe, consider customizing the templates.
Open a 3DOF or 6DOF template and change the airframe to one of your own. For example, to change the template airframe to an external model:
This command replaces the DeHavilland Beaver subsystem with the
DehavillandBeaver6DOFAirframe model and includes
it as a referenced model.
Alternatively, in the corresponding canvas, manually replace the default model airframe in the blue area with your own airframe.
On the canvas, align the inputs and outputs of the airframe with the Input Mapping and Output Mapping subsystems.
Create a new operating point specification object. In the Analysis Workflow section, go to step 2 and click the Launch link to start the Linear Analysis Trim Tool.
To save your
opCond.OperatingSpec object to the
base workspace, click the Export button in the
To trim, linearize, and compute the longitudinal handling qualities for the airframe model, click the links in workflow steps 3, 4, and 5.
The flight control analysis live scripts and template workflows use these functions:
To customize your own scripts to trim airframes around operating points, linearize airframes, and calculate longitudinal handling qualities, you can use these functions in a workflow like the following:
Create a flight control analysis template using the
Trim the airframe model around an operating point using the
This step creates a trimmed operating point, required by the
Linearize the airframe model around the trimmed operating point using the
This step creates a linear system-state operating point.
Compute the flying qualities for the airframe, including short- and
long-period (phugoid) mode characteristics of the specified state model,
asbFlightControlAnalysis('3DOF', 'SkyHoggAnalysisModel'); opSpecDefault = SkyHogg3DOFOpSpec('SkyHoggAnalysisModel'); opTrim = trimAirframe('SkyHoggAnalysisModel', opSpecDefault); linSys = linearizeLongitudinalAirframe('SkyHoggAnalysisModel', opTrim) flyingQual = computeLongitudinalFlyingQualities('SkyHoggAnalysisModel', linSys)